1 |
commit: dd20da991c23232cdf385de3083f7ecb921f5810 |
2 |
Author: Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com> |
3 |
AuthorDate: Sun Nov 4 15:31:36 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 5 08:55:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd20da99 |
7 |
|
8 |
www-servers/civetweb: bump to 1.11, add cxx/server USE flags |
9 |
|
10 |
- Version bump to latest version. |
11 |
- Add USE flags to enable/disable the optional C++ bindings and |
12 |
the standalone binary, which is not needed for development. |
13 |
- Add the new USE flags to metadata.xml. |
14 |
|
15 |
Closes: https://github.com/gentoo/gentoo/pull/10337 |
16 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
17 |
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com> |
18 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
19 |
|
20 |
www-servers/civetweb/Manifest | 1 + |
21 |
www-servers/civetweb/civetweb-1.11.ebuild | 39 +++++++++++++++++++++++++++++++ |
22 |
www-servers/civetweb/metadata.xml | 3 +++ |
23 |
3 files changed, 43 insertions(+) |
24 |
|
25 |
diff --git a/www-servers/civetweb/Manifest b/www-servers/civetweb/Manifest |
26 |
index e2487744435..d83660b0b20 100644 |
27 |
--- a/www-servers/civetweb/Manifest |
28 |
+++ b/www-servers/civetweb/Manifest |
29 |
@@ -1 +1,2 @@ |
30 |
DIST civetweb-1.10.tar.gz 11350512 BLAKE2B b0a2ef514a0d9f821a1e05e72000901092f722a5628b759401ef4118301ef79ee8b00f44a9fe9e9f64a14b4af6511419d1684cbe9d2b7c0eb18dbd9d98cd7cbe SHA512 54035883fbec590f339a2b4b5bf1b9a93591ea50bff056830d0c45b874cf6e46ce5af39e9dd9d4e0e6c82bec844aa0f159503f337998e9e10e59099b8ecc3f79 |
31 |
+DIST civetweb-1.11.tar.gz 11421650 BLAKE2B 487044a313c2ff005a8dfa247b3d8a3c3b52ef048cbc3050ec8c0402ccef4e12e28de53fed5a3a91df1e7f59ba6c03bf545413ffdd0ce3e4d604148c16c661e9 SHA512 e1520fd2f4a54b6ab4838f4da2ce3f0956e9884059467d196078935a3fce61dad619f3bb1bc2b4c6a757e1a8abfed0e83cba38957c7c52fff235676e9dd1d428 |
32 |
|
33 |
diff --git a/www-servers/civetweb/civetweb-1.11.ebuild b/www-servers/civetweb/civetweb-1.11.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..b723333e365 |
36 |
--- /dev/null |
37 |
+++ b/www-servers/civetweb/civetweb-1.11.ebuild |
38 |
@@ -0,0 +1,39 @@ |
39 |
+# Copyright 1999-2018 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+inherit cmake-utils |
45 |
+ |
46 |
+HOMEPAGE="https://github.com/civetweb/civetweb/" |
47 |
+DESCRIPTION="Embedded C/C++ web server" |
48 |
+SRC_URI="https://github.com/civetweb/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+IUSE="cxx +server ssl" |
54 |
+ |
55 |
+RDEPEND="ssl? ( dev-libs/openssl:0= )" |
56 |
+DEPEND="${RDEPEND}" |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ sed -e 's|DESTINATION lib$|DESTINATION ${CMAKE_INSTALL_LIBDIR}|' \ |
60 |
+ -i src/CMakeLists.txt || die |
61 |
+ cmake-utils_src_prepare |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ local mycmakeargs=( |
66 |
+ -DBUILD_TESTING=OFF |
67 |
+ -DBUILD_SHARED_LIBS=ON |
68 |
+ -DCIVETWEB_BUILD_TESTING=OFF |
69 |
+ -DCIVETWEB_ENABLE_LUA=OFF |
70 |
+ -DCIVETWEB_ENABLE_DUKTAPE=OFF |
71 |
+ -DCIVETWEB_ENABLE_CXX="$(usex cxx)" |
72 |
+ -DCIVETWEB_ENABLE_SERVER_EXECUTABLE="$(usex server)" |
73 |
+ -DCIVETWEB_ENABLE_SSL="$(usex ssl)" |
74 |
+ ) |
75 |
+ |
76 |
+ cmake-utils_src_configure |
77 |
+} |
78 |
|
79 |
diff --git a/www-servers/civetweb/metadata.xml b/www-servers/civetweb/metadata.xml |
80 |
index da48c00830a..a80fa5cce40 100644 |
81 |
--- a/www-servers/civetweb/metadata.xml |
82 |
+++ b/www-servers/civetweb/metadata.xml |
83 |
@@ -7,4 +7,7 @@ |
84 |
<maintainer type="person"> |
85 |
<email>zmedico@g.o</email> |
86 |
</maintainer> |
87 |
+ <use> |
88 |
+ <flag name="server">Build standalone server</flag> |
89 |
+ </use> |
90 |
</pkgmetadata> |