commit:     973a3dd43499c02472497185449556b63b6c8849
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 14 15:03:58 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Nov 14 15:03:58 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=973a3dd4

app-arch/libpar2: Port to EAPI 7

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 app-arch/libpar2/libpar2-0.4.ebuild | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/app-arch/libpar2/libpar2-0.4.ebuild 
b/app-arch/libpar2/libpar2-0.4.ebuild
index 6408f547566..31de2a7569f 100644
--- a/app-arch/libpar2/libpar2-0.4.ebuild
+++ b/app-arch/libpar2/libpar2-0.4.ebuild
@@ -1,9 +1,7 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-
-inherit autotools-utils flag-o-matic
+EAPI=7
 
 DESCRIPTION="A library for par2, extracted from par2cmdline"
 HOMEPAGE="https://launchpad.net/libpar2/";
@@ -12,18 +10,18 @@ 
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-IUSE="static-libs"
 
 RDEPEND="dev-libs/libsigc++:2"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
-DOCS=( AUTHORS ChangeLog README )
+src_configure() {
+       econf --disable-static
+}
 
-# Needed to install all headers properly (bug #391815)
-AUTOTOOLS_IN_SOURCE_BUILD=1
+src_install() {
+       default
 
-src_prepare() {
-       autotools-utils_src_prepare
-       append-cxxflags -std=c++11 #567498
+       # no static archives
+       find "${ED}" -name '*.la' -delete || die
 }

Reply via email to