sys-fs/hfsplusutils: add support for USE=static-libs
authorMike Frysinger <vapier@gentoo.org>
Sat, 23 Apr 2016 06:40:27 +0000 (02:40 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 23 Apr 2016 06:40:27 +0000 (02:40 -0400)
sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild

index fd1d77c395797594eae69b15a7509f878c99f323..71cc51b2ebaad14577f908186310037616a75c23 100644 (file)
@@ -13,7 +13,7 @@ SRC_URI="http://penguinppc.org/historical/hfsplus/${MY_P}.src.tar.bz2"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="ppc ppc64 x86"
-IUSE=""
+IUSE="static-libs"
 
 DEPEND="app-arch/bzip2"
 RDEPEND=""
@@ -33,7 +33,12 @@ src_prepare() {
        append-flags -fgnu89-inline
 }
 
+src_configure() {
+       econf $(use_enable static-libs static)
+}
+
 src_install() {
        default
+       find "${ED}"/usr/ -name libhfsp.la -delete
        newman doc/man/hfsp.man hfsp.1
 }