summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2015-10-07 00:04:20 +0200
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2015-10-07 00:04:20 +0200
commit7ccaaee567f3c438b1ffe8c659b031512b0aa6da (patch)
tree610e26d070dbbd0a1ac5ea0db27ba3b626d2f22e /dev-libs/leveldb
parentapp-arch/snappy: keyword ~amd64-fbsd (diff)
downloadgentoo-7ccaaee567f3c438b1ffe8c659b031512b0aa6da.tar.gz
gentoo-7ccaaee567f3c438b1ffe8c659b031512b0aa6da.tar.bz2
gentoo-7ccaaee567f3c438b1ffe8c659b031512b0aa6da.zip
dev-libs/leveldb: fix build on amd64-fbsd and keyword
Bug: https://bugs.gentoo.org/show_bug.cgi?id=562432 Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-libs/leveldb')
-rw-r--r--dev-libs/leveldb/leveldb-1.18-r1.ebuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/dev-libs/leveldb/leveldb-1.18-r1.ebuild b/dev-libs/leveldb/leveldb-1.18-r1.ebuild
index d50d0bedf217..e31c42c6746a 100644
--- a/dev-libs/leveldb/leveldb-1.18-r1.ebuild
+++ b/dev-libs/leveldb/leveldb-1.18-r1.ebuild
@@ -12,8 +12,8 @@ SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="amd64 arm ~arm64 ~mips ~ppc ppc64 x86 ~amd64-linux ~x86-linux"
-IUSE="+snappy static-libs +tcmalloc"
+KEYWORDS="amd64 arm ~arm64 ~mips ~ppc ppc64 x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
+IUSE="+snappy static-libs +tcmalloc kernel_FreeBSD"
DEPEND="tcmalloc? ( dev-util/google-perftools )
snappy? (
@@ -38,8 +38,14 @@ src_configure() {
# which the Makefile runs for us automatically.
tc-export AR CC CXX
export OPT="-DNDEBUG ${CPPFLAGS}"
+ local targetos
+ if use kernel_FreeBSD; then
+ targetos="FreeBSD"
+ else
+ targetos="Linux"
+ fi
- TARGET_OS="Linux" \
+ TARGET_OS=${targetos} \
USE_SNAPPY=$(usex snappy) \
USE_TCMALLOC=no \
TMPDIR=${T} \