1 |
commit: 9686d9bc86cbc02fccce616245d2edfdac17be24 |
2 |
Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 27 21:31:57 2020 +0000 |
4 |
Commit: Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 27 21:31:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9686d9bc |
7 |
|
8 |
dev-libs/tntnet: cleanup old, use=static-lib and installs '.a' files |
9 |
|
10 |
better handling for .a and .la files by use flag handling |
11 |
|
12 |
Closes: https://bugs.gentoo.org/737184 |
13 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
14 |
Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org> |
15 |
|
16 |
dev-libs/tntnet/tntnet-2.2.1-r1.ebuild | 92 ---------------------- |
17 |
...tnet-2.2.1-r2.ebuild => tntnet-2.2.1-r3.ebuild} | 7 +- |
18 |
2 files changed, 6 insertions(+), 93 deletions(-) |
19 |
|
20 |
diff --git a/dev-libs/tntnet/tntnet-2.2.1-r1.ebuild b/dev-libs/tntnet/tntnet-2.2.1-r1.ebuild |
21 |
deleted file mode 100644 |
22 |
index 617f01ca9a9..00000000000 |
23 |
--- a/dev-libs/tntnet/tntnet-2.2.1-r1.ebuild |
24 |
+++ /dev/null |
25 |
@@ -1,92 +0,0 @@ |
26 |
-# Copyright 1999-2020 Gentoo Authors |
27 |
-# Distributed under the terms of the GNU General Public License v2 |
28 |
- |
29 |
-EAPI=5 |
30 |
- |
31 |
-inherit autotools eutils |
32 |
- |
33 |
-DESCRIPTION="Modular, multithreaded web application server extensible with C++" |
34 |
-HOMEPAGE="http://www.tntnet.org/" |
35 |
-SRC_URI="http://www.tntnet.org/download/${P}.tar.gz" |
36 |
- |
37 |
-LICENSE="LGPL-2.1" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="~amd64 ~sparc ~x86" |
40 |
-IUSE="doc gnutls libressl server ssl examples" |
41 |
- |
42 |
-RDEPEND=">=dev-libs/cxxtools-2.2.1 |
43 |
- sys-libs/zlib[minizip] |
44 |
- ssl? ( |
45 |
- gnutls? ( |
46 |
- >=net-libs/gnutls-1.2.0 |
47 |
- dev-libs/libgcrypt:0 |
48 |
- ) |
49 |
- !gnutls? ( |
50 |
- !libressl? ( dev-libs/openssl:0= ) |
51 |
- libressl? ( dev-libs/libressl:0= ) |
52 |
- ) |
53 |
- )" |
54 |
-DEPEND="${RDEPEND} |
55 |
- virtual/pkgconfig |
56 |
- app-arch/zip" |
57 |
- |
58 |
-src_prepare() { |
59 |
- # Both fixed in the next release |
60 |
- epatch "${FILESDIR}"/${PN}-2.0-zlib-minizip.patch |
61 |
- rm framework/common/{ioapi,unzip}.[ch] || die |
62 |
- |
63 |
- # bug 423697 |
64 |
- sed -e "s:unzip.h:minizip/unzip.h:" -i framework/defcomp/unzipcomp.cpp |
65 |
- |
66 |
- eautoreconf |
67 |
- |
68 |
- sed -i -e 's:@localstatedir@:/var:' etc/tntnet/tntnet.xml.in || die |
69 |
-} |
70 |
- |
71 |
-src_configure() { |
72 |
- local myconf="" |
73 |
- |
74 |
- # Prefer gnutls above SSL |
75 |
- if use gnutls; then |
76 |
- einfo "Using gnutls for ssl support." |
77 |
- myconf="${myconf} --with-ssl=gnutls" |
78 |
- elif use ssl; then |
79 |
- einfo "Using openssl for ssl support." |
80 |
- myconf="${myconf} --with-ssl=openssl" |
81 |
- else |
82 |
- myconf="${myconf} --with-ssl=no" |
83 |
- fi |
84 |
- |
85 |
- # default enabled, will not compile without sdk |
86 |
- myconf="${myconf} --with-sdk" |
87 |
- |
88 |
- econf \ |
89 |
- $(use_with server) \ |
90 |
- ${myconf} |
91 |
-} |
92 |
- |
93 |
-src_install() { |
94 |
- emake DESTDIR="${D}" install |
95 |
- |
96 |
- dodoc AUTHORS ChangeLog README TODO |
97 |
- if use doc; then |
98 |
- dodoc doc/*.pdf |
99 |
- fi |
100 |
- |
101 |
- if use examples; then |
102 |
- cd "${S}/sdk/demos" |
103 |
- emake clean |
104 |
- rm -rf .deps */.deps .libs */.libs |
105 |
- cd "${S}" |
106 |
- |
107 |
- insinto /usr/share/doc/${PF}/examples |
108 |
- doins -r sdk/demos/* |
109 |
- fi |
110 |
- |
111 |
- if use server; then |
112 |
- rm -f "${D}/etc/init.d/tntnet" |
113 |
- newinitd "${FILESDIR}/tntnet.initd" tntnet |
114 |
- fi |
115 |
-} |
116 |
- |
117 |
-# @stable ~26may2020 |
118 |
\ No newline at end of file |
119 |
|
120 |
diff --git a/dev-libs/tntnet/tntnet-2.2.1-r2.ebuild b/dev-libs/tntnet/tntnet-2.2.1-r3.ebuild |
121 |
similarity index 91% |
122 |
rename from dev-libs/tntnet/tntnet-2.2.1-r2.ebuild |
123 |
rename to dev-libs/tntnet/tntnet-2.2.1-r3.ebuild |
124 |
index 2a1e7bb6230..8f1ea542f98 100644 |
125 |
--- a/dev-libs/tntnet/tntnet-2.2.1-r2.ebuild |
126 |
+++ b/dev-libs/tntnet/tntnet-2.2.1-r3.ebuild |
127 |
@@ -12,7 +12,7 @@ SRC_URI="http://www.tntnet.org/download/${P}.tar.gz" |
128 |
LICENSE="LGPL-2.1" |
129 |
SLOT="0" |
130 |
KEYWORDS="~amd64 ~sparc ~x86" |
131 |
-IUSE="gnutls libressl server ssl examples" |
132 |
+IUSE="gnutls libressl server ssl examples static-libs" |
133 |
|
134 |
RDEPEND=">=dev-libs/cxxtools-2.2.1 |
135 |
sys-libs/zlib[minizip] |
136 |
@@ -91,4 +91,9 @@ src_install() { |
137 |
rm -f "${D}/etc/init.d/tntnet" |
138 |
newinitd "${FILESDIR}/tntnet.initd" tntnet |
139 |
fi |
140 |
+ |
141 |
+ # bug 737184 |
142 |
+ if ! use static-libs; then |
143 |
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
144 |
+ fi |
145 |
} |