dev-db/qdbm: add static-libs USE flag
authorAkinori Hattori <hattya@gentoo.org>
Wed, 27 May 2020 12:56:16 +0000 (21:56 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Wed, 27 May 2020 12:57:02 +0000 (21:57 +0900)
Closes: https://bugs.gentoo.org/724084
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
dev-db/qdbm/qdbm-1.8.78-r2.ebuild

index 034733d2ae95520167ab6dd97585370dac1abf94..40f5281fa882518579b81750a69e5aac527dccd6 100644 (file)
@@ -14,7 +14,7 @@ SRC_URI="https://fallabs.com/${PN}/${P}.tar.gz"
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 s390 sparc x86"
-IUSE="bzip2 cxx debug java lzo perl ruby zlib"
+IUSE="bzip2 cxx debug java lzo perl ruby static-libs zlib"
 
 RDEPEND="bzip2? ( app-arch/bzip2 )
        java? ( >=virtual/jre-1.4:* )
@@ -153,6 +153,7 @@ each_ruby_test() {
 src_install() {
        default
        qdbm_foreach_api
+       use static-libs || find "${ED}" -name '*.a' -delete || die
 
        rm -rf "${ED}"/usr/share/${PN}