Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/xfsprogs/
Date: Mon, 06 May 2019 07:48:43
Message-Id: 1557128828.3ce17ab7ff97bcffd97b78f4e925487009c50532.polynomial-c@gentoo
1 commit: 3ce17ab7ff97bcffd97b78f4e925487009c50532
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 6 07:47:08 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon May 6 07:47:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ce17ab7
7
8 sys-fs/xfsprogs: Bump to version 5.0.0
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-fs/xfsprogs/Manifest | 1 +
14 sys-fs/xfsprogs/xfsprogs-5.0.0.ebuild | 85 +++++++++++++++++++++++++++++++++++
15 2 files changed, 86 insertions(+)
16
17 diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest
18 index d26adf242d3..ca938014d2a 100644
19 --- a/sys-fs/xfsprogs/Manifest
20 +++ b/sys-fs/xfsprogs/Manifest
21 @@ -1,3 +1,4 @@
22 DIST xfsprogs-4.17.0.tar.xz 1205508 BLAKE2B 46168792c1e4c335b7ed9e7489afc20d7df4b4e554eb86043b2c19303879491cc4746b18d23fdff3e2f92ca3887ac27957ae57e85ba784476d8891ea6909d67e SHA512 996de920c76de596b6175e4ae4ba9de208c16fbcf9362bbb44d25ee1c12b249d0178fc5cc93dc5a434ab20e6d515d64a3f51b8e89905b5b033b28a3638f4d400
23 DIST xfsprogs-4.19.0.tar.xz 1212852 BLAKE2B 2d04390765c5e0dd7d51366f0310c9e680651d49bdd1ecd220b4eec50540a66c97bf6e54f976414351bc77381ffd463803836b27ca25b53960a278a34bc09775 SHA512 a96d0ce406534e70b0a531dfab296de420ec710cd0682dffaf5211602adf82dd59f84b9eb7793c54eabb782a9e0229acf7b247ab644d531ee9e5b51fe9dc0f58
24 DIST xfsprogs-4.20.0.tar.xz 1215968 BLAKE2B 40aefb8fb899ae96c256f5fdb1c6e841bb450c3fad0487a6097c7f17c40a96a340e073538932d746f04f078afb960f16a34f5d15f500ce804fc842b91a0787e9 SHA512 6adf93fbe20d6b3250c4690237bda041a6dd0cfdc2387f5c88704fc06e6f095bf047964d701ccd65efef7607c15fb8e97b6046f3d631ef327aa8f4c118a36e22
25 +DIST xfsprogs-5.0.0.tar.xz 1218476 BLAKE2B ef6eaab43531f696f739972c362e31c3304baaecb3485b45c16441a8bf7f1da7f47cd74a21660ba2c2bb45858a2b13b7af41c94671135f6a32a36eb745c024a0 SHA512 cebe3d2ea80676a99cc7f9cc014894398fbe3bdaf237829e9c7aa0404558c1ab16f2055acb5afd8234b2bc8475117bcef3c7500c553adb12bbaf3262bd077d18
26
27 diff --git a/sys-fs/xfsprogs/xfsprogs-5.0.0.ebuild b/sys-fs/xfsprogs/xfsprogs-5.0.0.ebuild
28 new file mode 100644
29 index 00000000000..d676076b7dc
30 --- /dev/null
31 +++ b/sys-fs/xfsprogs/xfsprogs-5.0.0.ebuild
32 @@ -0,0 +1,85 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit toolchain-funcs multilib systemd
39 +
40 +DESCRIPTION="xfs filesystem utilities"
41 +HOMEPAGE="https://xfs.wiki.kernel.org/"
42 +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
43 +
44 +LICENSE="LGPL-2.1"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
47 +IUSE="icu libedit nls readline static-libs"
48 +
49 +LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)]
50 + icu? ( dev-libs/icu:=[static-libs(+)] )
51 + readline? ( sys-libs/readline:0=[static-libs(+)] )
52 + !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )"
53 +RDEPEND="${LIB_DEPEND//\[static-libs(+)]}
54 + !<sys-fs/xfsdump-3"
55 +DEPEND="${RDEPEND}
56 + nls? ( sys-devel/gettext )"
57 +
58 +PATCHES=(
59 + "${FILESDIR}"/${PN}-4.9.0-underlinking.patch
60 + "${FILESDIR}"/${PN}-4.15.0-sharedlibs.patch
61 + "${FILESDIR}"/${PN}-4.15.0-docdir.patch
62 +)
63 +
64 +pkg_setup() {
65 + if use readline && use libedit ; then
66 + ewarn "You have USE='readline libedit' but these are exclusive."
67 + ewarn "Defaulting to readline; please disable this USE flag if you want libedit."
68 + fi
69 +}
70 +
71 +src_prepare() {
72 + default
73 +
74 + # Clear out -static from all flags since we want to link against dynamic xfs libs.
75 + sed -i \
76 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
77 + include/builddefs.in || die
78 + # Don't install compressed docs
79 + sed 's@\(CHANGES\)\.gz[[:space:]]@\1 @' -i doc/Makefile || die
80 + find -name Makefile -exec \
81 + sed -i -r -e '/^LLDFLAGS [+]?= -static(-libtool-libs)?$/d' {} +
82 +}
83 +
84 +src_configure() {
85 + export DEBUG=-DNDEBUG
86 + export OPTIMIZER=${CFLAGS}
87 + unset PLATFORM # if set in user env, this breaks configure
88 +
89 + local myconf=(
90 + --disable-lto #655638
91 + --enable-blkid
92 + --with-crond-dir="${EPREFIX}/etc/cron.d"
93 + --with-systemd-unit-dir="$(systemd_get_systemunitdir)"
94 + $(use_enable icu libicu)
95 + $(use_enable nls gettext)
96 + $(use_enable readline)
97 + $(usex readline --disable-editline $(use_enable libedit editline))
98 + $(use_enable static-libs static)
99 + )
100 +
101 + econf "${myconf[@]}"
102 +
103 + MAKEOPTS+=" V=1"
104 +}
105 +
106 +src_install() {
107 + emake DIST_ROOT="${ED}" install
108 + # parallel install fails on this target for >=xfsprogs-3.2.0
109 + emake -j1 DIST_ROOT="${ED}" install-dev
110 +
111 + # handle is for xfsdump, the rest for xfsprogs
112 + gen_usr_ldscript -a handle xcmd xfs xlog frog
113 + # removing unnecessary .la files if not needed
114 + if ! use static-libs ; then
115 + find "${ED}" -name '*.la' -delete || die
116 + fi
117 +}