diff options
author | David Seifert <soap@gentoo.org> | 2022-07-10 12:38:27 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-07-10 12:38:27 +0200 |
commit | 871c4217af48b7a615fd92cfbcf15ae5e5984928 (patch) | |
tree | 3570ac6953c12fd3f41fb1d5a7e18c28bfd71c3f /app-arch/zpaq/zpaq-7.15-r1.ebuild | |
parent | net-misc/rclone: 1.59.0 version bump. (diff) | |
download | gentoo-871c4217af48b7a615fd92cfbcf15ae5e5984928.tar.gz gentoo-871c4217af48b7a615fd92cfbcf15ae5e5984928.tar.bz2 gentoo-871c4217af48b7a615fd92cfbcf15ae5e5984928.zip |
app-arch/zpaq: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-arch/zpaq/zpaq-7.15-r1.ebuild')
-rw-r--r-- | app-arch/zpaq/zpaq-7.15-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-arch/zpaq/zpaq-7.15-r1.ebuild b/app-arch/zpaq/zpaq-7.15-r1.ebuild new file mode 100644 index 000000000000..cd79e48be432 --- /dev/null +++ b/app-arch/zpaq/zpaq-7.15-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 flag-o-matic pax-utils toolchain-funcs + +MY_P="${PN}${PV/./}" + +DESCRIPTION="Journaling incremental deduplicating archiving compressor" +HOMEPAGE="http://mattmahoney.net/dc/zpaq.html" +SRC_URI="http://mattmahoney.net/dc/${MY_P}.zip" +S="${WORKDIR}" + +LICENSE="Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="debug +jit" + +# perl for pod2man +BDEPEND=" + app-arch/unzip + dev-lang/perl" + +src_compile() { + use debug || append-cppflags -DNDEBUG + use jit || append-cppflags -DNOJIT + emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" +} + +src_test() { + use jit && pax-mark m zpaq + default +} + +src_install() { + emake install PREFIX="${ED}"/usr + use jit && pax-mark m "${ED}"/usr/bin/zpaq + einstalldocs +} + +pkg_postinst() { + if ! has_version app-arch/zpaq-extras; then + elog "You may also want to install app-arch/zpaq-extras package which provides" + elog "few additional configs and preprocessors for use with zpaq." + fi +} |