www-servers/civetweb: new package
authorZac Medico <zmedico@gentoo.org>
Mon, 13 Nov 2017 06:22:49 +0000 (22:22 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 13 Nov 2017 06:28:16 +0000 (22:28 -0800)
Package-Manager: Portage-2.3.13, Repoman-2.3.3

www-servers/civetweb/Manifest [new file with mode: 0644]
www-servers/civetweb/civetweb-1.10.ebuild [new file with mode: 0644]
www-servers/civetweb/metadata.xml [new file with mode: 0644]

diff --git a/www-servers/civetweb/Manifest b/www-servers/civetweb/Manifest
new file mode 100644 (file)
index 0000000..4ceadc2
--- /dev/null
@@ -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 (file)
index 0000000..62190ba
--- /dev/null
@@ -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 (file)
index 0000000..da48c00
--- /dev/null
@@ -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>