1 |
commit: d7629bd69379a3e566f9dcbecbce7442cfc8d6ad |
2 |
Author: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 30 20:29:15 2015 +0000 |
4 |
Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 30 20:29:52 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7629bd6 |
7 |
|
8 |
net-libs/gsoap: add libressl support |
9 |
|
10 |
This also fixes missing runtime dependencies. |
11 |
|
12 |
net-libs/gsoap/gsoap-2.8.23-r1.ebuild | 78 +++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 78 insertions(+) |
14 |
|
15 |
diff --git a/net-libs/gsoap/gsoap-2.8.23-r1.ebuild b/net-libs/gsoap/gsoap-2.8.23-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..a565476 |
18 |
--- /dev/null |
19 |
+++ b/net-libs/gsoap/gsoap-2.8.23-r1.ebuild |
20 |
@@ -0,0 +1,78 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+inherit autotools eutils |
28 |
+ |
29 |
+MY_P="${PN}-2.8" |
30 |
+ |
31 |
+DESCRIPTION="A cross-platform open source C and C++ SDK for SOAP/XML Web services" |
32 |
+HOMEPAGE="http://gsoap2.sourceforge.net" |
33 |
+SRC_URI="mirror://sourceforge/gsoap2/gsoap_${PV}.zip" |
34 |
+ |
35 |
+LICENSE="GPL-2 gSOAP" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="doc debug examples ipv6 libressl gnutls +ssl" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ sys-libs/zlib |
42 |
+ gnutls? ( net-libs/gnutls ) |
43 |
+ ssl? ( |
44 |
+ !libressl? ( dev-libs/openssl:0= ) |
45 |
+ libressl? ( dev-libs/libressl ) |
46 |
+ ) |
47 |
+" |
48 |
+DEPEND="${RDEPEND} |
49 |
+ app-arch/unzip |
50 |
+ sys-devel/flex |
51 |
+ sys-devel/bison |
52 |
+" |
53 |
+ |
54 |
+S="${WORKDIR}/${MY_P}" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ # Fix Pre-ISO headers |
58 |
+ epatch "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch" |
59 |
+ |
60 |
+ eautoreconf |
61 |
+} |
62 |
+ |
63 |
+src_configure() { |
64 |
+ local myconf=() |
65 |
+ use ssl || myconf+=( --disable-ssl ) |
66 |
+ use gnutls && myconf+=( --enable-gnutls ) |
67 |
+ use ipv6 && myconf+=( --enable-ipv6 ) |
68 |
+ econf \ |
69 |
+ ${myconf[@]} \ |
70 |
+ $(use_enable debug) \ |
71 |
+ $(use_enable examples samples) |
72 |
+} |
73 |
+ |
74 |
+src_compile() { |
75 |
+ emake -j1 |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ emake DESTDIR="${D}" install |
80 |
+ |
81 |
+ # yes, we also install the license-file since |
82 |
+ # it contains info about how to apply the licenses |
83 |
+ dodoc *.txt |
84 |
+ |
85 |
+ dohtml changelog.md |
86 |
+ |
87 |
+ prune_libtool_files --all |
88 |
+ |
89 |
+ if use examples; then |
90 |
+ rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o |
91 |
+ insinto /usr/share/doc/${PF}/examples |
92 |
+ doins -r gsoap/samples/* |
93 |
+ fi |
94 |
+ |
95 |
+ if use doc; then |
96 |
+ dohtml -r gsoap/doc/* |
97 |
+ fi |
98 |
+} |