You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.1 KiB
60 lines
1.1 KiB
# 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/*
|
|
}
|