diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-25 11:40:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-25 11:40:32 +0000 |
commit | 4215622c05ed14d30fdad5a4d0feba6d94b0d046 (patch) | |
tree | 2e7c452f4b9f4b13bf11bf37ea05bdcf1bc7d73e /app-arch/unp/unp-2.0.ebuild | |
parent | d117dce29795dfc5a9824d31a128decaa37f73d2 (diff) |
gentoo auto-resync : 25:02:2024 - 11:40:31
Diffstat (limited to 'app-arch/unp/unp-2.0.ebuild')
-rw-r--r-- | app-arch/unp/unp-2.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-arch/unp/unp-2.0.ebuild b/app-arch/unp/unp-2.0.ebuild new file mode 100644 index 000000000000..adda2e2d2d1b --- /dev/null +++ b/app-arch/unp/unp-2.0.ebuild @@ -0,0 +1,51 @@ +# 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" +SRC_URI="mirror://debian/pool/main/u/unp/${PN}_${PV}.tar.xz" +S="${WORKDIR}/${P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="nls test" + +DEPEND="nls? ( sys-devel/gettext ) + test? ( app-arch/lzop + app-arch/lzip + app-arch/zstd )" + +RDEPEND="${DEPEND} + dev-lang/perl" + +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 +} |