mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
Update done using: ``` git grep -l sys-libs/zlib dev-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Followed by manual revert in dev-python/zlib-ng where it accidentally caught sys-libs/zlib-ng dependencies. Signed-off-by: Michał Górny <mgorny@gentoo.org>
65 lines
1.4 KiB
Bash
65 lines
1.4 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="C library for manipulating tar archives"
|
|
HOMEPAGE="https://repo.or.cz/w/libtar.git/"
|
|
SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.gz"
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm ~arm64 ~loong ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
|
IUSE="zlib"
|
|
# There is no test and 'check' target errors out due to mixing of automake &
|
|
# non-automake makefiles.
|
|
# https://bugs.gentoo.org/526436
|
|
RESTRICT="test"
|
|
|
|
RDEPEND="
|
|
zlib? ( virtual/zlib:= )
|
|
!zlib? ( app-arch/gzip )"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-1.2.11-free.patch
|
|
"${FILESDIR}"/${PN}-1.2.11-impl-dec.patch
|
|
"${FILESDIR}"/CVE-2013-4420.patch
|
|
"${FILESDIR}"/${P}-fd-leaks.patch
|
|
"${FILESDIR}"/${P}-tar_open-memleak.patch
|
|
"${FILESDIR}"/${P}-bin-memleaks.patch
|
|
"${FILESDIR}"/${P}-configure-clang16.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
sed -e '/INSTALL_PROGRAM/s:-s::' \
|
|
-i {doc,lib{,tar}}/Makefile.in || die
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myeconfargs=(
|
|
--disable-encap
|
|
--disable-epkg-install
|
|
$(use_with zlib)
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
dodoc ChangeLog-1.0.x
|
|
newdoc compat/README README.compat
|
|
newdoc compat/TODO TODO.compat
|
|
newdoc listhash/TODO TODO.listhash
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
}
|