1 |
commit: e4ffa7d21697f5a2c0396f0354761bdfa7fe6d38 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 19 19:15:52 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 19 19:16:14 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ffa7d2 |
7 |
|
8 |
dev-libs/libmissing: allow reinstalling itself |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
.../{libmissing-1.0.0.ebuild => libmissing-1.0.0-r1.ebuild} | 13 ++++++++++--- |
14 |
1 file changed, 10 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/dev-libs/libmissing/libmissing-1.0.0.ebuild b/dev-libs/libmissing/libmissing-1.0.0-r1.ebuild |
17 |
similarity index 88% |
18 |
rename from dev-libs/libmissing/libmissing-1.0.0.ebuild |
19 |
rename to dev-libs/libmissing/libmissing-1.0.0-r1.ebuild |
20 |
index 270db24a778..c1371f6d4fa 100644 |
21 |
--- a/dev-libs/libmissing/libmissing-1.0.0.ebuild |
22 |
+++ b/dev-libs/libmissing/libmissing-1.0.0-r1.ebuild |
23 |
@@ -83,11 +83,12 @@ src_prepare() { |
24 |
# get platform specific set of missing functions |
25 |
einfo "Including sources for missing functions on ${platform}:" |
26 |
einfo "${modules[*]}" |
27 |
- "${S}"/gnulib-tool \ |
28 |
+ "${S}"/gnulib-tool -S \ |
29 |
--import \ |
30 |
--lib=libmissing \ |
31 |
--libtool \ |
32 |
--no-vc-files \ |
33 |
+ --no-cache-modules \ |
34 |
"${modules[@]}" |
35 |
|
36 |
sed -i -e '/^noinst_LTLIBRARIES /s/noinst_/lib_/' lib/Makefile.am || die |
37 |
@@ -95,8 +96,7 @@ src_prepare() { |
38 |
cat >> lib/Makefile.am << 'EOS' |
39 |
install-data-local: $(BUILT_SOURCES) |
40 |
@for hdr in $(BUILT_SOURCES); do \ |
41 |
- $(mkinstalldirs) $(DESTDIR)$(includedir)/$${hdr%/*}; \ |
42 |
- $(INSTALL_HEADER) "$$hdr" $(DESTDIR)$(includedir)/$${hdr}; \ |
43 |
+ $(INSTALL_HEADER) -D "$$hdr" $(DESTDIR)$(includedir)/missing/$${hdr}; \ |
44 |
done; |
45 |
EOS |
46 |
|
47 |
@@ -105,6 +105,13 @@ EOS |
48 |
|
49 |
src_configure() { |
50 |
cd "${PN}" || die |
51 |
+ |
52 |
+ # ensure we don't pick up installed libmissing |
53 |
+ export CPPFLAGS="${CPPFLAGS/-I${EPREFIX}\/usr\/include\/missing/}" |
54 |
+ export LIBS="${LIBS/-lmissing/}" |
55 |
+ einfo "CPPFLAGS: ${CPPFLAGS}" |
56 |
+ einfo "LIBS: ${LIBS}" |
57 |
+ |
58 |
default |
59 |
} |