summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-arch/unp/Manifest1
-rw-r--r--app-arch/unp/files/zstd-support.patch28
-rw-r--r--app-arch/unp/unp-2.0_pre9-r1.ebuild51
-rw-r--r--metadata/md5-cache/app-arch/unp-2.0_pre9-r114
-rw-r--r--metadata/pkg_desc_index1
5 files changed, 95 insertions, 0 deletions
diff --git a/app-arch/unp/Manifest b/app-arch/unp/Manifest
new file mode 100644
index 00000000..53acee29
--- /dev/null
+++ b/app-arch/unp/Manifest
@@ -0,0 +1 @@
+DIST unp_2.0~pre9.tar.xz 16424 BLAKE2B 9042f48be0f80d5e40a08161a35c282ba458dc98cf13992835bdeecebd5fbadd33b3af9165738332cb9f508550a234a48d314332f00ecdacc808a8051eb0740b SHA512 74c9a6e143c9023bdd456dacff5c3a6e30722e259f324c066fe3eed9e4a09c38b399b381719c8677c2fa84434c1e7720384d782d97c098fa6fbcbdbf4030986e
diff --git a/app-arch/unp/files/zstd-support.patch b/app-arch/unp/files/zstd-support.patch
new file mode 100644
index 00000000..849fcf9b
--- /dev/null
+++ b/app-arch/unp/files/zstd-support.patch
@@ -0,0 +1,28 @@
+diff --git a/unp b/unp-with-zstd
+old mode 100644
+new mode 100755
+index a633f67..33de8d0
+--- a/unp
++++ b/unp-with-zstd
+@@ -148,6 +148,10 @@ use constant
+ [ [ "bzip2" ], "tar", "--bzip2", "-x", "-v", "-f"]
+ ],
+
++ [ gettext("tar with zstd"), "tar.zst|tzst", undef, 0,
++ [ [ "zstd" ], "tar", "--zstd", "-x", "-v", "-f"]
++ ],
++
+ [ gettext("tar with xz-utils"), "tar.xz|txz", undef, 0,
+
+ [ [ "xz" ], "tar", "--xz", "-x", "-v", "-f"]
+@@ -187,6 +191,10 @@ use constant
+ [ "xzcat" ]
+ ],
+
++ [ "zstd", "zst", "zstd.compressed", IS_STREAM_FILTER,
++ [ "zstd", "-cd" ]
++ ],
++
+ [ "lzip", "lz", "lzip.compressed", IS_STREAM_FILTER,
+ [ "lzip", "-cd" ]
+ ],
diff --git a/app-arch/unp/unp-2.0_pre9-r1.ebuild b/app-arch/unp/unp-2.0_pre9-r1.ebuild
new file mode 100644
index 00000000..f6d45a05
--- /dev/null
+++ b/app-arch/unp/unp-2.0_pre9-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~sparc-solaris ~x86-solaris"
+IUSE="nls"
+
+DEPEND="nls? ( sys-devel/gettext )"
+
+RDEPEND="${DEPEND}
+ dev-lang/perl"
+
+PATCHES=( "${FILESDIR}"/zstd-support.patch )
+
+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
+}
diff --git a/metadata/md5-cache/app-arch/unp-2.0_pre9-r1 b/metadata/md5-cache/app-arch/unp-2.0_pre9-r1
new file mode 100644
index 00000000..fd71d736
--- /dev/null
+++ b/metadata/md5-cache/app-arch/unp-2.0_pre9-r1
@@ -0,0 +1,14 @@
+DEFINED_PHASES=compile install
+DEPEND=nls? ( sys-devel/gettext )
+DESCRIPTION=Script for unpacking various file formats
+EAPI=7
+HOMEPAGE=https://packages.qa.debian.org/u/unp.html
+INHERIT=bash-completion-r1 strip-linguas
+IUSE=nls
+KEYWORDS=amd64 ~arm arm64 ~hppa ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris
+LICENSE=GPL-2
+RDEPEND=nls? ( sys-devel/gettext ) dev-lang/perl
+SLOT=0
+SRC_URI=mirror://debian/pool/main/u/unp/unp_2.0~pre9.tar.xz
+_eclasses_=bash-completion-r1 f5e7a020fd9c741740756aac61bf75ff multilib 5ca4e49abed8e3a2f7b56920eadee157 strip-linguas ac3ee41ee2d31d8c41a77c0838320cc7 toolchain-funcs 441f754fd75cd4fd1fa06fbc17da6144
+_md5_=4978777d9489eceb02d3374f19a41e00
diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index
index 71957c0e..4835a03b 100644
--- a/metadata/pkg_desc_index
+++ b/metadata/pkg_desc_index
@@ -1,6 +1,7 @@
acct-group/smbshare 0: System group: smbshare
app-admin/calamares 3.2.44.3-r2: Distribution-independent installer framework
app-admin/vasile 2.1812.2: Versatile Advanced Script for ISO and Latest Enchantments
+app-arch/unp 2.0_pre9-r1: Script for unpacking various file formats
app-backup/timeshift 22.06.1-r1: A system restore utility for Linux
app-emulation/linux-steam-integration 0.7.3-r3: Helper for enabling better Steam integration on Linux
app-emulation/steam 1.0.0.71-r1: Digital distribution client bootstrap package