diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-18 15:36:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-18 15:36:15 +0100 |
commit | a2f7cdda45fadf1f967379421e8d808b1a503cd3 (patch) | |
tree | c02c7db0bb9249243aa73a4098a17e13daaaff21 /app-arch/pigz/pigz-2.7-r2.ebuild | |
parent | 66611e742171c343d64095516e19737d4753ba61 (diff) |
gentoo auto-resync : 18:08:2023 - 15:36:15
Diffstat (limited to 'app-arch/pigz/pigz-2.7-r2.ebuild')
-rw-r--r-- | app-arch/pigz/pigz-2.7-r2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app-arch/pigz/pigz-2.7-r2.ebuild b/app-arch/pigz/pigz-2.7-r2.ebuild new file mode 100644 index 000000000000..6bbbc55c5601 --- /dev/null +++ b/app-arch/pigz/pigz-2.7-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos" +IUSE="static test" +RESTRICT="!test? ( test )" + +LIB_DEPEND=">=sys-libs/zlib-1.2.3[static-libs(+)]" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND=" + ${RDEPEND} + static? ( ${LIB_DEPEND} ) + test? ( app-arch/ncompress ) +" + +PATCHES=( + "${FILESDIR}"/${P}-memcpy-ub.patch + "${FILESDIR}"/${P}-zlib-1.3.patch +) + +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 +} |