diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2022-01-16 15:23:00 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2022-01-16 15:24:11 -0800 |
commit | 40fd34938afd96ce2a91c0840ee2d03eee2f743e (patch) | |
tree | eb8d09fb28025145d9294011ad2106db3f1527e0 /app-arch/pigz | |
parent | dev-python/flit_core: Keyword 3.6.0-r2 for ~m68k (diff) | |
download | gentoo-40fd34938afd96ce2a91c0840ee2d03eee2f743e.tar.gz gentoo-40fd34938afd96ce2a91c0840ee2d03eee2f743e.tar.bz2 gentoo-40fd34938afd96ce2a91c0840ee2d03eee2f743e.zip |
app-arch/pigz: add 2.7
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'app-arch/pigz')
-rw-r--r-- | app-arch/pigz/Manifest | 1 | ||||
-rw-r--r-- | app-arch/pigz/pigz-2.7.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/app-arch/pigz/Manifest b/app-arch/pigz/Manifest index 33a88c53276c..ac8a89f32a98 100644 --- a/app-arch/pigz/Manifest +++ b/app-arch/pigz/Manifest @@ -1 +1,2 @@ DIST pigz-2.6.tar.gz 106840 BLAKE2B 8e1a8ca593896fc947a7d6ffaa71d9be69d347f7cf1ed2f635b8480aa05708f4679a4768cf3a18ac515ea94dd8352dd4158bd3c9d1b6fdebd82ad1b582d04cba SHA512 04d2e44bc7a7eb061c3c48100ce5b8fc79931aeac72340abd768fd2a4499ff1004e2bc009772fc2003a4c599f6e90f3abc8bef5c377d6397f1c8e9f7c49f95e2 +DIST pigz-2.7.tar.gz 108102 BLAKE2B d391522fd6f8eb6918d671fb1c9517034941f3ae8e05ffcd7bece141e6dae110cde1560bad02bd2bcca2f868cdba2a8a16b5606ad6637d40d5ced5ec9bfffcc8 SHA512 9f9f61de4a0307fc057dc4e31a98bd8d706d9e709ecde0be02a871534fddf6a1fe1321158aa72708603aaaece43f83d2423b127f7689b6219b23aea4f989e8f5 diff --git a/app-arch/pigz/pigz-2.7.ebuild b/app-arch/pigz/pigz-2.7.ebuild new file mode 100644 index 000000000000..7d6303c7ddc5 --- /dev/null +++ b/app-arch/pigz/pigz-2.7.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="A parallel implementation of gzip" +HOMEPAGE="https://www.zlib.net/pigz/" +SRC_URI="https://www.zlib.net/pigz/${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~sparc64-solaris" +IUSE="static symlink test" +RESTRICT="!test? ( test )" + +LIB_DEPEND="sys-libs/zlib[static-libs(+)]" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} ) + test? ( app-arch/ncompress )" + +src_compile() { + use static && append-ldflags -static + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin ${PN} + dosym ${PN} /usr/bin/un${PN} + dodoc README + doman ${PN}.1 + + if use symlink; then + dosym ${PN} /usr/bin/gzip + dosym un${PN} /usr/bin/gunzip + fi +} |