commit:     7cb47b8b259e386f5113ecdc3d4cf0bc7318e464
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Fri Oct  2 20:25:12 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct  7 00:30:09 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cb47b8b

dev-libs/npth: tidy up ebuild

- inherit autotools eclass
- unconditionally remove static libs
- drop redundant manual deletion of .la files

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/npth/npth-1.6-r1.ebuild | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/dev-libs/npth/npth-1.6-r1.ebuild b/dev-libs/npth/npth-1.6-r1.ebuild
index 6ba87239e32..00b6f615b49 100644
--- a/dev-libs/npth/npth-1.6-r1.ebuild
+++ b/dev-libs/npth/npth-1.6-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit libtool
+inherit autotools
 
 DESCRIPTION="New GNU Portable Threads Library"
 HOMEPAGE="https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git";
@@ -12,19 +12,12 @@ SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
 LICENSE="LGPL-2.1+"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="static-libs"
 
 src_prepare() {
        default
-       elibtoolize  # for Solaris shared library
+       eautoreconf
 }
 
 src_configure() {
-       econf \
-               $(use_enable static-libs static)
-}
-
-src_install() {
-       default
-       find "${D}" -name '*.la' -delete || die
+       econf --disable-static
 }

Reply via email to