diff options
author | Joe Kappus <joe@wt.gd> | 2023-09-02 06:10:36 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-02 16:00:11 +0100 |
commit | 53d9488e4a950fecd17653691d7df5fe428df7cf (patch) | |
tree | ca317f3c137eaf88404f48393b1b32e5de25a2e9 /app-arch | |
parent | app-arch/par2cmdline-turbo: new package, add 1.1.0, 9999 (diff) | |
download | gentoo-53d9488e4a950fecd17653691d7df5fe428df7cf.tar.gz gentoo-53d9488e4a950fecd17653691d7df5fe428df7cf.tar.bz2 gentoo-53d9488e4a950fecd17653691d7df5fe428df7cf.zip |
app-arch/par2cmdline: fix openmp useflag and tests
With advice from sam and dwfreed on IRC.
openmp useflag was not being passed to configure.
Tests work concurrently for some time.
See-also: https://github.com/Parchive/par2cmdline/commit/91947749f93cc605781eabe6548f845728e45532
Signed-off-by: Joe Kappus <joe@wt.gd>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/par2cmdline/par2cmdline-0.8.1-r2.ebuild | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app-arch/par2cmdline/par2cmdline-0.8.1-r2.ebuild b/app-arch/par2cmdline/par2cmdline-0.8.1-r2.ebuild new file mode 100644 index 000000000000..e026448f3a80 --- /dev/null +++ b/app-arch/par2cmdline/par2cmdline-0.8.1-r2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A PAR-2.0 file verification and repair tool" +HOMEPAGE="https://github.com/Parchive/par2cmdline" +SRC_URI="https://github.com/Parchive/${PN}/releases/download/v${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="openmp" + +PATCHES=( "${FILESDIR}"/${P}-big-endian.patch ) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_configure() { + econf $(use_enable openmp) +} |