diff options
author | Sam James <sam@gentoo.org> | 2022-01-20 11:58:56 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-01-20 12:07:37 +0000 |
commit | e4f76a21f19cd64e1520e750cd947a40a40a6d1e (patch) | |
tree | 70ca7fc31469edc5742ecd1a3419228990557784 /sys-apps/fakeroot | |
parent | sys-fs/btrfs-progs: add 5.16 (diff) | |
download | gentoo-e4f76a21f19cd64e1520e750cd947a40a40a6d1e.tar.gz gentoo-e4f76a21f19cd64e1520e750cd947a40a40a6d1e.tar.bz2 gentoo-e4f76a21f19cd64e1520e750cd947a40a40a6d1e.zip |
sys-apps/fakeroot: add 1.27
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/fakeroot')
-rw-r--r-- | sys-apps/fakeroot/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/fakeroot/fakeroot-1.27.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/sys-apps/fakeroot/Manifest b/sys-apps/fakeroot/Manifest index 60c5be44cb64..04aa76f5ca08 100644 --- a/sys-apps/fakeroot/Manifest +++ b/sys-apps/fakeroot/Manifest @@ -1,2 +1,3 @@ DIST fakeroot_1.25.3.orig.tar.gz 126884 BLAKE2B a6a860a8714bb2a43f2820bc586cac38d25df8b8cb32b219064618c845d0308b57929108bd582b46c15b2fe4b2fc00d662ba72458a9e9ffcf7d035dce515eb55 SHA512 b54366ef82b49af414d7214d069a4bc7dd188dfa4f8e3121f6bd65fd67268b02346ff72e857087243ab0efe9fa82faaa9f9c3309cac4b5af0ea00908c2e5eb6e DIST fakeroot_1.26.orig.tar.gz 549685 BLAKE2B d9177403d9c2be88c0949c891cde5742a405027714b07ca2c7e72813dba049157c3d994f30b9c634016a74c74745f8391ee51035cbf385ef63364d0a31291d43 SHA512 dad193b283b48a25806c5bcd06d1f5bbd183ccd40a3fc25f3e7bb88fd6579024f958321f8336654348a1d0a547d4ad19ed11aab5ec9441d6ef493ee6e4c78081 +DIST fakeroot_1.27.orig.tar.gz 544301 BLAKE2B 5e887d43c8bedaecbe51eb7f606d6bace3a9f191a7cf4be32362e1ba97e438413f04ed644532d3a386a46f3a569bf0104c4f38272e5ff46e3705c17896fef972 SHA512 cd98b8cd1064a5a11c6f25bc1d9cb1fb1bf0787f50772fead301470d1769c08a89a1510402b099af334d9f126cea5d3bd5d73e27fb91b5afc1ceebeb9ec3f926 diff --git a/sys-apps/fakeroot/fakeroot-1.27.ebuild b/sys-apps/fakeroot/fakeroot-1.27.ebuild new file mode 100644 index 000000000000..d033244f8182 --- /dev/null +++ b/sys-apps/fakeroot/fakeroot-1.27.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic plocale + +DESCRIPTION="A fake root environment by means of LD_PRELOAD and SysV IPC (or TCP) trickery" +HOMEPAGE="https://packages.qa.debian.org/f/fakeroot.html" +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 nls test" +RESTRICT="!test? ( test )" + +DEPEND="sys-libs/libcap + acl? ( sys-apps/acl ) + test? ( app-arch/sharutils )" +BDEPEND="nls? ( app-text/po4a )" + +DOCS=( AUTHORS BUGS DEBUG README doc/README.saving ) + +PLOCALES="de es fr nl pt sv" + +src_prepare() { + default + + disable_locale() { + local locale=${1} + + sed -i -e "s: ${locale}::" doc/po4a/po4a.cfg doc/Makefile.am || die + } + + plocale_find_changes doc/po4a/po '' '.po' + plocale_for_each_disabled_locale disable_locale + + # We could make this conditional and disable the autodependency in + # autotools.eclass but it'd make it too easy for NLS builds to be broken + # and us not realise. + eautoreconf +} + +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 + + econf --disable-static +} + +src_compile() { + local enabled_locales=$(plocale_get_locales) + + if use nls && [[ -n ${enabled_locales} ]] ; then + # 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 + fi + + default +} + +src_install() { + default + + # no static archives + find "${ED}" -name '*.la' -delete || die +} |