commit: 14f5fe77048667a5caa0a3d09dd3323639bc1ca9 Author: Hanno Böck <hanno <AT> gentoo <DOT> org> AuthorDate: Sun Feb 11 07:29:43 2024 +0000 Commit: Hanno Böck <hanno <AT> gentoo <DOT> org> CommitDate: Sun Feb 11 07:30:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14f5fe77
app-arch/unp: add 2.0_pre10 Signed-off-by: Hanno Böck <hanno <AT> gentoo.org> app-arch/unp/Manifest | 1 + app-arch/unp/unp-2.0_pre10.ebuild | 52 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/app-arch/unp/Manifest b/app-arch/unp/Manifest index 53acee291dda..62ee15e4c8d4 100644 --- a/app-arch/unp/Manifest +++ b/app-arch/unp/Manifest @@ -1 +1,2 @@ +DIST unp_2.0~pre10.tar.xz 17992 BLAKE2B 63d8c995091a1342677b6aed5854293c582cb6d42c6748ef3d92347ca75e1d3e9e5b128309299ec0b6fc0361bc14dededcc8e290fe8721aecfe82665e07998e9 SHA512 3f8f9f20eef88658b4b00efd37208d859fb3220178f9446696f755a864fea3c3dd301100668bd9c97ca9312ebe961aaf9ec523d8817b8aacb5a1ee6a36213666 DIST unp_2.0~pre9.tar.xz 16424 BLAKE2B 9042f48be0f80d5e40a08161a35c282ba458dc98cf13992835bdeecebd5fbadd33b3af9165738332cb9f508550a234a48d314332f00ecdacc808a8051eb0740b SHA512 74c9a6e143c9023bdd456dacff5c3a6e30722e259f324c066fe3eed9e4a09c38b399b381719c8677c2fa84434c1e7720384d782d97c098fa6fbcbdbf4030986e diff --git a/app-arch/unp/unp-2.0_pre10.ebuild b/app-arch/unp/unp-2.0_pre10.ebuild new file mode 100644 index 000000000000..c719be032835 --- /dev/null +++ b/app-arch/unp/unp-2.0_pre10.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 strip-linguas + +DESCRIPTION="Script for unpacking various file formats" +HOMEPAGE="https://packages.qa.debian.org/u/unp.html" +MY_PV="${PV/_pre/$'\x7e'pre}" +SRC_URI="mirror://debian/pool/main/u/unp/${PN}_${MY_PV}.tar.xz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="nls" + +DEPEND="nls? ( sys-devel/gettext )" + +RDEPEND="${DEPEND} + dev-lang/perl" + +# tests in upstream tarball are missing sample files +RESTRICT="test" + +src_compile() { + if use nls; then + strip-linguas -i . + if [ -n "$LINGUAS" ]; then + emake -C po MOFILES="${LINGUAS// /.po }.po" + else + emake -C po + fi + fi +} + +src_install() { + dobin unp + dosym unp /usr/bin/ucat + doman debian/unp.1 + dodoc debian/changelog debian/README.Debian + newbashcomp debian/unp.bash-completion unp + + if use nls; then + if [ -n "$LINGUAS" ]; then + emake -C po MOFILES="${LINGUAS// /.mo }.mo" DESTDIR="${D}" install + else + emake -C po DESTDIR="${D}" install + fi + fi +}