diff options
author | David Seifert <soap@gentoo.org> | 2022-05-16 10:12:06 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-05-16 10:12:06 +0200 |
commit | e6ef88c4ce96c90cfb0a0ed891265880e20b4e78 (patch) | |
tree | 7df35a11ede8473fd246cf39ae0b0e35f45ffed3 /app-arch/pxz | |
parent | xfce-base/garcon: Bump to 4.17.0 (diff) | |
download | gentoo-e6ef88c4ce96c90cfb0a0ed891265880e20b4e78.tar.gz gentoo-e6ef88c4ce96c90cfb0a0ed891265880e20b4e78.tar.bz2 gentoo-e6ef88c4ce96c90cfb0a0ed891265880e20b4e78.zip |
app-arch/pxz: [QA] use tc-check-openmp correctly
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-arch/pxz')
-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.ebuild | 32 |
2 files changed, 38 insertions, 23 deletions
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 +} |