From 7ccaaee567f3c438b1ffe8c659b031512b0aa6da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ch=C3=AD-Thanh=20Christopher=20Nguy=E1=BB=85n?= Date: Wed, 7 Oct 2015 00:04:20 +0200 Subject: [PATCH] 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 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} \ -- 2.26.2