Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/gsoap/files/, net-libs/gsoap/
Date: Fri, 28 Apr 2017 07:45:31
Message-Id: 1493365520.ff57f004b947cea5023fd3f203e41e6312822fc4.polynomial-c@gentoo
1 commit: ff57f004b947cea5023fd3f203e41e6312822fc4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 28 07:43:30 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 28 07:45:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff57f004
7
8 net-libs/gsoap: Bump to version 2.8.45
9
10 Build shared libs (bug #583398).
11
12 Package-Manager: Portage-2.3.5, Repoman-2.3.2
13
14 net-libs/gsoap/Manifest | 1 +
15 .../gsoap/files/gsoap-2.7.40-shared_libs.patch | 146 +++++++++++++++++++++
16 net-libs/gsoap/gsoap-2.8.45.ebuild | 82 ++++++++++++
17 3 files changed, 229 insertions(+)
18
19 diff --git a/net-libs/gsoap/Manifest b/net-libs/gsoap/Manifest
20 index c5cda68fa20..4f811882a74 100644
21 --- a/net-libs/gsoap/Manifest
22 +++ b/net-libs/gsoap/Manifest
23 @@ -2,3 +2,4 @@ DIST gsoap_2.7.17.zip 10224444 SHA256 d3af1ce9464b28cacdf1dfbe09b689f8927cbcf394
24 DIST gsoap_2.8.23.zip 22482000 SHA256 e1c30743f1c2cf40b2760568127e14af1b2a00c3026b2e5f0750e8c33d94c061 SHA512 cc90aadfe09aa6406172c9ffa07696851ff594ca7c5b40819494badd8ce978d908d66de63a5831e7aec1bca18ee8b51ed02187057688a3b36eb0a21fe6e0f5a4 WHIRLPOOL e5cfc9c5758847d1fc94cbd38108b80c7548abc0316fe201b58604a3b22d30b9748c81d4aec13f53356593f3ddc2dcba14170a53d63795eab9229ec49d4bc585
25 DIST gsoap_2.8.39.zip 36767952 SHA256 7922bfea5f8d0889ea578026d368abd666983e36fed8745f807c39a072028760 SHA512 655be576d8c7bd461a59bcf934ce1abeb3c284e87662dffcf06f0a0d4aa8655ce7b1b646f4ec3fa866c6c617cd527e1fa486b9e72249b3ea0e7e3cbdc3f9bfe4 WHIRLPOOL 6da9507a0a3e1e1ea8510dfcb2f67154081d6afa9bc8a9f677973300a9c2eefb8c4e2f2d3c249bfdcb6bb9f2d488a50f23b3fe03790fc0ac8b189364f7de5683
26 DIST gsoap_2.8.40.zip 36317175 SHA256 54ef56d9c55a6a7a00ae57f8cb0b3266af1b26e623070be2ef20833626157f77 SHA512 fc26899e780a7d797544f21aa7beaabc6c1507b7097c4a229a641e4be763733a40e96ce0d5181024eae19653de9513a5b35d51c8b12e85078423e30d0b898a6f WHIRLPOOL 6f795590a5b1e36d796200e3669b3a2aa45c016aa3acaae6291c09543422530a12e977a159a2f892b328cd7813633f41966432e75fd36268bfe4c6d9d1bb6fbf
27 +DIST gsoap_2.8.45.zip 33590780 SHA256 81946d1ecd99ea414383d5f090e6b292908ff3ac0211cb097a1d1d54e9808bce SHA512 db45f2f8403143387f2860339a77695079fd3224700791846eb436d510a1008fe217c85b61b980340a4982d20ed0fef87dfd8d3de07be9953b627b539ca4af2a WHIRLPOOL 73b2327a05fb065c398573cb70eafc37066c0992787f51eb39e9b0e61193aeaa6f59e608d179c805d3488875dfe538116c512660bf24554811be8ecb8442229b
28
29 diff --git a/net-libs/gsoap/files/gsoap-2.7.40-shared_libs.patch b/net-libs/gsoap/files/gsoap-2.7.40-shared_libs.patch
30 new file mode 100644
31 index 00000000000..829e0e45a58
32 --- /dev/null
33 +++ b/net-libs/gsoap/files/gsoap-2.7.40-shared_libs.patch
34 @@ -0,0 +1,146 @@
35 +diff -Naur a/configure.ac b/configure.ac
36 +--- a/configure.ac 2016-12-11 04:12:26.000000000 +0000
37 ++++ b/configure.ac 2017-01-10 13:41:24.743162628 +0000
38 +@@ -17,7 +17,7 @@
39 + AC_PROG_YACC
40 + AC_PROG_CPP
41 + AC_PROG_RANLIB
42 +-#AM_PROG_LIBTOOL
43 ++AM_PROG_LIBTOOL
44 + AC_PROG_LN_S
45 + AC_PROG_AWK
46 + AC_PROG_INSTALL
47 +@@ -242,16 +242,18 @@
48 + WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} -lgnutls -lgcrypt -lgpg-error -lz"
49 + SAMPLE_INCLUDES=
50 + SAMPLE_SSL_LIBS="-lgnutls -lgcrypt -lgpg-error -lz"
51 +- WSDL2H_SOAP_CPP_LIB="libgsoapssl++.a"
52 ++ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
53 ++ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
54 + else
55 + AC_MSG_RESULT(no)
56 + WSDL2H_EXTRA_FLAGS="-DWITH_OPENSSL -DWITH_GZIP"
57 + # an ugly hack to get httpda and smdevp plugins to conditionally
58 + # compile with wsdl2h when OPENSSL is available
59 +- WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} ../plugin/httpda.c ../plugin/smdevp.c ../plugin/threads.c -lssl -lcrypto -lz"
60 ++ WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} ../plugin/httpda.c ../plugin/smdevp.c ../plugin/threads.c -lcrypto"
61 + SAMPLE_INCLUDES=
62 + SAMPLE_SSL_LIBS="-lssl -lcrypto -lz"
63 +- WSDL2H_SOAP_CPP_LIB="libgsoapssl++.a"
64 ++ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
65 ++ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
66 + fi
67 + if test -n "$ZLIB"; then
68 + WSDL2H_EXTRA_FLAGS="-I${ZLIB}/include ${WSDL2H_EXTRA_FLAGS}"
69 +@@ -270,13 +272,15 @@
70 + WSDL2H_EXTRA_FLAGS=
71 + SAMPLE_SSL_LIBS=
72 + SAMPLE_INCLUDES=
73 +- WSDL2H_SOAP_CPP_LIB="libgsoap++.a"
74 ++ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
75 ++ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
76 + fi
77 + AC_SUBST(WSDL2H_EXTRA_FLAGS)
78 + AC_SUBST(WSDL2H_EXTRA_LIBS)
79 + AC_SUBST(SAMPLE_INCLUDES)
80 + AC_SUBST(SAMPLE_SSL_LIBS)
81 +-AC_SUBST(WSDL2H_SOAP_CPP_LIB)
82 ++AC_SUBST(WSDL2H_SOAP_CPP_SHARED_LIB)
83 ++AC_SUBST(WSDL2H_SOAP_CPP_STATIC_LIB)
84 +
85 + # enable the compile of the samples
86 + AC_ARG_ENABLE(samples,
87 +diff -Naur a/gsoap/Makefile.am b/gsoap/Makefile.am
88 +--- a/gsoap/Makefile.am 2016-12-11 04:12:27.000000000 +0000
89 ++++ b/gsoap/Makefile.am 2017-01-10 13:41:36.487140423 +0000
90 +@@ -49,6 +49,29 @@
91 + libgsoapssl___a_SOURCES = stdsoap2_ssl_cpp.cpp dom_cpp.cpp
92 + libgsoapssl___a_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
93 +
94 ++lib_LTLIBRARIES = libgsoap.la libgsoap++.la libgsoapck.la libgsoapck++.la libgsoapssl.la libgsoapssl++.la
95 ++SOVERSION = 0
96 ++libgsoap_la_SOURCES = stdsoap2.c dom.c
97 ++libgsoap_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform)
98 ++libgsoap_la_LDFLAGS = -version-info $(SOVERSION)
99 ++libgsoap___la_SOURCES = stdsoap2_cpp.cpp dom_cpp.cpp
100 ++libgsoap___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform)
101 ++libgsoap___la_LDFLAGS = -version-info $(SOVERSION)
102 ++libgsoapck_la_SOURCES = stdsoap2_ck.c dom.c
103 ++libgsoapck_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) -DWITH_COOKIES
104 ++libgsoapck_la_LDFLAGS = -version-info $(SOVERSION)
105 ++libgsoapck___la_SOURCES = stdsoap2_ck_cpp.cpp dom_cpp.cpp
106 ++libgsoapck___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) -DWITH_COOKIES
107 ++libgsoapck___la_LDFLAGS = -version-info $(SOVERSION)
108 ++libgsoapssl_la_SOURCES = stdsoap2_ssl.c dom.c
109 ++libgsoapssl_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
110 ++libgsoapssl_la_LDFLAGS = -version-info $(SOVERSION)
111 ++libgsoapssl_la_LIBADD = -lssl -lcrypto -lz
112 ++libgsoapssl___la_SOURCES = stdsoap2_ssl_cpp.cpp dom_cpp.cpp
113 ++libgsoapssl___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
114 ++libgsoapssl___la_LDFLAGS = -version-info $(SOVERSION)
115 ++libgsoapssl___la_LIBADD = -lssl -lcrypto -lz
116 ++
117 + BUILT_SOURCES = stdsoap2_cpp.cpp dom_cpp.cpp stdsoap2_ck.c stdsoap2_ck_cpp.cpp stdsoap2_ssl.c stdsoap2_ssl_cpp.cpp
118 +
119 + include_HEADERS = stdsoap2.h
120 +diff -Naur a/gsoap/samples/autotest/Makefile.am b/gsoap/samples/autotest/Makefile.am
121 +--- a/gsoap/samples/autotest/Makefile.am 2016-12-11 04:12:27.000000000 +0000
122 ++++ b/gsoap/samples/autotest/Makefile.am 2017-01-10 13:44:39.954389922 +0000
123 +@@ -14,7 +14,7 @@
124 + WSDLINPUT=$(srcdir)/examples.wsdl
125 + SOAPHEADER=$(srcdir)/examples.h
126 + SOAP_CPP_SRC=soapC.cpp soapServer.cpp
127 +-SOAP_CPP_LIB=$(top_builddir)/gsoap/libgsoap++.a
128 ++SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/libgsoap++.a
129 +
130 + $(SOAP_CPP_SRC) : $(WSDLINPUT)
131 + $(WSDL) $(WSDL_FLAGS) $(WSDLINPUT)
132 +@@ -40,6 +40,6 @@
133 + autotest_CPPFLAGS=$(C_DEBUG_FLAGS) -D$(platform)
134 + autotest_CXXFLAGS=$(WSDL2H_EXTRA_FLAGS)
135 + autotest_SOURCES=$(SOAP_CPP_SRC) soapTester.cpp duration.cpp long_time.cpp struct_tm.cpp struct_tm_date.cpp
136 +-autotest_LDADD=$(SOAP_CPP_LIB) $(SAMPLE_EXTRA_LIBS)
137 ++autotest_LDADD=$(SOAP_CPP_SHARED_LIB) $(SAMPLE_EXTRA_LIBS)
138 +
139 + CLEANFILES= *~ *.h *.cpp *.xml *.log *.nsmap
140 +diff -Naur a/gsoap/samples/databinding/Makefile.am b/gsoap/samples/databinding/Makefile.am
141 +--- a/gsoap/samples/databinding/Makefile.am 2016-12-11 04:12:27.000000000 +0000
142 ++++ b/gsoap/samples/databinding/Makefile.am 2017-01-10 13:43:51.788258087 +0000
143 +@@ -14,7 +14,7 @@
144 + WSDLINPUT=$(srcdir)/address.xsd
145 + SOAPHEADER=$(srcdir)/address.h
146 + SOAP_CPP_SRC=addressC.cpp
147 +-SOAP_CPP_LIB=$(top_builddir)/gsoap/libgsoap++.a
148 ++SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/libgsoap++.la
149 +
150 + $(SOAP_CPP_SRC) : $(WSDLINPUT)
151 + $(WSDL) $(WSDL_FLAGS) $(WSDLINPUT)
152 +@@ -28,6 +28,6 @@
153 + address_CPPFLAGS=$(C_DEBUG_FLAGS) -D$(platform)
154 + address_CXXFLAGS=$(WSDL2H_EXTRA_FLAGS)
155 + address_SOURCES=$(SOAP_CPP_SRC) address.cpp
156 +-address_LDADD=$(SOAP_CPP_LIB)
157 ++address_LDADD=$(SOAP_CPP_SHARED_LIB)
158 +
159 + CLEANFILES= *~ address.h *C.cpp *H.h *Stub.h *.nsmap
160 +diff -Naur a/gsoap/wsdl/Makefile.am b/gsoap/wsdl/Makefile.am
161 +--- a/gsoap/wsdl/Makefile.am 2016-12-11 04:12:28.000000000 +0000
162 ++++ b/gsoap/wsdl/Makefile.am 2017-01-10 13:42:08.991078959 +0000
163 +@@ -10,7 +10,7 @@
164 + AM_LDFLAGS=-L$(srcdir) -I$(top_srcdir)/gsoap -I$(top_srcdir)/gsoap/plugin
165 + AM_CPPFLAGS=-I$(top_srcdir)/gsoap -I$(top_srcdir)/gsoap/plugin
166 + SOAP=$(top_builddir)/gsoap/src/soapcpp2$(EXEEXT)
167 +-SOAP_CPP_LIB=$(top_builddir)/gsoap/$(WSDL2H_SOAP_CPP_LIB)
168 ++SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/$(WSDL2H_SOAP_CPP_SHARED_LIB)
169 + SOAP_CPP_SRC=wsdlC.cpp
170 + SOAPHEADER=$(srcdir)/wsdl.h
171 + SOAP_FLAGS=-SC -pwsdl -I$(srcdir) -I$(top_srcdir)/gsoap/import
172 +@@ -29,6 +29,6 @@
173 + wsdl2h_CXXFLAGS=$(C_DEBUG_FLAGS) $(WSDL2H_EXTRA_FLAGS) $(WSDL2H_IMPORTPATH)
174 + wsdl2h_CPPFLAGS=$(AM_CPPFLAGS) $(SOAPCPP2_NONAMESPACES) -D$(platform)
175 + wsdl2h_SOURCES=wsdl2h.cpp wsdl.cpp wadl.cpp schema.cpp types.cpp service.cpp soap.cpp mime.cpp wsp.cpp bpel.cpp $(SOAP_CPP_SRC)
176 +-wsdl2h_LDADD=$(SOAP_CPP_LIB) $(WSDL2H_EXTRA_LIBS)
177 ++wsdl2h_LDADD=$(SOAP_CPP_SHARED_LIB) $(WSDL2H_EXTRA_LIBS)
178 +
179 + CLEANFILES= *~ *C.cpp *H.h *Stub.h *.nsmap
180 +
181
182 diff --git a/net-libs/gsoap/gsoap-2.8.45.ebuild b/net-libs/gsoap/gsoap-2.8.45.ebuild
183 new file mode 100644
184 index 00000000000..aef077767cc
185 --- /dev/null
186 +++ b/net-libs/gsoap/gsoap-2.8.45.ebuild
187 @@ -0,0 +1,82 @@
188 +# Copyright 1999-2017 Gentoo Foundation
189 +# Distributed under the terms of the GNU General Public License v2
190 +
191 +EAPI=6
192 +
193 +inherit autotools eutils
194 +
195 +MY_P="${PN}-2.8"
196 +
197 +DESCRIPTION="A cross-platform open source C and C++ SDK for SOAP/XML Web services"
198 +HOMEPAGE="http://gsoap2.sourceforge.net"
199 +SRC_URI="mirror://sourceforge/gsoap2/gsoap_${PV}.zip"
200 +
201 +LICENSE="GPL-2 gSOAP"
202 +SLOT="0"
203 +KEYWORDS="~amd64 ~x86"
204 +IUSE="doc debug examples ipv6 libressl gnutls +ssl"
205 +
206 +RDEPEND="
207 + sys-libs/zlib
208 + gnutls? ( net-libs/gnutls )
209 + ssl? (
210 + !libressl? ( dev-libs/openssl:0= )
211 + libressl? ( dev-libs/libressl )
212 + )
213 +"
214 +DEPEND="${RDEPEND}
215 + app-arch/unzip
216 + sys-devel/flex
217 + sys-devel/bison
218 +"
219 +
220 +S="${WORKDIR}/${MY_P}"
221 +
222 +src_prepare() {
223 + default
224 +
225 + # Fix Pre-ISO headers
226 + eapply "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch"
227 +
228 + # enable shared libs https://bugs.gentoo.org/583398
229 + eapply "${FILESDIR}/${PN}-2.7.40-shared_libs.patch"
230 +
231 + eautoreconf
232 +}
233 +
234 +src_configure() {
235 + local myconf=()
236 + use ssl || myconf+=( --disable-ssl )
237 + use gnutls && myconf+=( --enable-gnutls )
238 + use ipv6 && myconf+=( --enable-ipv6 )
239 + econf \
240 + ${myconf[@]} \
241 + $(use_enable debug) \
242 + $(use_enable examples samples)
243 +}
244 +
245 +src_compile() {
246 + emake -j1
247 +}
248 +
249 +src_install() {
250 + emake DESTDIR="${D}" install
251 +
252 + # yes, we also install the license-file since
253 + # it contains info about how to apply the licenses
254 + dodoc *.txt
255 +
256 + dohtml changelog.md
257 +
258 + prune_libtool_files --all
259 +
260 + if use examples; then
261 + rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o || die
262 + insinto /usr/share/doc/${PF}/examples
263 + doins -r gsoap/samples/*
264 + fi
265 +
266 + if use doc; then
267 + dohtml -r gsoap/doc/*
268 + fi
269 +}