summaryrefslogtreecommitdiff
path: root/app-arch/pxz
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-23 07:58:50 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-23 07:58:50 +0000
commit7819ef4baadbb9171070ce385f7051989fe64e49 (patch)
tree3ceb56418e8596ecbbd740e492938eaa4775bb3a /app-arch/pxz
parent4921f12d049de1487e17383a32da50a03ea90d65 (diff)
gentoo auto-resync : 23:12:2022 - 07:58:50
Diffstat (limited to 'app-arch/pxz')
-rw-r--r--app-arch/pxz/Manifest2
-rw-r--r--app-arch/pxz/files/pxz-5.0_pre20220509-fix-xz-path.patch21
-rw-r--r--app-arch/pxz/pxz-5.0_pre20220509-r1.ebuild47
3 files changed, 70 insertions, 0 deletions
diff --git a/app-arch/pxz/Manifest b/app-arch/pxz/Manifest
index 47eae24b5876..233525838ae9 100644
--- a/app-arch/pxz/Manifest
+++ b/app-arch/pxz/Manifest
@@ -1,3 +1,5 @@
+AUX pxz-5.0_pre20220509-fix-xz-path.patch 484 BLAKE2B d81b33465655a24ce1de0c503f5186ab8ee279f930f43eee9e6493f84a95902594335b757a6c707dc0b05b95622067bbceab61464175529b0c6a1688e4f6131d SHA512 e730ac3ccf4a3d0e7c57c65eafe3242596ce0bce06f3d21e5d9603a66fe4c611f8311bb9aba4206a68d3fffce3d26bf9ffc86fcb8d8cbf74d1446b84582569af
DIST pxz-5.0_pre20220509.tar.gz 12375 BLAKE2B 5d954d4cd1b139dc94a9ecc5aa99c19a1484812eb62fce089b8f33bfc0ce3ed3ad8053cdc58843c429a365439cd13b3a4b14ebc34de7f2a99deae7cd995cd4e6 SHA512 b1de877d2b8ee9ea5190af4c1a0dc97f7777c35a084137db6d86e23de99b332ea361a82ed995ac2ea12b7bf0670ae92a822235be3b19a1145b6cf5604074f960
+EBUILD pxz-5.0_pre20220509-r1.ebuild 1077 BLAKE2B 861904475eaec7edf1bc3b943c16d9a2073e32c9e88a2ac4d07469b5ba25bce725b7449e0075d66247fdeddff042752bdb870e18456399ee50b1776984d16d25 SHA512 76bace18e8e4795cb75298d8f43f4bb1e5af06f7e3e044b87abaa74c3f44b399ceabfba3f03a8f16448f7a3ff32cb9b6b702c7a08bca5b95a7c3b1cb89bdf24e
EBUILD pxz-5.0_pre20220509.ebuild 981 BLAKE2B c26364f09afd4d6dfe9a9e2394353a127804cb75a2230819c5eda46690ac1790ff26bd042e1e0ce8ccb530cc8bbfac945fb364dc708d275d2b5b2b6e464c3015 SHA512 8e64fab91e2d8769347de0c7c3e8d6d7476086898be7e910d332f7a42c7ff57f791185da8839ce3659b5d6f3cb493ebe347a574e19b04d69c2e49a14b0cf62e4
MISC metadata.xml 677 BLAKE2B 970357f7a9fbc5bbfefe6d2a8d8c72a27d3d62f37987a578811f056df9452efb7417c8a3cdd446f54ea0ffd1f12c4217a6ea8c8df9e699e88975c2e2b1afa183 SHA512 35091887bb484b965b915e280a4233f20fca36b19e893a1cc8eeae983f92a7afaf6ad67df87cf337083611e7805db6f80dcf184cab79ce4f0c2d877f28b01d6d
diff --git a/app-arch/pxz/files/pxz-5.0_pre20220509-fix-xz-path.patch b/app-arch/pxz/files/pxz-5.0_pre20220509-fix-xz-path.patch
new file mode 100644
index 000000000000..76e1f1506157
--- /dev/null
+++ b/app-arch/pxz/files/pxz-5.0_pre20220509-fix-xz-path.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/887255
+https://github.com/jnovy/pxz/issues/34
+https://github.com/jnovy/pxz/pull/40
+
+From 20014a968d2330ac90f48fc2091e15a44cb1e759 Mon Sep 17 00:00:00 2001
+From: Tobias Faller <fallert@tf.uni-freiburg.de>
+Date: Tue, 20 Dec 2022 22:41:59 +0100
+Subject: [PATCH] Updated default path for xz binary
+
+--- a/pxz.c
++++ b/pxz.c
+@@ -43,7 +43,7 @@
+ #endif
+
+ #ifndef XZ_BINARY
+-#define XZ_BINARY "xz"
++#define XZ_BINARY "/usr/bin/xz"
+ #endif
+
+ #define BUFFSIZE 0x10000
+
diff --git a/app-arch/pxz/pxz-5.0_pre20220509-r1.ebuild b/app-arch/pxz/pxz-5.0_pre20220509-r1.ebuild
new file mode 100644
index 000000000000..051b8312f0de
--- /dev/null
+++ b/app-arch/pxz/pxz-5.0_pre20220509-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs prefix vcs-snapshot
+
+PXZ_COMMIT="136e5c25daf545753329d7cee1b06ae482fb9c44"
+DESCRIPTION="Parallel implementation of the XZ compression utility"
+HOMEPAGE="http://jnovy.fedorapeople.org/pxz/"
+SRC_URI="https://github.com/jnovy/pxz/archive/${PXZ_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux"
+
+# Needs the library from xz-utils
+RDEPEND="app-arch/xz-utils"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.0_pre20220509-fix-xz-path.patch
+)
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
+src_prepare() {
+ default
+
+ eprefixify pxz.c
+
+ if use elibc_musl ; then
+ sed -i -e '/<error.h>/c\#define error(R,E,S,...) fprintf(stderr, S "\\n", ##__VA_ARGS__); exit(R)' pxz.c || die
+ fi
+}
+
+src_configure() {
+ tc-export CC
+ export BINDIR="${EPREFIX}"/usr/bin
+ export MANDIR="${EPREFIX}"/usr/share/man
+}