commit:     7ccaaee567f3c438b1ffe8c659b031512b0aa6da
Author:     Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  6 22:04:20 2015 +0000
Commit:     Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
CommitDate: Tue Oct  6 22:04:20 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ccaaee5

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

 dev-libs/leveldb/leveldb-1.18-r1.ebuild | 12 +++++++++---
 1 file 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 d50d0be..e31c42c 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} \

Reply via email to