--- libcacard-0.1.2.ebuild +++ libcacard-0.1.2.ebuild @@ -2,7 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/libcacard/libcacard-0.1.2.ebuild,v 1.18 2014/08/06 06:44:37 patrick Exp $ -EAPI=4 +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 +AUTOTOOLS_PRUNE_LIBTOOL_FILES=all + +inherit autotools-utils DESCRIPTION="Library for emulating CAC cards" HOMEPAGE="http://spice-space.org/" @@ -18,13 +24,14 @@ DEPEND="${RDEPEND} virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/${P}-underlinking.patch # bug 494450 +) + src_configure() { # --enable-passthru works only on W$ - econf \ + local myeconfargs=( $(use_enable static-libs static) -} - -src_install() { - default - use static-libs || rm "${D}"/usr/lib*/*.la + ) + autotools-utils_src_configure }