1 |
commit: e8640288c58316fd8062caf4ce3ec546dc5da690 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 1 18:46:29 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 1 18:46:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8640288 |
7 |
|
8 |
dev-libs/libowfat: fix header location |
9 |
|
10 |
...and improve Gentoo prefix support. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/672342 |
13 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
14 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
15 |
|
16 |
.../{libowfat-0.32.ebuild => libowfat-0.32-r1.ebuild} | 17 ++++++++--------- |
17 |
1 file changed, 8 insertions(+), 9 deletions(-) |
18 |
|
19 |
diff --git a/dev-libs/libowfat/libowfat-0.32.ebuild b/dev-libs/libowfat/libowfat-0.32-r1.ebuild |
20 |
similarity index 68% |
21 |
rename from dev-libs/libowfat/libowfat-0.32.ebuild |
22 |
rename to dev-libs/libowfat/libowfat-0.32-r1.ebuild |
23 |
index daee3d50445..116551cefe1 100644 |
24 |
--- a/dev-libs/libowfat/libowfat-0.32.ebuild |
25 |
+++ b/dev-libs/libowfat/libowfat-0.32-r1.ebuild |
26 |
@@ -27,20 +27,19 @@ src_compile() { |
27 |
emake \ |
28 |
CC=$(tc-getCC) \ |
29 |
CFLAGS="-I. ${CFLAGS}" \ |
30 |
- DIET="/usr/bin/diet -Os" \ |
31 |
- prefix=/usr \ |
32 |
- INCLUDEDIR=/usr/include/libowfat \ |
33 |
+ DIET="${EPREFIX%/}/usr/bin/diet -Os" \ |
34 |
+ prefix="${EPREFIX%/}/usr" \ |
35 |
+ INCLUDEDIR="${EPREFIX%/}/usr/include" \ |
36 |
$( use diet || echo 'DIET=' ) |
37 |
} |
38 |
|
39 |
src_install() { |
40 |
emake \ |
41 |
- DESTDIR="${D}" \ |
42 |
- LIBDIR="/usr/$(get_libdir)" \ |
43 |
- MAN3DIR="/usr/share/man/man3" \ |
44 |
- INCLUDEDIR="/usr/include/libowfat" \ |
45 |
+ DESTDIR="${D%/}" \ |
46 |
+ LIBDIR="${EPREFIX%/}/usr/$(get_libdir)" \ |
47 |
+ MAN3DIR="${EPREFIX%/}/usr/share/man/man3" \ |
48 |
+ INCLUDEDIR="${EPREFIX%/}/usr/include" \ |
49 |
install |
50 |
|
51 |
- cd "${D}"/usr/share/man |
52 |
- mv man3/buffer.3 man3/owfat-buffer.3 |
53 |
+ mv "${ED%/}"/usr/share/man/man3/{buffer.3,owfat-buffer.3} || die |
54 |
} |