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: Tue, 07 Sep 2021 00:51:00
Message-Id: 1630975658.69bd2ce367456bdf7529578030ffbf7b454a0e1f.sam@gentoo
1 commit: 69bd2ce367456bdf7529578030ffbf7b454a0e1f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 00:47:38 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 00:47:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69bd2ce3
7
8 sys-fs/xfsdump: drop obsolete sys-apps/dmapi dependency
9
10 Bug: https://bugs.gentoo.org/747181
11 Bug: https://bugs.gentoo.org/804306
12 Bug: https://bugs.gentoo.org/811891
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 sys-fs/xfsdump/xfsdump-3.1.9-r1.ebuild | 71 ++++++++++++++++++++++++++++++++++
16 1 file changed, 71 insertions(+)
17
18 diff --git a/sys-fs/xfsdump/xfsdump-3.1.9-r1.ebuild b/sys-fs/xfsdump/xfsdump-3.1.9-r1.ebuild
19 new file mode 100644
20 index 00000000000..aafb02db275
21 --- /dev/null
22 +++ b/sys-fs/xfsdump/xfsdump-3.1.9-r1.ebuild
23 @@ -0,0 +1,71 @@
24 +# Copyright 1999-2021 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit toolchain-funcs
30 +
31 +DESCRIPTION="xfs dump/restore utilities"
32 +HOMEPAGE="https://xfs.wiki.kernel.org/"
33 +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
34 +
35 +LICENSE="LGPL-2.1"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86"
38 +IUSE="ncurses nls"
39 +
40 +RDEPEND="
41 + >=sys-apps/attr-2.4.19
42 + sys-apps/util-linux
43 + sys-fs/e2fsprogs
44 + >=sys-fs/xfsprogs-3.2.0
45 + ncurses? ( sys-libs/ncurses:0= )
46 +"
47 +DEPEND="${RDEPEND}
48 + nls? (
49 + sys-devel/gettext
50 + elibc_uclibc? ( dev-libs/libintl )
51 + )
52 +"
53 +BDEPEND="ncurses? ( virtual/pkgconfig )"
54 +
55 +PATCHES=(
56 + "${FILESDIR}"/${PN}-3.1.9-prompt-overflow.patch #335115
57 + "${FILESDIR}"/${PN}-3.1.9-no-symlink.patch #311881
58 + "${FILESDIR}"/${PN}-3.1.6-linguas.patch #561664
59 + "${FILESDIR}"/${PN}-3.1.9-fix-docs.patch
60 + "${FILESDIR}"/${PN}-3.1.9-skip-inventory-debian-subfolder.patch
61 +)
62 +
63 +src_prepare() {
64 + sed -i \
65 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
66 + include/builddefs.in \
67 + || die
68 +
69 + sed -i \
70 + -e "s:enable_curses=[a-z]*:enable_curses=$(usex ncurses):" \
71 + -e "s:libcurses=\"[^\"]*\":libcurses='$(use ncurses && $(tc-getPKG_CONFIG) --libs ncurses)':" \
72 + configure || die #605852
73 +
74 + default
75 +}
76 +
77 +src_configure() {
78 + unset PLATFORM #184564
79 + export OPTIMIZER=${CFLAGS}
80 + export DEBUG=-DNDEBUG
81 +
82 + local myeconfargs=(
83 + $(use_enable nls gettext)
84 + --libdir="${EPREFIX}/$(get_libdir)"
85 + --libexecdir="${EPREFIX}/usr/$(get_libdir)"
86 + --sbindir="${EPREFIX}/sbin"
87 + )
88 + econf "${myeconfargs[@]}"
89 +}
90 +
91 +src_compile() {
92 + # enable verbose build
93 + emake V=1
94 +}