summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2021-02-14 18:13:41 +0100
committerJoerg Bornkessel <hd_brummy@gentoo.org>2021-02-14 18:14:33 +0100
commit62bbcee37d9d89edd2392a141218b515cffe3c84 (patch)
treee695df0e2793636c07970d8fec28318d14a2845f /dev-libs/tntnet/tntnet-3.0.ebuild
parentdev-libs/cxxtools: version bump (diff)
downloadgentoo-62bbcee37d9d89edd2392a141218b515cffe3c84.tar.gz
gentoo-62bbcee37d9d89edd2392a141218b515cffe3c84.tar.bz2
gentoo-62bbcee37d9d89edd2392a141218b515cffe3c84.zip
dev-libs/tntnet: version bump
- upstream fixed the bundeld zlib handling in some parts we still need a walkaround for this - droped use-flag example, as it depends on dev-libs/tntdb it not exist in the tree (yet) Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>
Diffstat (limited to 'dev-libs/tntnet/tntnet-3.0.ebuild')
-rw-r--r--dev-libs/tntnet/tntnet-3.0.ebuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/dev-libs/tntnet/tntnet-3.0.ebuild b/dev-libs/tntnet/tntnet-3.0.ebuild
new file mode 100644
index 000000000000..e09bb6e710d4
--- /dev/null
+++ b/dev-libs/tntnet/tntnet-3.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Modular, multithreaded web application server extensible with C++"
+HOMEPAGE="http://www.tntnet.org/"
+SRC_URI="http://www.tntnet.org/download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="doc gnutls libressl server ssl"
+
+RDEPEND=">=dev-libs/cxxtools-3.0
+ sys-libs/zlib[minizip]
+ ssl? (
+ gnutls? (
+ >=net-libs/gnutls-1.2.0
+ dev-libs/libgcrypt:0
+ )
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig
+ app-arch/zip"
+
+src_prepare() {
+ default
+
+ eautoreconf
+
+ sed -i -e 's:@localstatedir@:/var:' etc/tntnet/tntnet.xml.in || die
+
+ # bug 423697
+ sed -e "s:unzip.h:minizip/unzip.h:" -i framework/defcomp/unzipcomp.cpp || die
+
+ # upstream still use bundeld zlib here
+ sed -e "s:unzip.h:minizip/unzip.h:" -i framework/common/unzipfile.cpp || die
+}
+
+src_configure() {
+ local myconf=""
+
+ if ! use server; then
+ myconf="${myconf} --disable-server"
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog README
+
+ doman doc/man/{ecpp.7,ecppc.1,tntnet.8,tntnet.xml.7}
+
+ if use server; then
+ rm -f "${D}/etc/init.d/tntnet"
+ newinitd "${FILESDIR}/tntnet-3.initd" tntnet
+ fi
+
+ # remove static libs
+ rm -f "${ED}"/usr/$(get_libdir)/libtntnet{,_sdk}.la || die
+}