Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/dar/
Date: Tue, 05 Jul 2022 07:40:35
Message-Id: 1657006829.44f5d74f86524ee9a4b60bfe022cba5eaa11dd0c.juippis@gentoo
1 commit: 44f5d74f86524ee9a4b60bfe022cba5eaa11dd0c
2 Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com>
3 AuthorDate: Thu Jun 23 18:23:20 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 5 07:40:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44f5d74f
7
8 app-backup/dar: add 2.7.6
9
10 Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/26059
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 app-backup/dar/Manifest | 1 +
15 app-backup/dar/dar-2.7.6.ebuild | 91 +++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 92 insertions(+)
17
18 diff --git a/app-backup/dar/Manifest b/app-backup/dar/Manifest
19 index 48e604c1f49b..12954d8b4057 100644
20 --- a/app-backup/dar/Manifest
21 +++ b/app-backup/dar/Manifest
22 @@ -1 +1,2 @@
23 DIST dar-2.7.5.tar.gz 2404076 BLAKE2B 2887629cecf069cfb5063132299279b8be985785485c6f04a8389dfd4930f00b073b421fbb17915d69f5efd46ebb4c3d371c10d3936bfb16d82a191218af350d SHA512 a4e01dce8a078ba81b3032a1910d75f0f59a23511246f570a50ade135f49f11e522ed8916a947aece1799dcd1d37308ba6e4a009313b80d6a1561698c3d5623a
24 +DIST dar-2.7.6.tar.gz 2410200 BLAKE2B 925b4854c66fec9287e0f42d213f94f208b5248d09eb6abe4e36a41df1fc57641d7a6b41e1f8aaa202e6f74ad04399c70a8cb74dc63685985a5671ba54efdf93 SHA512 517fa06a5b8caa53ad111e4287446583f328ee2027169db067610877e05291e63179c1bdd92312a6885d1c7eba0566a86301e974d1d48df56f0fce9ccfdb3a19
25
26 diff --git a/app-backup/dar/dar-2.7.6.ebuild b/app-backup/dar/dar-2.7.6.ebuild
27 new file mode 100644
28 index 000000000000..ef7cc64225b7
29 --- /dev/null
30 +++ b/app-backup/dar/dar-2.7.6.ebuild
31 @@ -0,0 +1,91 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit flag-o-matic
38 +
39 +DESCRIPTION="A full featured backup tool, aimed for disks"
40 +HOMEPAGE="http://dar.linux.free.fr/"
41 +SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
42 +
43 +LICENSE="GPL-2+"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux"
46 +IUSE="argon2 curl dar32 dar64 doc gcrypt gpg lz4 lzo nls rsync threads xattr"
47 +
48 +REQUIRED_USE="?? ( dar32 dar64 )
49 + gpg? ( gcrypt )"
50 +
51 +RESTRICT="test" # need to be run as root
52 +
53 +RDEPEND="
54 + app-arch/bzip2:=
55 + app-arch/xz-utils
56 + app-arch/zstd:=
57 + sys-libs/libcap
58 + >=sys-libs/zlib-1.2.3:=
59 + argon2? ( app-crypt/argon2:= )
60 + curl? ( net-misc/curl )
61 + gcrypt? (
62 + dev-libs/libgcrypt:0=
63 + dev-libs/libgpg-error
64 + )
65 + gpg? ( app-crypt/gpgme:= )
66 + lz4? ( app-arch/lz4:= )
67 + lzo? ( dev-libs/lzo:2 )
68 + nls? ( virtual/libintl )
69 + rsync? ( net-libs/librsync:= )
70 + threads? ( dev-libs/libthreadar )
71 + xattr? ( sys-apps/attr )
72 +"
73 +
74 +DEPEND="${RDEPEND}"
75 +
76 +BDEPEND="
77 + doc? ( app-doc/doxygen )
78 + nls? ( sys-devel/gettext )
79 +"
80 +
81 +src_configure() {
82 + # configure.ac is totally funked up regarding the AC_ARG_ENABLE
83 + # logic.
84 + # For example "--enable-dar-static" causes configure to DISABLE
85 + # static builds of dar.
86 + # Do _not_ use $(use_enable) until you have verified that the
87 + # logic has been fixed by upstream.
88 + local myconf=(
89 + --disable-dar-static
90 + --disable-python-binding
91 + --disable-upx
92 + $(usev !argon2 --disable-libargon2-linking)
93 + $(usev !curl --disable-libcurl-linking)
94 + $(usev dar32 --enable-mode=32)
95 + $(usev dar64 --enable-mode=64)
96 + $(usev !doc --disable-build-html)
97 + $(usev !gcrypt --disable-libgcrypt-linking)
98 + $(usev !gpg --disable-gpgme-linking)
99 + $(usev !lz4 --disable-liblz4-linking)
100 + $(usev !lzo --disable-liblzo2-linking)
101 + $(usev !nls --disable-nls)
102 + $(usev !rsync --disable-librsync-linking)
103 + $(usev !threads --disable-threadar)
104 + $(usev !xattr --disable-ea-support)
105 + )
106 +
107 + # Bug 103741
108 + filter-flags -fomit-frame-pointer
109 +
110 + econf "${myconf[@]}"
111 +}
112 +
113 +src_install() {
114 + emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install
115 +
116 + einstalldocs
117 +
118 + find "${ED}" -name "*.la" -delete || die
119 +
120 + # Bug 729150
121 + rm "${ED}/usr/share/doc/${PF}/html/samples/MyBackup.sh.tar.gz" || die
122 +}