diff options
author | 2023-05-05 11:22:36 +0100 | |
---|---|---|
committer | 2023-05-05 11:22:36 +0100 | |
commit | 7dcb5e4f219cd74a9baca455850bbe626f2cde65 (patch) | |
tree | 903f2e508c3ee2f079f5a60bcb2bef9176a84b43 /app-backup/tarsnap/tarsnap-1.0.40-r2.ebuild | |
parent | media-fonts/noto: Stabilize 20230201 ppc, #904472 (diff) | |
download | gentoo-7dcb5e4f219cd74a9baca455850bbe626f2cde65.tar.gz gentoo-7dcb5e4f219cd74a9baca455850bbe626f2cde65.tar.bz2 gentoo-7dcb5e4f219cd74a9baca455850bbe626f2cde65.zip |
app-backup/tarsnap: always build w/ bzip2
The bundled libarchive (ancient copy) always builds the bzip2 bits.
Closes: https://bugs.gentoo.org/905748
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-backup/tarsnap/tarsnap-1.0.40-r2.ebuild')
-rw-r--r-- | app-backup/tarsnap/tarsnap-1.0.40-r2.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/app-backup/tarsnap/tarsnap-1.0.40-r2.ebuild b/app-backup/tarsnap/tarsnap-1.0.40-r2.ebuild new file mode 100644 index 000000000000..630b4bb5de3e --- /dev/null +++ b/app-backup/tarsnap/tarsnap-1.0.40-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 toolchain-funcs + +DESCRIPTION="Online backups for the truly paranoid" +HOMEPAGE="https://www.tarsnap.com/" +SRC_URI="https://www.tarsnap.com/download/${PN}-autoconf-${PV}.tgz" +S="${WORKDIR}"/${PN}-autoconf-${PV} + +LICENSE="tarsnap" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="acl bzip2 lzma xattr" + +RDEPEND=" + app-arch/bzip2 + dev-libs/openssl:= + sys-fs/e2fsprogs + sys-libs/zlib + acl? ( sys-apps/acl ) + lzma? ( app-arch/xz-utils ) + xattr? ( sys-apps/attr ) +" +# Required for "magic.h" +DEPEND=" + ${RDEPEND} + virtual/os-headers +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.39-respect-AR.patch + "${FILESDIR}"/${P}-strict-aliasing-fix.patch +) + +src_configure() { + local myeconfargs=( + $(use_enable xattr) + $(use_enable acl) + # The bundled libarchive (ancient copy) always builds + # the bzip2 bits. + --with-bz2lib + --without-lzmadec + $(use_with lzma) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + dobashcomp misc/bash_completion.d/* +} |