1 |
commit: 50509dd21d74690f368892b196c1af6c6187f123 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 13 23:19:18 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 14 00:04:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50509dd2 |
7 |
|
8 |
dev-libs/9libs: Add USE=X,static-libs |
9 |
|
10 |
Package-Manager: Portage-2.3.55, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
dev-libs/9libs/9libs-1.0-r4.ebuild | 59 ++++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/9libs/9libs-1.0-r4.ebuild b/dev-libs/9libs/9libs-1.0-r4.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..84c7b9323a1 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/9libs/9libs-1.0-r4.ebuild |
21 |
@@ -0,0 +1,59 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+inherit autotools toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="A package of Plan 9 compatibility libraries" |
29 |
+HOMEPAGE="https://www.netlib.org/research/9libs/9libs-1.0.README" |
30 |
+SRC_URI="https://www.netlib.org/research/9libs/${P}.tar.bz2" |
31 |
+ |
32 |
+LICENSE="PLAN9" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~x86" |
35 |
+IUSE="static-libs X" |
36 |
+ |
37 |
+DEPEND=" |
38 |
+ X? ( |
39 |
+ >=x11-libs/libX11-1.0.0[static-libs?] |
40 |
+ >=x11-libs/libXt-1.0.0[static-libs?] |
41 |
+ ) |
42 |
+" |
43 |
+RDEPEND=" |
44 |
+ ${DEPEND} |
45 |
+" |
46 |
+DOCS=( |
47 |
+ README |
48 |
+) |
49 |
+PATCHES=( |
50 |
+ "${FILESDIR}"/${PN}-va_list.patch # Bug 385387 |
51 |
+) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ eautoreconf |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ tc-export CC |
60 |
+ |
61 |
+ econf \ |
62 |
+ $(use_enable static-libs static) \ |
63 |
+ $(use_with X x) \ |
64 |
+ --enable-shared \ |
65 |
+ --includedir=/usr/include/9libs |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ default |
70 |
+ |
71 |
+ # rename some man pages to avoid collisions with dev-libs/libevent |
72 |
+ local f |
73 |
+ for f in add balloc bitblt cachechars event frame graphics rgbpix; do |
74 |
+ mv "${D}"/usr/share/man/man3/${f}.{3,3g} || die |
75 |
+ done |
76 |
+ |
77 |
+ if ! use static-libs; then |
78 |
+ find "${ED}" -name '*.la' -delete || die |
79 |
+ fi |
80 |
+} |