summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2017-11-12 22:22:49 -0800
committerZac Medico <zmedico@gentoo.org>2017-11-12 22:28:16 -0800
commit5da658803c6817e7df3e9661321c2c2694ba6de0 (patch)
tree3f66d189b4e015f2a3199961699c72a5ad0b54fd /www-servers/civetweb
parentdev-ruby/websocket-extensions: add 0.1.3 (diff)
downloadgentoo-5da658803c6817e7df3e9661321c2c2694ba6de0.tar.gz
gentoo-5da658803c6817e7df3e9661321c2c2694ba6de0.tar.bz2
gentoo-5da658803c6817e7df3e9661321c2c2694ba6de0.zip
www-servers/civetweb: new package
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'www-servers/civetweb')
-rw-r--r--www-servers/civetweb/Manifest1
-rw-r--r--www-servers/civetweb/civetweb-1.10.ebuild36
-rw-r--r--www-servers/civetweb/metadata.xml10
3 files changed, 47 insertions, 0 deletions
diff --git a/www-servers/civetweb/Manifest b/www-servers/civetweb/Manifest
new file mode 100644
index 000000000000..4ceadc2eb8ae
--- /dev/null
+++ b/www-servers/civetweb/Manifest
@@ -0,0 +1 @@
+DIST civetweb-1.10.tar.gz 11350512 SHA256 e6958f005aa01b02645bd3ff9760dd085e83d30530cdd97b584632419195bea5 SHA512 54035883fbec590f339a2b4b5bf1b9a93591ea50bff056830d0c45b874cf6e46ce5af39e9dd9d4e0e6c82bec844aa0f159503f337998e9e10e59099b8ecc3f79 WHIRLPOOL 3a2b45f36188612215b4fb2d1d85aa8e88677399f2065c19ef9c903a011434d44f47b1115862b2d7b4bda471feb6427879a454b5c1032ed28754afee1fd7c55e
diff --git a/www-servers/civetweb/civetweb-1.10.ebuild b/www-servers/civetweb/civetweb-1.10.ebuild
new file mode 100644
index 000000000000..62190ba870ba
--- /dev/null
+++ b/www-servers/civetweb/civetweb-1.10.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+HOMEPAGE="https://github.com/civetweb/civetweb/"
+DESCRIPTION="Embedded C/C++ web server"
+SRC_URI="https://github.com/civetweb/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="ssl? ( dev-libs/openssl:0= )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -e 's|DESTINATION lib$|DESTINATION ${CMAKE_INSTALL_LIBDIR}|' \
+ -i src/CMakeLists.txt || die
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=OFF
+ -DBUILD_SHARED_LIBS=ON
+ -DCIVETWEB_ENABLE_LUA=OFF
+ -DCIVETWEB_ENABLE_DUKTAPE=OFF
+ -DCIVETWEB_ENABLE_SSL="$(usex ssl)"
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/www-servers/civetweb/metadata.xml b/www-servers/civetweb/metadata.xml
new file mode 100644
index 000000000000..da48c00830a1
--- /dev/null
+++ b/www-servers/civetweb/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="github">civetweb/civetweb</remote-id>
+ </upstream>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>