From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- app-arch/pxz/pxz-9999.ebuild | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'app-arch/pxz/pxz-9999.ebuild') 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 '//c\#define error(R,E,S,...) fprintf(stderr, S "\\n", ##__VA_ARGS__); exit(R)' pxz.c + sed -i -e '//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 +} -- cgit v1.2.3