1 |
commit: 944606cce697022863886a3048135fcc02174088 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 3 13:48:17 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 3 14:04:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=944606cc |
7 |
|
8 |
net-libs/wvstreams: Add live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
.../files/wvstreams-99999-openssl-ldflags.patch | 10 +++ |
14 |
.../wvstreams/files/wvstreams-99999-soname.patch | 11 +++ |
15 |
net-libs/wvstreams/wvstreams-99999.ebuild | 92 ++++++++++++++++++++++ |
16 |
3 files changed, 113 insertions(+) |
17 |
|
18 |
diff --git a/net-libs/wvstreams/files/wvstreams-99999-openssl-ldflags.patch b/net-libs/wvstreams/files/wvstreams-99999-openssl-ldflags.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..0bf2bc4a7b0 |
21 |
--- /dev/null |
22 |
+++ b/net-libs/wvstreams/files/wvstreams-99999-openssl-ldflags.patch |
23 |
@@ -0,0 +1,10 @@ |
24 |
+--- a/config.ac |
25 |
++++ b/config.ac |
26 |
+@@ -444,7 +444,6 @@ |
27 |
+ if test "$with_openssl" != "no"; then |
28 |
+ if test "$with_openssl" != ""; then |
29 |
+ WV_APPEND(CPPFLAGS, [-I$with_openssl/include]) |
30 |
+- WV_APPEND(LDFLAGS, [-L$with_openssl]) |
31 |
+ fi |
32 |
+ AC_CHECK_HEADERS(openssl/ssl.h,, [with_openssl=no], |
33 |
+ [#define OPENSSL_NO_KRB5]) |
34 |
|
35 |
diff --git a/net-libs/wvstreams/files/wvstreams-99999-soname.patch b/net-libs/wvstreams/files/wvstreams-99999-soname.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..9dd0d8ab826 |
38 |
--- /dev/null |
39 |
+++ b/net-libs/wvstreams/files/wvstreams-99999-soname.patch |
40 |
@@ -0,0 +1,11 @@ |
41 |
+--- a/default.so.do |
42 |
++++ b/default.so.do |
43 |
+@@ -47,7 +47,7 @@ |
44 |
+ redo-ifchange "$OUT/$2.a" |
45 |
+ ln -s $2.a "$sofile" |
46 |
+ else |
47 |
+- $CXX -o "$sofile" -shared \ |
48 |
++ $CXX -o "$sofile" -shared -Wl,-soname,$sofile \ |
49 |
+ $zdefs \ |
50 |
+ $LDFLAGS \ |
51 |
+ $obj $libdep $libs |
52 |
|
53 |
diff --git a/net-libs/wvstreams/wvstreams-99999.ebuild b/net-libs/wvstreams/wvstreams-99999.ebuild |
54 |
new file mode 100644 |
55 |
index 00000000000..8665f2087f9 |
56 |
--- /dev/null |
57 |
+++ b/net-libs/wvstreams/wvstreams-99999.ebuild |
58 |
@@ -0,0 +1,92 @@ |
59 |
+# Copyright 1999-2018 Gentoo Authors |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+ |
62 |
+EAPI=6 |
63 |
+AT_NOELIBTOOLIZE=yes |
64 |
+inherit autotools flag-o-matic git-r3 multiprocessing toolchain-funcs out-of-source |
65 |
+ |
66 |
+DESCRIPTION="A network programming library in C++" |
67 |
+HOMEPAGE="https://github.com/apenwarr/wvstreams" |
68 |
+EGIT_REPO_URI="${HOMEPAGE}" |
69 |
+ |
70 |
+LICENSE="GPL-2" |
71 |
+SLOT="0/5.0" |
72 |
+KEYWORDS="" |
73 |
+IUSE="+dbus debug doc pam static-libs +zlib" |
74 |
+ |
75 |
+RDEPEND=" |
76 |
+ <dev-libs/openssl-1.1:0= |
77 |
+ sys-libs/readline:0= |
78 |
+ sys-libs/zlib |
79 |
+ dbus? ( >=sys-apps/dbus-1.4.20 ) |
80 |
+ pam? ( virtual/pam ) |
81 |
+" |
82 |
+DEPEND=" |
83 |
+ ${RDEPEND} |
84 |
+ dev-util/redo |
85 |
+ virtual/pkgconfig |
86 |
+ doc? ( app-doc/doxygen ) |
87 |
+" |
88 |
+PATCHES=( |
89 |
+ "${FILESDIR}"/${PN}-99999-openssl-ldflags.patch |
90 |
+ "${FILESDIR}"/${PN}-99999-soname.patch |
91 |
+) |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ sed -i -e 's|-pre||g' config.ac || die |
95 |
+ |
96 |
+ default |
97 |
+ |
98 |
+ ln -s config.ac configure.ac || die |
99 |
+ eautoreconf |
100 |
+} |
101 |
+ |
102 |
+my_src_configure() { |
103 |
+ append-flags -fno-strict-aliasing |
104 |
+ append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375 |
105 |
+ |
106 |
+ tc-export AR CC CXX |
107 |
+ |
108 |
+ econf \ |
109 |
+ $(use_enable debug) \ |
110 |
+ $(use_with dbus) \ |
111 |
+ $(use_with pam) \ |
112 |
+ $(use_with zlib) \ |
113 |
+ --cache-file="${BUILD_DIR}"/config.cache \ |
114 |
+ --disable-optimization \ |
115 |
+ --localstatedir=/var \ |
116 |
+ --without-qt \ |
117 |
+ --without-valgrind |
118 |
+} |
119 |
+ |
120 |
+my_src_compile() { |
121 |
+ redo -j$(makeopts_jobs) || die |
122 |
+ |
123 |
+ if use doc; then |
124 |
+ doxygen "${S}"/Doxyfile || die |
125 |
+ fi |
126 |
+} |
127 |
+ |
128 |
+my_src_test() { |
129 |
+ redo -j$(makeopts_jobs) test || die |
130 |
+} |
131 |
+ |
132 |
+my_src_install() { |
133 |
+ DESTDIR="${D}" redo -j$(makeopts_jobs) install || die |
134 |
+ |
135 |
+ local lib |
136 |
+ for lib in $(find "${BUILD_DIR}" -name '*.so' -type l | grep -v libwvstatic); do |
137 |
+ insinto /usr/$(get_libdir)/pkgconfig |
138 |
+ doins "${BUILD_DIR}"/pkgconfig/$(basename ${lib/.so}).pc |
139 |
+ done |
140 |
+ |
141 |
+ if use doc; then |
142 |
+ #the list of files is too big for dohtml -r Docs/doxy-html/* |
143 |
+ docinto html |
144 |
+ dodoc -r Docs/doxy-html/* |
145 |
+ fi |
146 |
+ |
147 |
+ if ! use static-libs; then |
148 |
+ find "${D}/usr/$(get_libdir)" -name '*.a' -delete || die |
149 |
+ fi |
150 |
+} |