forked from ports/contrib
leveldb: marked unmaintained
This commit is contained in:
parent
55f27d7c84
commit
7284db9b27
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF39EKvHFJ/JaLmdcZnmlncCWhybCpGiBCNCcBAVpzdpAHveKVnGc2sAWhY1WaYW/DxMlEf+C1IoZ0spkI4rJnhg8=
|
||||
SHA256 (Pkgfile) = 6edb1a1a83d80b560ba816b875fa4565264fa9d3a678e7511ba8deeebdc48e21
|
||||
RWSagIOpLGJF31f4aEMe6e8k7KfYpDi9IE6Pkuo3wO5t80bG1gTmU0Ogd005RnZaaAoe0UKoIYbuAYH3FWVthyEdZUdV3uURKQo=
|
||||
SHA256 (Pkgfile) = abdc007e789c6702c290c849515c65e5387d3f2cf869152dd9d51739fab1bab5
|
||||
SHA256 (.footprint) = a2336496b573191a8d86d0b913ceabd56246479ef82ef3c332a96c83b5498e5e
|
||||
SHA256 (leveldb-1.23.tar.gz) = 9a37f8a6174f09bd622bc723b55881dc541cd50747cbd08831c2a82d620f6d76
|
||||
SHA256 (0001-Allow-leveldbjni-build.patch) = b4d2ac085822d1ba1bc0c741aab880f98422befa0294718446683526407218b1
|
||||
|
@ -1,40 +1,40 @@
|
||||
# Description: A fast and lightweight key/value database library
|
||||
# URL: https://github.com/google/leveldb
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: snappy cmake ninja
|
||||
# Maintainer: unmaintained
|
||||
# Depends on: ninja snappy
|
||||
|
||||
name=leveldb
|
||||
version=1.23
|
||||
release=1
|
||||
source=(https://github.com/google/leveldb/archive/$version/$name-$version.tar.gz
|
||||
0001-Allow-leveldbjni-build.patch
|
||||
0002-Added-a-DB-SuspendCompations-and-DB-ResumeCompaction.patch
|
||||
0003-allow-Get-calls-to-avoid-copies-into-std-string.patch
|
||||
0004-bloom_test-failure-on-big-endian-archs.patch
|
||||
0005-Restore-soname-versioning-with-CMake-build.patch
|
||||
0006-revert-no-rtti.patch)
|
||||
0001-Allow-leveldbjni-build.patch
|
||||
0002-Added-a-DB-SuspendCompations-and-DB-ResumeCompaction.patch
|
||||
0003-allow-Get-calls-to-avoid-copies-into-std-string.patch
|
||||
0004-bloom_test-failure-on-big-endian-archs.patch
|
||||
0005-Restore-soname-versioning-with-CMake-build.patch
|
||||
0006-revert-no-rtti.patch)
|
||||
|
||||
build() {
|
||||
patch -d $name-$version -p1 -i $SRC/0001-Allow-leveldbjni-build.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0002-Added-a-DB-SuspendCompations-and-DB-ResumeCompaction.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0003-allow-Get-calls-to-avoid-copies-into-std-string.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0004-bloom_test-failure-on-big-endian-archs.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0005-Restore-soname-versioning-with-CMake-build.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0006-revert-no-rtti.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0001-Allow-leveldbjni-build.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0002-Added-a-DB-SuspendCompations-and-DB-ResumeCompaction.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0003-allow-Get-calls-to-avoid-copies-into-std-string.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0004-bloom_test-failure-on-big-endian-archs.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0005-Restore-soname-versioning-with-CMake-build.patch
|
||||
patch -d $name-$version -p1 -i $SRC/0006-revert-no-rtti.patch
|
||||
|
||||
cmake -S $name-$version -B build -G Ninja \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-D BUILD_SHARED_LIBS=ON \
|
||||
-DLEVELDB_BUILD_TESTS=OFF \
|
||||
-DLEVELDB_BUILD_BENCHMARKS=OFF \
|
||||
-Wno-dev
|
||||
cmake -S $name-$version -B build -G Ninja \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-D BUILD_SHARED_LIBS=ON \
|
||||
-DLEVELDB_BUILD_TESTS=OFF \
|
||||
-DLEVELDB_BUILD_BENCHMARKS=OFF \
|
||||
-Wno-dev
|
||||
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
||||
cat <<- EOF > leveldb.pc
|
||||
prefix=/usr
|
||||
@ -48,5 +48,5 @@ Version: ${version}
|
||||
Libs: -L\${libdir} -lleveldb
|
||||
EOF
|
||||
|
||||
install -Dm644 leveldb.pc $PKG/usr/lib/pkgconfig/leveldb.pc
|
||||
install -Dm644 leveldb.pc $PKG/usr/lib/pkgconfig/leveldb.pc
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user