1 |
commit: 0ed152fff699a2d0d8b17b3ad533cd6d8fe5d4c8 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 6 13:23:32 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 6 13:26:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ed152ff |
7 |
|
8 |
net-fs/libnfs: live ebuild improvements. |
9 |
|
10 |
- EAPI-6 bump |
11 |
- Add "utils" USE flag |
12 |
- Bump sub-slot to 12 to reflect .so version change |
13 |
|
14 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
15 |
|
16 |
net-fs/libnfs/files/libnfs-3.0.0-utils.patch | 20 ++++++++++++++++++ |
17 |
net-fs/libnfs/libnfs-9999.ebuild | 31 +++++++++++++++++----------- |
18 |
net-fs/libnfs/metadata.xml | 3 +++ |
19 |
3 files changed, 42 insertions(+), 12 deletions(-) |
20 |
|
21 |
diff --git a/net-fs/libnfs/files/libnfs-3.0.0-utils.patch b/net-fs/libnfs/files/libnfs-3.0.0-utils.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..b26716158b5 |
24 |
--- /dev/null |
25 |
+++ b/net-fs/libnfs/files/libnfs-3.0.0-utils.patch |
26 |
@@ -0,0 +1,20 @@ |
27 |
+diff --git a/configure.ac b/configure.ac |
28 |
+index a1f51d0..f96879a 100755 |
29 |
+--- a/configure.ac |
30 |
++++ b/configure.ac |
31 |
+@@ -25,11 +25,13 @@ fi |
32 |
+ AC_SYS_LARGEFILE |
33 |
+ |
34 |
+ #option: utils |
35 |
++MAYBE_UTILS="utils" |
36 |
+ AC_ARG_ENABLE([utils], |
37 |
+ [AC_HELP_STRING([--enable-utils], |
38 |
+ [Build util programs])], |
39 |
+- [MAYBE_UTILS=""], |
40 |
+- [MAYBE_UTILS="utils"]) |
41 |
++ [if test $enableval = no ; then |
42 |
++ MAYBE_UTILS="" |
43 |
++ fi]) |
44 |
+ AC_SUBST(MAYBE_UTILS) |
45 |
+ |
46 |
+ #option: examples |
47 |
|
48 |
diff --git a/net-fs/libnfs/libnfs-9999.ebuild b/net-fs/libnfs/libnfs-9999.ebuild |
49 |
index 958c36a1dd2..96606a99d49 100644 |
50 |
--- a/net-fs/libnfs/libnfs-9999.ebuild |
51 |
+++ b/net-fs/libnfs/libnfs-9999.ebuild |
52 |
@@ -1,42 +1,48 @@ |
53 |
# Copyright 1999-2018 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
|
56 |
-EAPI="5" |
57 |
+EAPI=6 |
58 |
|
59 |
-AUTOTOOLS_AUTORECONF="1" |
60 |
- |
61 |
-inherit autotools autotools-utils eutils |
62 |
+inherit autotools |
63 |
if [[ ${PV} == "9999" ]] ; then |
64 |
- EGIT_REPO_URI="https://github.com/sahlberg/${PN}.git" |
65 |
inherit git-r3 |
66 |
+ EGIT_REPO_URI="https://github.com/sahlberg/${PN}.git" |
67 |
else |
68 |
SRC_URI="https://github.com/sahlberg/${PN}/archive/${P}.tar.gz" |
69 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~x86" |
70 |
+ S="${WORKDIR}/${PN}-${P}" |
71 |
fi |
72 |
|
73 |
DESCRIPTION="Client library for accessing NFS shares over a network" |
74 |
HOMEPAGE="https://github.com/sahlberg/libnfs" |
75 |
|
76 |
LICENSE="LGPL-2.1 GPL-3" |
77 |
-SLOT="0/11" # sub-slot matches SONAME major |
78 |
-IUSE="examples static-libs" |
79 |
+SLOT="0/12" # sub-slot matches SONAME major |
80 |
+IUSE="examples static-libs utils" |
81 |
|
82 |
RDEPEND="" |
83 |
DEPEND="${RDEPEND} |
84 |
virtual/pkgconfig" |
85 |
|
86 |
-S="${WORKDIR}/${PN}-${P}" |
87 |
+PATCHES=( |
88 |
+ "${FILESDIR}/${PN}-3.0.0-utils.patch" |
89 |
+) |
90 |
|
91 |
src_prepare() { |
92 |
default |
93 |
- |
94 |
- epatch_user |
95 |
- |
96 |
eautoreconf |
97 |
} |
98 |
|
99 |
+src_configure() { |
100 |
+ local myeconfargs=( |
101 |
+ $(use_enable static-libs static) |
102 |
+ $(use_enable utils) |
103 |
+ ) |
104 |
+ econf "${myeconfargs[@]}" |
105 |
+} |
106 |
+ |
107 |
src_install() { |
108 |
- autotools-utils_src_install |
109 |
+ default |
110 |
if use examples; then |
111 |
# --enable-examples configure switch just compiles them |
112 |
# better install sources instead |
113 |
@@ -45,4 +51,5 @@ src_install() { |
114 |
doexe examples/${program}.c |
115 |
done |
116 |
fi |
117 |
+ find "${ED}" -name "*.la" -delete || die |
118 |
} |
119 |
|
120 |
diff --git a/net-fs/libnfs/metadata.xml b/net-fs/libnfs/metadata.xml |
121 |
index 0a94e5f6ef1..bdbf712883c 100644 |
122 |
--- a/net-fs/libnfs/metadata.xml |
123 |
+++ b/net-fs/libnfs/metadata.xml |
124 |
@@ -5,6 +5,9 @@ |
125 |
<email>base-system@g.o</email> |
126 |
<name>Gentoo Base System</name> |
127 |
</maintainer> |
128 |
+ <use> |
129 |
+ <flag name="utils">Build/install nfs-{cat,ls,cp} utils</flag> |
130 |
+ </use> |
131 |
<upstream> |
132 |
<remote-id type="github">sahlberg/libnfs</remote-id> |
133 |
</upstream> |