commit:     0a82149477bbb1065ecf45b61160e2cb7970dba2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  7 22:09:31 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul  7 22:09:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a821494

app-backup/tarsnap: add 1.0.41

* Make tests run (`check` target does nothing, use `test`)
* Add --with-bash-completion-dir= (would've been automagic before but
  we were installing them manually)
* Add --with-zsh-completion-dir= (not installed at all before)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-backup/tarsnap/Manifest              |  1 +
 app-backup/tarsnap/tarsnap-1.0.41.ebuild | 64 ++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/app-backup/tarsnap/Manifest b/app-backup/tarsnap/Manifest
index cf89de912705..0aea2662b9e4 100644
--- a/app-backup/tarsnap/Manifest
+++ b/app-backup/tarsnap/Manifest
@@ -1 +1,2 @@
 DIST tarsnap-autoconf-1.0.40.tgz 723380 BLAKE2B 
a794bb9bae3637c36841ad4bb0fa1c0e1c39a78ac2dc92f18cbe7dfe1036aa861f5421751dd8a85948dcb101ecb81f2177e844609b289238abd9a8448ba1655a
 SHA512 
a4910c5cbea4a71218638703ba3140e5536a2c9bb7f35007115a7ae4a87fcd07b1be91d88e49240ee8db39be326bac049c0893c1406f215123d55a13b7b57941
+DIST tarsnap-autoconf-1.0.41.tgz 763978 BLAKE2B 
485305ad628c55b39cb639adae08eeb03ca03c5d9d610a466ebfacca09552e7a2016712d834b8f43270cccc593cc31f794f99615aea89eb33152ec81c38e25e6
 SHA512 
ea9fc30c9d9860040021eae2583c370c6ebd5bb37c5fa39d9d0ea141ff976d22e5df8c842c0963b6d930da9452eb0e6c3040e74e9cdb3a348e41f4aeec27deb8

diff --git a/app-backup/tarsnap/tarsnap-1.0.41.ebuild 
b/app-backup/tarsnap/tarsnap-1.0.41.ebuild
new file mode 100644
index 000000000000..8abb4718a288
--- /dev/null
+++ b/app-backup/tarsnap/tarsnap-1.0.41.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs shell-completion
+
+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 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="acl bzip2 lzma xattr"
+# The tarsnap license allows redistribution only without modification.
+# Commented out because patches apply only to files with a free license.
+#RESTRICT="bindist"
+
+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
+"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+       # false positive due to outdated autoconf, bug #900124
+       # release tarballs don't contain configure.ac!!!
+       makedev
+)
+
+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)
+               --with-bash-completion-dir="$(get_bashcompdir)"
+               --with-zsh-completion-dir="$(get_zshcompdir)"
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       emake AR="$(tc-getAR)"
+}
+
+src_test() {
+       emake test
+}

Reply via email to