Closes: https://bugs.gentoo.org/485552
Closes: https://github.com/gentoo/gentoo/pull/13084
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
-IUSE=""
+IUSE="static-libs"
BDEPEND="app-arch/unzip"
PATCHES=(
"${FILESDIR}"/${P}-underlinking-no-autoreconf.patch
)
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ if ! use static-libs; then
+ rm "${ED}/usr/$(get_libdir)/${PN}.la" || die
+ fi
+}