summaryrefslogtreecommitdiff
path: root/app-arch/pxz
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-arch/pxz
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'app-arch/pxz')
-rw-r--r--app-arch/pxz/Manifest4
-rw-r--r--app-arch/pxz/pxz-5.0_pre20151029-r1.ebuild (renamed from app-arch/pxz/pxz-5.0_pre20151029.ebuild)29
-rw-r--r--app-arch/pxz/pxz-9999.ebuild32
3 files changed, 40 insertions, 25 deletions
diff --git a/app-arch/pxz/Manifest b/app-arch/pxz/Manifest
index 29338d0f231f..3a9ffc1fad60 100644
--- a/app-arch/pxz/Manifest
+++ b/app-arch/pxz/Manifest
@@ -1,4 +1,4 @@
DIST pxz-5.0_pre20151029.tar.gz 12271 BLAKE2B 6ba2cb7629b0475761b59620375a2d0de7c6a3a61f7af20140e214383f737e046c45f0c602830c0331794fe1d38332d8d309ed0b8451e3a780ef1a2835de85e6 SHA512 d26bfdf9b70baf91c575e21824920cb42d0a9bd171254b99147a6e5e322ed3d1f7351a570358213431bdacdcbe6e7b22646a2dd2d7a127e167c8237bc4f3038a
-EBUILD pxz-5.0_pre20151029.ebuild 905 BLAKE2B e1d28f1ea2a900848f6610194fff146540ec6b1a6f763a18321a66ad83870b6f460ee810bf1151fa5276d411ffb56d949b05a2e19ed536141dffd5a68c1940a8 SHA512 c167018ea6ef7220a66ed10e2afabbf3a874a8ab4f3773bf4aff067c929c14f19529ee5dacc89217cfb9852b039681ef30214b3f680cb103bbcc381368a7c690
-EBUILD pxz-9999.ebuild 1076 BLAKE2B a02426987fa401932ecf01eb606c969a03a5e864590b60d50acfc561ff5370c5514294b049ab88b582846243601023f0df0e7ef7919cf3b02cd2e7a2fb3fa748 SHA512 ed800af1dbd5d3ebc9f86428d63c854575c2d636134a1cfeb139f396636b8f2648b947a17e172335cc77df4d7925a4ad2d8d6bdc2eb409e3312c3b54cc152fb4
+EBUILD pxz-5.0_pre20151029-r1.ebuild 954 BLAKE2B f830dab90a2ce0a18b3fc7b1af707b0d944505bd11da195b2f6114dc804c7687942647ad285f63484c223ebb89a2ea2e26646c3c7d7c8ed6ef68ea83b66773e5 SHA512 41b4fd0e84164bc59b654cbe090d2166ac38ec885cf0b8f8e07ede110d23520f907ece6bc98a1a9deba6b40d17815f66b2837210392b3a7c56c1734f3893d7a6
+EBUILD pxz-9999.ebuild 1121 BLAKE2B bcfbf07cee491d39415249a3bbc71a2f6b6916bdfd770f35e6f6b97ae5615f11972590322873a51d94990b7d7c4f7a3f1f2f20b0a77b92989189fc5a481e9800 SHA512 c56047b53c3ff5dfc60ed6145e7094feaedb9ec2b33922a034b3282216c9d9cb80b4ae4b5339a88324c87e76143f2dfbab7d8497bc3eb26f030d9e473bc74b7c
MISC metadata.xml 590 BLAKE2B dc0e461eddfdb09a6837da49b6221437f09c7ca7bb13b57486c62466c8547a4a73c8ec6c3e28be149840318adf36aa893501326ed9fa6fa1b08dba95ef544a51 SHA512 2535178a8e8a4bc14d70366fef8295eca4fcdbdf6451b7a9c8806f114607edaea4bb60ce1c473fa9b9d9b78fb141a91c90923d32e6cf88da6157f7d8653eaebe
diff --git a/app-arch/pxz/pxz-5.0_pre20151029.ebuild b/app-arch/pxz/pxz-5.0_pre20151029-r1.ebuild
index 64175e6452fa..c9ad43cebe99 100644
--- a/app-arch/pxz/pxz-5.0_pre20151029.ebuild
+++ b/app-arch/pxz/pxz-5.0_pre20151029-r1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="6"
+EAPI=8
inherit toolchain-funcs vcs-snapshot
@@ -12,22 +12,29 @@ SRC_URI="https://github.com/jnovy/pxz/archive/fcfea93957d96b7661d1439cf4b767ecfd
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux"
-IUSE=""
# needs the library from xz-utils
-# needs the libgomp library from gcc at runtime
-RDEPEND="app-arch/xz-utils
- sys-devel/gcc:*[openmp]"
+RDEPEND="app-arch/xz-utils"
DEPEND="${RDEPEND}"
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
src_prepare() {
- tc-check-openmp
- tc-export CC
- export BINDIR="${EPREFIX}"/usr/bin
- export MANDIR="${EPREFIX}"/usr/share/man
- default_src_prepare
+ default
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
+ 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
+}
diff --git a/app-arch/pxz/pxz-9999.ebuild b/app-arch/pxz/pxz-9999.ebuild
index 895c02be50d0..f67a5e51ae6a 100644
--- a/app-arch/pxz/pxz-9999.ebuild
+++ b/app-arch/pxz/pxz-9999.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
-inherit toolchain-funcs flag-o-matic
+inherit toolchain-funcs
-if [[ ${PV} == "9999" ]] ; then
+if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/jnovy/pxz.git"
inherit git-r3
else
@@ -27,19 +27,27 @@ SLOT="0"
IUSE=""
# needs the library from xz-utils
-# needs the libgomp library from gcc at runtime
-DEPEND="app-arch/xz-utils
- sys-devel/gcc:*[openmp]"
+DEPEND="app-arch/xz-utils"
RDEPEND="${DEPEND}"
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
src_prepare() {
- tc-check-openmp
- tc-export CC
- export BINDIR="${EPREFIX}"/usr/bin
- export MANDIR="${EPREFIX}"/usr/share/man
- default_src_prepare
+ default
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
+ 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
+}