Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/xfsdump/
Date: Sat, 27 Aug 2022 23:12:58
Message-Id: 1661588831.0c49f3c437f15879977ef2614386a950ac80a4eb.sam@gentoo
1 commit: 0c49f3c437f15879977ef2614386a950ac80a4eb
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 27 08:25:39 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 27 08:27:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c49f3c4
7
8 sys-fs/xfsdump: add 3.1.11
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-fs/xfsdump/Manifest | 1 +
13 sys-fs/xfsdump/xfsdump-3.1.11.ebuild | 77 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 78 insertions(+)
15
16 diff --git a/sys-fs/xfsdump/Manifest b/sys-fs/xfsdump/Manifest
17 index bf62052b788c..e39d69bff18e 100644
18 --- a/sys-fs/xfsdump/Manifest
19 +++ b/sys-fs/xfsdump/Manifest
20 @@ -1 +1,2 @@
21 DIST xfsdump-3.1.10.tar.xz 609424 BLAKE2B 742d392c4ca4532e64ab8fd89a27b0d7c669e3f977fb9362f3f41e1db09c250951aff3906a5f598892cf58b00a7aab636864af9461afb724feec2708f52cdbd9 SHA512 8a1b671b22fffb5d2eac45d5fd7a2948c137b3ca21fde06779cff13fc6eaa27286876f56715f2eeb82ce107278d763028474260a54a8fec722e5a5d7c5875c9a
22 +DIST xfsdump-3.1.11.tar.xz 609484 BLAKE2B 22efba866ce2eb1684b97b15184b967dc75546595f4450955a93ba500d4982bb4d0385bf5a2d4f66c985974d96c8d7b668b5f6684258f555fedd92139ff692ec SHA512 9065e373f447e0ba5654b67d0db5a022515769b09db5398c5ee68d80bf6619ff459da0986cf9af5f17277608c26c407cba260cafa4f4ece6b5ece5fab1c455c7
23
24 diff --git a/sys-fs/xfsdump/xfsdump-3.1.11.ebuild b/sys-fs/xfsdump/xfsdump-3.1.11.ebuild
25 new file mode 100644
26 index 000000000000..c12ca856d9c4
27 --- /dev/null
28 +++ b/sys-fs/xfsdump/xfsdump-3.1.11.ebuild
29 @@ -0,0 +1,77 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit toolchain-funcs
36 +
37 +DESCRIPTION="XFS dump/restore utilities"
38 +HOMEPAGE="https://xfs.wiki.kernel.org/ https://git.kernel.org/pub/scm/fs/xfs/xfsdump-dev.git/"
39 +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
40 +
41 +LICENSE="LGPL-2.1"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86"
44 +IUSE="ncurses nls"
45 +
46 +RDEPEND="
47 + >=sys-apps/attr-2.4.19
48 + sys-apps/util-linux
49 + sys-fs/e2fsprogs
50 + >=sys-fs/xfsprogs-3.2.0
51 + ncurses? ( sys-libs/ncurses:= )
52 +"
53 +DEPEND="${RDEPEND}"
54 +BDEPEND="
55 + ncurses? ( virtual/pkgconfig )
56 + nls? ( sys-devel/gettext )
57 +"
58 +
59 +PATCHES=(
60 + # bug #335115
61 + "${FILESDIR}"/${PN}-3.1.9-prompt-overflow.patch
62 + # bug #311881
63 + "${FILESDIR}"/${PN}-3.1.9-no-symlink.patch
64 + # bug #561664
65 + "${FILESDIR}"/${PN}-3.1.6-linguas.patch
66 +
67 + "${FILESDIR}"/${PN}-3.1.9-fix-docs.patch
68 + "${FILESDIR}"/${PN}-3.1.9-skip-inventory-debian-subfolder.patch
69 +)
70 +
71 +src_prepare() {
72 + sed -i \
73 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
74 + include/builddefs.in \
75 + || die
76 +
77 + # bug #605852
78 + sed -i \
79 + -e "s:enable_curses=[a-z]*:enable_curses=$(usex ncurses):" \
80 + -e "s:libcurses=\"[^\"]*\":libcurses='$(use ncurses && $(tc-getPKG_CONFIG) --libs ncurses)':" \
81 + configure || die
82 +
83 + default
84 +}
85 +
86 +src_configure() {
87 + # bug #184564
88 + unset PLATFORM
89 +
90 + export OPTIMIZER="${CFLAGS}"
91 + export DEBUG=-DNDEBUG
92 +
93 + local myeconfargs=(
94 + $(use_enable nls gettext)
95 + --libdir="${EPREFIX}/$(get_libdir)"
96 + --libexecdir="${EPREFIX}/usr/$(get_libdir)"
97 + --sbindir="${EPREFIX}/sbin"
98 + )
99 +
100 + econf "${myeconfargs[@]}"
101 +}
102 +
103 +src_compile() {
104 + # Enable verbose build
105 + emake V=1
106 +}