diff options
Diffstat (limited to 'development')
-rw-r--r-- | development/leveldb/README | 2 | ||||
-rw-r--r-- | development/leveldb/leveldb.SlackBuild | 26 | ||||
-rw-r--r-- | development/leveldb/leveldb.info | 6 | ||||
-rw-r--r-- | development/leveldb/slack-desc | 4 |
4 files changed, 21 insertions, 17 deletions
diff --git a/development/leveldb/README b/development/leveldb/README index 19404965e7..7ea2ccb806 100644 --- a/development/leveldb/README +++ b/development/leveldb/README @@ -7,3 +7,5 @@ Still, LevelDB is not a SQL database. Like other NoSQL and Dbm stores, it does not have a relational data model, it does not support SQL queries, and it has no support for indexes. Applications use LevelDB as a library, as it does not provide a server or command-line interface. + +Optional dependency: snappy diff --git a/development/leveldb/leveldb.SlackBuild b/development/leveldb/leveldb.SlackBuild index c1ab404b67..2e607d996f 100644 --- a/development/leveldb/leveldb.SlackBuild +++ b/development/leveldb/leveldb.SlackBuild @@ -1,10 +1,10 @@ -#!/bin/sh -e +#!/bin/sh # -# Slackware build script for Zeromq-jzmq +# Slackware build script for LevelDB # Written by Mário Antunes (mario.antunes@av.it.pt) PRGNAM=leveldb -VERSION=${VERSION:-1.7.0} +VERSION=${VERSION:-1.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -16,7 +16,6 @@ if [ -z "$ARCH" ]; then esac fi - CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -36,6 +35,9 @@ else LIBDIRSUFFIX="" fi +# Build with snappy +SNAPPY=${SNAPPY:-no} + set -e rm -rf $PKG @@ -51,23 +53,23 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -./build_detect_platform conf . -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +echo "echo \"PLATFORM_CFLAGS+=$SLKCFLAGS\" >> build_config.mk" >> build_detect_platform +echo "echo \"PLATFORM_CXXFLAGS+=$SLKCFLAGS\" >> build_config.mk" >> build_detect_platform make -mkdir -p $PKG/usr/include -cp -a include/* $PKG/usr/include +mkdir -p $PKG/usr/include/leveldb +install include/leveldb/*.h $PKG/usr/include/leveldb mkdir -p $PKG/usr/lib$LIBDIRSUFFIX -cp -a *.so* $PKG/usr/lib$LIBDIRSUFFIX -cp -a *.a $PKG/usr/lib$LIBDIRSUFFIX +cp -a libleveldb.so* $PKG/usr/lib$LIBDIRSUFFIX find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README doc/* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/development/leveldb/leveldb.info b/development/leveldb/leveldb.info index 93cbe18f89..9fc024a421 100644 --- a/development/leveldb/leveldb.info +++ b/development/leveldb/leveldb.info @@ -1,8 +1,8 @@ PRGNAM="leveldb" -VERSION="1.7.0" +VERSION="1.9.0" HOMEPAGE="http://code.google.com/p/leveldb/" -DOWNLOAD="http://leveldb.googlecode.com/files/leveldb-1.7.0.tar.gz" -MD5SUM="5c3c6cfbb16a21cdbea0db656aa32fec" +DOWNLOAD="http://leveldb.googlecode.com/files/leveldb-1.9.0.tar.gz" +MD5SUM="12f11385cb58ae0de66d4bc2cc7f8194" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/development/leveldb/slack-desc b/development/leveldb/slack-desc index 0f901b1554..5dcc3d4cfc 100644 --- a/development/leveldb/slack-desc +++ b/development/leveldb/slack-desc @@ -9,10 +9,10 @@ leveldb: leveldb (Google key-vale database) leveldb: leveldb: LevelDB is an open source on-disk key-value store written by Google -leveldb: Fellows Jeffrey Dean and Sanjay Ghemawat, who built parts of Google's +leveldb: Fellows Jeffrey Dean and Sanjay Ghemawat, who built parts of Google's leveldb: platform. Inspired by BigTable, LevelDB is hosted on Google Code leveldb: under the New BSD License and has been ported to a variety of -leveldb: Unix-based systems, Mac OS X, Windows, and Android. webOS's DB8 +leveldb: Unix-based systems, Mac OS X, Windows, and Android. webOS's DB8 leveldb: database service uses it as a backend. leveldb: leveldb: |