summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Gurr Timo <tgurr@exherbo.org> 2017-09-12 19:02:52 +0200
committerAvatar Timo Gurr <tgurr@exherbo.org> 2017-09-13 11:52:23 +0200
commitdfa4311f6f31fbfc9d65cb1684eef03218639d17 (patch)
tree42f64a8cecc3244bf2d1d98fcda047afdf390195
parent0860b9c7696a0f0c41e67ede3ccb7724ebbeafd7 (diff)
downloaddesktop-dfa4311f6f31fbfc9d65cb1684eef03218639d17.tar.gz
desktop-dfa4311f6f31fbfc9d65cb1684eef03218639d17.tar.xz
snappy: version bump to 1.1.7
Change-Id: Ic2b710e12f4f88e0c1c06b33b294de8dce859a32 Reviewed-on: https://galileo.mailstation.de/gerrit/10045 Reviewed-by: Jenkins <wk@mailstation.de> Reviewed-by: Timo Gurr <tgurr@exherbo.org>
-rw-r--r--packages/app-arch/snappy/snappy-1.1.3.exheres-034
-rw-r--r--packages/app-arch/snappy/snappy-1.1.7.exheres-032
2 files changed, 32 insertions, 34 deletions
diff --git a/packages/app-arch/snappy/snappy-1.1.3.exheres-0 b/packages/app-arch/snappy/snappy-1.1.3.exheres-0
deleted file mode 100644
index 4632757..0000000
--- a/packages/app-arch/snappy/snappy-1.1.3.exheres-0
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 2012 Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
-# Distributed under the terms of the GNU General Public License v2
-
-require github [ user="google" suffix="tar.gz" release="${PV}" ]
-
-SUMMARY="A fast compressor/decompressor"
-
-LICENCES="BSD-3"
-SLOT="0"
-PLATFORMS="~amd64 ~x86"
-MYOPTIONS=""
-
-DEPENDENCIES="
- build:
- dev-cpp/gtest
- sys-devel/libtool
- build+run:
- sys-libs/zlib
-"
-
-DEFAULT_SRC_CONFIGURE_PARAMS=(
- --disable-static
- --without-gflags
-)
-
-src_configure() {
- GTEST_CONFIG=/usr/$(exhost --target)/bin/gtest-config \
- default
-
- # gtest-config --ldflags gives a static libdir path
- edo sed \
- -e "s:^\(GTEST_LDFLAGS =\).*:\1 -L/usr/$(exhost --target)/lib:" \
- -i Makefile
-}
diff --git a/packages/app-arch/snappy/snappy-1.1.7.exheres-0 b/packages/app-arch/snappy/snappy-1.1.7.exheres-0
new file mode 100644
index 0000000..71886d7
--- /dev/null
+++ b/packages/app-arch/snappy/snappy-1.1.7.exheres-0
@@ -0,0 +1,32 @@
+# Copyright 2012 Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
+# Distributed under the terms of the GNU General Public License v2
+
+require github [ user=google ] cmake [ api=2 ]
+
+SUMMARY="A fast compressor/decompressor"
+
+LICENCES="BSD-3"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS=""
+
+# tests fail to build, last checked: 1.1.7
+RESTRICT="test"
+
+DEPENDENCIES="
+ build+test:
+ dev-cpp/gtest
+"
+
+src_configure() {
+ local cmakeargs=(
+ -DBUILD_SHARED_LIBS:BOOL=TRUE
+ -DCMAKE_DISABLE_FIND_PACKAGE_Gflags:BOOL=TRUE
+ -DHAVE_LIBLZO2:BOOL=FALSE # only used for benchmarks
+ -DHAVE_LIBZ:BOOL=FALSE # only used for benchmarks
+ -DSNAPPY_BUILD_TESTS:BOOL=$(expecting_tests TRUE FALSE)
+ )
+
+ ecmake "${cmakeargs[@]}"
+}
+