commit: 48c4ed7c33ac42b3211424580ce4b64349723a21 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Sat Mar 27 10:44:02 2021 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sat Mar 27 10:44:02 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48c4ed7c
sys-apps/fakeroot: Clean up ebuild * Remove .la files * Disable building static archives Closes: https://github.com/gentoo/gentoo/pull/18617 Closes: https://bugs.gentoo.org/759568 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: David Seifert <soap <AT> gentoo.org> ...oot-1.25.3.ebuild => fakeroot-1.25.3-r1.ebuild} | 32 ++++++++++++---------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/sys-apps/fakeroot/fakeroot-1.25.3.ebuild b/sys-apps/fakeroot/fakeroot-1.25.3-r1.ebuild similarity index 67% rename from sys-apps/fakeroot/fakeroot-1.25.3.ebuild rename to sys-apps/fakeroot/fakeroot-1.25.3-r1.ebuild index eac32e7e954..136dd8a2116 100644 --- a/sys-apps/fakeroot/fakeroot-1.25.3.ebuild +++ b/sys-apps/fakeroot/fakeroot-1.25.3-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}.orig.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="acl debug static-libs test" +IUSE="acl debug test" RESTRICT="!test? ( test )" DEPEND=" @@ -21,31 +21,33 @@ DEPEND=" test? ( app-arch/sharutils )" BDEPEND="app-text/po4a" -DOCS="AUTHORS BUGS DEBUG README doc/README.saving" +DOCS=( AUTHORS BUGS DEBUG README doc/README.saving ) src_prepare() { default eautoreconf } -src_compile() { - # Create tranlated man pages - pushd doc &>/dev/null || die - po4a -v -k 0 --variable "srcdir=${S}/doc/" po4a/po4a.cfg || die - popd &>/dev/null || die +src_configure() { + export ac_cv_header_sys_acl_h=$(usex acl) + use acl || export ac_cv_search_acl_get_fd=no # bug 759568 + use debug && append-cppflags -DLIBFAKEROOT_DEBUGGING - default + econf --disable-static } -src_configure() { - export ac_cv_header_sys_acl_h=$(usex acl) +src_compile() { + # Create translated man pages + pushd doc >/dev/null || die + po4a -v -k 0 --variable "srcdir=${S}/doc/" po4a/po4a.cfg || die + popd >/dev/null || die - use debug && append-cppflags "-DLIBFAKEROOT_DEBUGGING" - econf \ - $(use_enable static-libs static) + default } src_install() { default - find "${ED}" -name '*.la' -o -name '*.a' -delete || die + + # no static archives + find "${ED}" -name '*.la' -delete || die }
