1 |
commit: ff4926d32c2031a8b959d704fa7a7a0b8b02b843 |
2 |
Author: Rolf Eike Beer <eike <AT> sf-mail <DOT> de> |
3 |
AuthorDate: Sun Oct 22 18:54:16 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 29 23:19:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff4926d3 |
7 |
|
8 |
dev-libs/libowfat: use DESTDIR |
9 |
|
10 |
Support was added in version 0.31. |
11 |
|
12 |
While at it do some other improvements as suggested by Jonas Stein. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/598980 |
15 |
Closes: https://github.com/gentoo/gentoo/pull/6017 |
16 |
|
17 |
dev-libs/libowfat/libowfat-0.31-r1.ebuild | 45 +++++++++++++++++++++++++++++++ |
18 |
1 file changed, 45 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/libowfat/libowfat-0.31-r1.ebuild b/dev-libs/libowfat/libowfat-0.31-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..8f007a7cef7 |
23 |
--- /dev/null |
24 |
+++ b/dev-libs/libowfat/libowfat-0.31-r1.ebuild |
25 |
@@ -0,0 +1,45 @@ |
26 |
+# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=5 |
30 |
+inherit flag-o-matic toolchain-funcs eutils |
31 |
+ |
32 |
+DESCRIPTION="reimplement libdjb - excellent libraries from Dan Bernstein" |
33 |
+SRC_URI="https://www.fefe.de/${PN}/${P}.tar.xz" |
34 |
+HOMEPAGE="https://www.fefe.de/libowfat/" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~hppa ~sparc ~x86" |
39 |
+IUSE="diet" |
40 |
+ |
41 |
+RDEPEND="diet? ( >=dev-libs/dietlibc-0.33_pre20090721 )" |
42 |
+DEPEND="${RDEPEND} |
43 |
+ >=sys-apps/sed-4" |
44 |
+ |
45 |
+pkg_setup() { |
46 |
+ # Required for mult/umult64.c to be usable |
47 |
+ append-flags -fomit-frame-pointer |
48 |
+} |
49 |
+ |
50 |
+src_compile() { |
51 |
+ emake -j1 \ |
52 |
+ CC=$(tc-getCC) \ |
53 |
+ CFLAGS="-I. ${CFLAGS}" \ |
54 |
+ DIET="/usr/bin/diet -Os" \ |
55 |
+ prefix=/usr \ |
56 |
+ INCLUDEDIR=/usr/include/libowfat \ |
57 |
+ $( use diet || echo 'DIET=' ) |
58 |
+} |
59 |
+ |
60 |
+src_install () { |
61 |
+ emake -j1 \ |
62 |
+ DESTDIR="${D}" \ |
63 |
+ LIBDIR="/usr/lib" \ |
64 |
+ MAN3DIR="/usr/share/man/man3" \ |
65 |
+ INCLUDEDIR="/usr/include/libowfat" \ |
66 |
+ install |
67 |
+ |
68 |
+ cd "${D}"/usr/share/man |
69 |
+ mv man3/buffer.3 man3/owfat-buffer.3 |
70 |
+} |