mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
82 lines
2.2 KiB
Bash
82 lines
2.2 KiB
Bash
SUMMARY="A fast key-value storage library written at Google"
|
|
DESCRIPTION="LevelDB stores keys and values in arbitrary byte arrays, and \
|
|
data is sorted by key. It supports batching writes, forward and backward \
|
|
iteration, and compression of the data via Google's Snappy compression \
|
|
library.
|
|
LevelDB is not an SQL database. Like other NoSQL and Dbm stores, it does \
|
|
not have a relational data model and it does not support SQL queries. Also, \
|
|
it has no support for indexes. Applications use LevelDB as a library, as it \
|
|
does not provide a server or command-line interface."
|
|
HOMEPAGE="http://leveldb.org/"
|
|
COPYRIGHT="2017 The LevelDB Authors"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/google/leveldb/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="f5abe8b5b209c2f36560b75f32ce61412f39a2922f7045ae764a2c23335b6664"
|
|
SOURCE_FILENAME="leveldb-$portVersion.tar.gz"
|
|
PATCHES="leveldb-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
leveldb$secondaryArchSuffix = $portVersion
|
|
lib:libleveldb$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libsnappy$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
leveldb${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libleveldb$secondaryArchSuffix = $libVersionCompat
|
|
devel:libmemenv$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
leveldb$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libsnappy$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage leveldb$secondaryArchSuffix \
|
|
"$libDir"/libleveldb.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
install -d -m 755 "$libDir" "$includeDir" "$developDocDir"
|
|
|
|
cp -R include/* "$includeDir"
|
|
cp out-static/*.a "$libDir"
|
|
cp --no-dereference out-shared/libleveldb.so* "$libDir"
|
|
cp -R doc/* "$developDocDir"
|
|
|
|
prepareInstalledDevelLibs libleveldb libmemenv
|
|
|
|
packageEntries devel \
|
|
"$developDir"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|