diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-02-17 11:51:40 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-02-17 14:37:21 +0100 |
commit | d39b56393beb1755e008e5281cf882baeeae7a80 (patch) | |
tree | 42ae7ed31bcdc8952f6cb69ba3347a267030e535 /dev-libs/libtar/libtar-1.2.20-r4.ebuild | |
parent | dev-libs/libtar: Security cleanup 2 years after the fact (diff) | |
download | gentoo-d39b56393beb1755e008e5281cf882baeeae7a80.tar.gz gentoo-d39b56393beb1755e008e5281cf882baeeae7a80.tar.bz2 gentoo-d39b56393beb1755e008e5281cf882baeeae7a80.zip |
dev-libs/libtar: EAPI 6 bump
Add sys-libs/zlib slot op, drop inaccessible homepage.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-libs/libtar/libtar-1.2.20-r4.ebuild')
-rw-r--r-- | dev-libs/libtar/libtar-1.2.20-r4.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/dev-libs/libtar/libtar-1.2.20-r4.ebuild b/dev-libs/libtar/libtar-1.2.20-r4.ebuild new file mode 100644 index 000000000000..5f441bbfa570 --- /dev/null +++ b/dev-libs/libtar/libtar-1.2.20-r4.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="C library for manipulating tar archives" +HOMEPAGE="http://repo.or.cz/w/libtar.git/" +SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="static-libs zlib" + +RDEPEND=" + zlib? ( sys-libs/zlib:= ) + !zlib? ( app-arch/gzip ) +" +DEPEND="${RDEPEND}" + +DOCS=( ChangeLog{,-1.0.x} README TODO ) + +S="${WORKDIR}/${PN}" + +# There is no test and 'check' target errors out due to mixing of automake & +# non-automake makefiles. +# https://bugs.gentoo.org/show_bug.cgi?id=526436 +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.11-free.patch + "${FILESDIR}"/${PN}-1.2.11-impl-dec.patch + "${FILESDIR}"/CVE-2013-4420.patch +) + +src_prepare() { + default + + sed -e '/INSTALL_PROGRAM/s:-s::' \ + -i {doc,lib{,tar}}/Makefile.in || die + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + --disable-encap + --disable-epkg-install + $(use_enable static-libs static) + $(use_with zlib) + ) + + econf ${myeconfargs[@]} +} + +src_install() { + default + + newdoc compat/README README.compat + newdoc compat/TODO TODO.compat + newdoc listhash/TODO TODO.listhash + + find "${D}" -name '*.la' -delete || die +} |