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, 28 Nov 2016 16:32:43
Message-Id: 1480350746.956ccb6f1f4040f7011825b75c4c5070cc1dceef.polynomial-c@gentoo
1 commit: 956ccb6f1f4040f7011825b75c4c5070cc1dceef
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 16:31:21 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 28 16:32:26 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=956ccb6f
7
8 sys-fs/xfsprogs: Bump to version 4.8.0 (bug #601086).
9
10 Package-Manager: portage-2.3.2
11
12 sys-fs/xfsprogs/Manifest | 1 +
13 sys-fs/xfsprogs/xfsprogs-4.8.0.ebuild | 95 +++++++++++++++++++++++++++++++++++
14 2 files changed, 96 insertions(+)
15
16 diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest
17 index 5a40814..318a5f4 100644
18 --- a/sys-fs/xfsprogs/Manifest
19 +++ b/sys-fs/xfsprogs/Manifest
20 @@ -1,3 +1,4 @@
21 DIST xfsprogs-3.2.4.tar.gz 1482424 SHA256 dde65ead82d3cbfa9b4ded9796b6d22095d7d759a22d41ae6f1a4ec458bb0465 SHA512 fb1ea5beb933b86970cac198fa4e296457f0f5b30bd72fda54452644730277929dee28f11f35a154910e4a19857455ecffdd21b3df456023e0da95e2fd0aa0eb WHIRLPOOL dec87905b5a5af053e71e88f1670470c00b94a758dbb77773adbc601db61b4efaaba306f344a4334b11680973d5153fcc7f8b5d59c4698f21d654570e8355fe9
22 DIST xfsprogs-4.5.0.tar.gz 1524382 SHA256 e49beb314984efbd0d758abb5c6137db3bb60a88e59e1e94c00defb536cf89f8 SHA512 19c95551dc91ec46916f9a7e3d7976907664d32dd5fdc26af0ca62ca74c4b3c10f9e843aac8214ea9d1c0bf140c9f4e321d059808af01a623abedd5067011314 WHIRLPOOL 54d742635df024a63181da76c3220671610068363af85be2677521f20342595a5cebb2fd169945572351901ee2c9384f79f54a381ab3620dde22d863aa66d469
23 DIST xfsprogs-4.7.0.tar.gz 1534909 SHA256 88580bb3e6847c3edef436703a4fae403fc19b20739db4c31166ee4b256178d7 SHA512 5184f1dbc3989f3c1f1b103d5cbd70462db107cfe113424166581ebcfaad4041c9c78f5d038f4bd4728ff99a2f9705219582ba9bfd10745354a1cab0b7dfe613 WHIRLPOOL 8157b2e8df5946acacc22ed761e38b382ef464f4984971148069b2f215418f4e23ac142721394439c041c236cbd460e0b56ff071d1c10e343070147709f42af3
24 +DIST xfsprogs-4.8.0.tar.xz 1088376 SHA256 82ce9cb3a55f4e208e8fe3471ff0aff0602b8300f3e50bdf05cc7e11549686f9 SHA512 9c83763ae4925980969e66827edef41774e4dc09ae42637630167b5e0329675517ea7b50de751fcb9485fbcf8e470d24dd20b51475bcb56723dae6ee9fb140c7 WHIRLPOOL dc9f9b5c0b4e9b61f023fb972137126f22909c77908990e1beb391689fe6512a7810d9bd1ccfc0cfe4cd5379d99c123ddc9d0b6194e0a81e946e2304f964f180
25
26 diff --git a/sys-fs/xfsprogs/xfsprogs-4.8.0.ebuild b/sys-fs/xfsprogs/xfsprogs-4.8.0.ebuild
27 new file mode 100644
28 index 00000000..600fdc7
29 --- /dev/null
30 +++ b/sys-fs/xfsprogs/xfsprogs-4.8.0.ebuild
31 @@ -0,0 +1,95 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +inherit eutils toolchain-funcs multilib
39 +
40 +DESCRIPTION="xfs filesystem utilities"
41 +HOMEPAGE="http://oss.sgi.com/projects/xfs/"
42 +SRC_URI="ftp://ftp.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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
47 +IUSE="libedit nls readline static static-libs"
48 +REQUIRED_USE="static? ( static-libs )"
49 +
50 +LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)]
51 + readline? ( sys-libs/readline:0=[static-libs(+)] )
52 + !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )"
53 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
54 + !<sys-fs/xfsdump-3"
55 +DEPEND="${RDEPEND}
56 + static? (
57 + ${LIB_DEPEND}
58 + readline? ( sys-libs/ncurses:0=[static-libs] )
59 + )
60 + nls? ( sys-devel/gettext )"
61 +
62 +PATCHES=(
63 + "${FILESDIR}"/${PN}-4.7.0-sharedlibs.patch
64 + "${FILESDIR}"/${PN}-4.7.0-libxcmd-link.patch
65 + "${FILESDIR}"/${PN}-4.3.0-cross-compile.patch
66 +)
67 +
68 +pkg_setup() {
69 + if use readline && use libedit ; then
70 + ewarn "You have USE='readline libedit' but these are exclusive."
71 + ewarn "Defaulting to readline; please disable this USE flag if you want libedit."
72 + fi
73 +}
74 +
75 +src_prepare() {
76 + epatch "${PATCHES[@]}"
77 +
78 + # LLDFLAGS is used for programs, so apply -all-static when USE=static is enabled.
79 + # Clear out -static from all flags since we want to link against dynamic xfs libs.
80 + sed -i \
81 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
82 + -e "1iLLDFLAGS += $(usex static '-all-static' '')" \
83 + include/builddefs.in || die
84 + find -name Makefile -exec \
85 + sed -i -r -e '/^LLDFLAGS [+]?= -static(-libtool-libs)?$/d' {} +
86 +
87 + # TODO: Write a patch for configure.ac to use pkg-config for the uuid-part.
88 + if use static && use readline ; then
89 + sed -i \
90 + -e 's|-lreadline|& -lncurses|' \
91 + -e 's|-lblkid|& -luuid|' \
92 + configure || die
93 + fi
94 +}
95 +
96 +src_configure() {
97 + export DEBUG=-DNDEBUG
98 + export OPTIMIZER=${CFLAGS}
99 + unset PLATFORM # if set in user env, this breaks configure
100 +
101 + local myconf
102 + if use static || use static-libs ; then
103 + myconf+=" --enable-static"
104 + else
105 + myconf+=" --disable-static"
106 + fi
107 +
108 + econf \
109 + $(use_enable nls gettext) \
110 + $(use_enable readline) \
111 + $(usex readline --disable-editline $(use_enable libedit editline)) \
112 + ${myconf}
113 +
114 + MAKEOPTS+=" V=1"
115 +}
116 +
117 +src_install() {
118 + emake DIST_ROOT="${ED}" install
119 + # parallel install fails on this target for >=xfsprogs-3.2.0
120 + emake -j1 DIST_ROOT="${ED}" install-dev
121 +
122 + # handle is for xfsdump, the rest for xfsprogs
123 + gen_usr_ldscript -a handle xcmd xfs xlog
124 + # removing unnecessary .la files if not needed
125 + use static-libs || find "${ED}" -name '*.la' -delete
126 +}