1 |
|
# Copyright 1999-2019 Gentoo Foundation
|
|
1 |
# Copyright 1999-2022 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=7
|
5 |
5 |
|
6 |
|
inherit multilib flag-o-matic toolchain-funcs
|
|
6 |
inherit toolchain-funcs
|
7 |
7 |
|
8 |
8 |
DESCRIPTION="xfs dump/restore utilities"
|
9 |
9 |
HOMEPAGE="https://xfs.wiki.kernel.org/"
|
10 |
|
SRC_URI="https://git.kernel.org/pub/scm/fs/xfs/xfsdump-dev.git/snapshot/xfsdump-dev-1b1ecdaa215bbd44b21947ad4f12a2f4d3e0c975.tar.gz
|
11 |
|
-> xfsdump-dev-2019.5.20.tar.gz"
|
|
10 |
SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
|
12 |
11 |
|
13 |
12 |
LICENSE="LGPL-2.1"
|
14 |
13 |
SLOT="0"
|
15 |
|
KEYWORDS="amd64 x86"
|
|
14 |
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 -sparc x86"
|
16 |
15 |
IUSE="ncurses nls"
|
17 |
16 |
|
18 |
|
RDEPEND="
|
19 |
|
>=sys-apps/attr-2.4.19
|
20 |
|
sys-apps/dmapi
|
|
17 |
RDEPEND=">=sys-apps/attr-2.4.19
|
21 |
18 |
sys-apps/util-linux
|
22 |
19 |
sys-fs/e2fsprogs
|
23 |
|
>=sys-fs/xfsprogs-5.3.0
|
24 |
|
ncurses? ( sys-libs/ncurses:0= )
|
25 |
|
"
|
|
20 |
>=sys-fs/xfsprogs-3.2.0
|
|
21 |
ncurses? ( sys-libs/ncurses:= )"
|
26 |
22 |
DEPEND="${RDEPEND}
|
27 |
23 |
nls? (
|
28 |
24 |
sys-devel/gettext
|
29 |
|
elibc_uclibc? ( dev-libs/libintl )
|
30 |
25 |
)"
|
31 |
|
|
32 |
|
S="${WORKDIR}/xfsdump-dev-1b1ecdaa215bbd44b21947ad4f12a2f4d3e0c975"
|
|
26 |
BDEPEND="ncurses? ( virtual/pkgconfig )"
|
33 |
27 |
|
34 |
28 |
PATCHES=(
|
35 |
|
"${FILESDIR}"/${PN}-2019.5.20-prompt-overflow.patch #335115
|
36 |
|
"${FILESDIR}"/${PN}-2019.5.20-no-symlink.patch #311881
|
37 |
|
"${FILESDIR}"/${PN}-3.1.6-linguas.patch #561664
|
38 |
|
"${FILESDIR}"/${PN}-2019.5.20-compat-with-xfsprogs-5.3.0-and-up.patch # 693296
|
|
29 |
# bug #335115
|
|
30 |
"${FILESDIR}"/${PN}-3.1.9-prompt-overflow.patch
|
|
31 |
# bug #311881
|
|
32 |
"${FILESDIR}"/${PN}-3.1.9-no-symlink.patch
|
|
33 |
# bug #561664
|
|
34 |
"${FILESDIR}"/${PN}-3.1.6-linguas.patch
|
|
35 |
|
|
36 |
"${FILESDIR}"/${PN}-3.1.9-fix-docs.patch
|
|
37 |
"${FILESDIR}"/${PN}-3.1.9-skip-inventory-debian-subfolder.patch
|
39 |
38 |
)
|
40 |
39 |
|
41 |
40 |
src_prepare() {
|
42 |
|
make configure
|
43 |
|
|
44 |
41 |
sed -i \
|
45 |
42 |
-e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
|
46 |
43 |
include/builddefs.in \
|
47 |
44 |
|| die
|
48 |
45 |
|
|
46 |
# bug #605852
|
49 |
47 |
sed -i \
|
50 |
48 |
-e "s:enable_curses=[a-z]*:enable_curses=$(usex ncurses):" \
|
51 |
49 |
-e "s:libcurses=\"[^\"]*\":libcurses='$(use ncurses && $(tc-getPKG_CONFIG) --libs ncurses)':" \
|
52 |
|
configure || die #605852
|
|
50 |
configure || die
|
53 |
51 |
|
54 |
52 |
default
|
55 |
53 |
}
|
56 |
54 |
|
57 |
55 |
src_configure() {
|
58 |
|
unset PLATFORM #184564
|
59 |
|
export OPTIMIZER=${CFLAGS}
|
|
56 |
# bug #184564
|
|
57 |
unset PLATFORM
|
|
58 |
|
|
59 |
export OPTIMIZER="${CFLAGS}"
|
60 |
60 |
export DEBUG=-DNDEBUG
|
61 |
61 |
|
62 |
62 |
local myeconfargs=(
|
... | ... | |
65 |
65 |
--libexecdir="${EPREFIX}/usr/$(get_libdir)"
|
66 |
66 |
--sbindir="${EPREFIX}/sbin"
|
67 |
67 |
)
|
|
68 |
|
68 |
69 |
econf "${myeconfargs[@]}"
|
69 |
70 |
}
|
70 |
71 |
|
71 |
72 |
src_compile() {
|
72 |
|
# enable verbose build
|
|
73 |
# Enable verbose build
|
73 |
74 |
emake V=1
|
74 |
75 |
}
|