commit:     548a71a590bc2d1879da0372a02c46ed04bddfd8
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Sun Nov 15 23:23:16 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov 15 23:23:16 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=548a71a5

net-libs/libcapi: disable static libs

Closes: https://bugs.gentoo.org/724902
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-libs/libcapi/libcapi-3.0.7-r1.ebuild | 30 ++++++++++++++++++++++--------
 1 file changed, 22 insertions(+), 8 deletions(-)

diff --git a/net-libs/libcapi/libcapi-3.0.7-r1.ebuild 
b/net-libs/libcapi/libcapi-3.0.7-r1.ebuild
index e8956cc46ae..581f0ffff13 100644
--- a/net-libs/libcapi/libcapi-3.0.7-r1.ebuild
+++ b/net-libs/libcapi/libcapi-3.0.7-r1.ebuild
@@ -1,11 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-AUTOTOOLS_AUTORECONF=1
-AUTOTOOLS_IN_SOURCE_BUILD=1
-inherit autotools-multilib
+inherit autotools multilib-minimal
 
 DESCRIPTION="CAPI library used by AVM products"
 HOMEPAGE="http://www.tabos.org/ffgtk";
@@ -15,9 +13,25 @@ LICENSE="GPL-2 LGPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
 
-S="${WORKDIR}/capi20"
-
 RDEPEND="!net-dialup/capi4k-utils"
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}/${P}-remove-libcapi20dyn.patch" )
+S="${WORKDIR}/capi20"
+PATCHES=( "${FILESDIR}"/${P}-remove-libcapi20dyn.patch )
+
+src_prepare() {
+       default
+       eautoreconf
+
+       multilib_copy_sources
+}
+
+multilib_src_configure() {
+       ECONF_SOURCE="${S}" \
+               econf --disable-static
+}
+
+multilib_src_install_all() {
+       einstalldocs
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to