commit:     62bbcee37d9d89edd2392a141218b515cffe3c84
Author:     Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 14 17:13:41 2021 +0000
Commit:     Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 17:14:33 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62bbcee3

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 <AT> gentoo.org>

 dev-libs/tntnet/Manifest             |  1 +
 dev-libs/tntnet/files/tntnet-3.initd | 27 ++++++++++++++
 dev-libs/tntnet/tntnet-3.0.ebuild    | 71 ++++++++++++++++++++++++++++++++++++
 3 files changed, 99 insertions(+)

diff --git a/dev-libs/tntnet/Manifest b/dev-libs/tntnet/Manifest
index 19d04595095..c0186637b7e 100644
--- a/dev-libs/tntnet/Manifest
+++ b/dev-libs/tntnet/Manifest
@@ -1 +1,2 @@
 DIST tntnet-2.2.1.tar.gz 1127500 BLAKE2B 
bdb55c879ed00afdde1bfe1560ad4228effaa05b35996df3860631c90c93e57096f590b5ddfd8e8ff0356837e839e2f6ed8f4f6fe8ed478275926dd1143b2051
 SHA512 
78a26713498fd6eabb0b4a247bb20c130ce967ed22ce5c54da4b1300534dd40155aa62a2dc770be4eca720cadeceac283978a5dc3ce418728994af72e4d8eac1
+DIST tntnet-3.0.tar.gz 879598 BLAKE2B 
34cbabc52eb28be051da8593eb32d66aa701785be4002056d9be34d28871ae886a87eb1d66e71393a9f9d96110a3d826acead6c6db5c6f2829db797ac449b82e
 SHA512 
5fe1f8750e10537919174e953be92b73e12a9227c50a02dcf2f23a266304ad3ad77d29823e8cdd3e2fa92dba936c2624f140943d021790e8137609bbeb0d3d81

diff --git a/dev-libs/tntnet/files/tntnet-3.initd 
b/dev-libs/tntnet/files/tntnet-3.initd
new file mode 100644
index 00000000000..b5c0f630703
--- /dev/null
+++ b/dev-libs/tntnet/files/tntnet-3.initd
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+PIDFILE="/var/run/tntnet.pid"
+
+depend() {
+       use net
+}
+
+start() {
+       ebegin "Starting tntnet"
+       start-stop-daemon --start --quiet --pidfile $PIDFILE --exec 
/usr/bin/tntnet
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping tntnet"
+       start-stop-daemon --stop --pidfile $PIDFILE --exec /usr/bin/tntnet
+       eend $?
+}
+
+reload() {
+       ebegin "Reloading tntnet configuration"
+       start-stop-daemon --pidfile $PIDFILE --signal HUP --exec /usr/bin/tntnet
+       eend $?
+}

diff --git a/dev-libs/tntnet/tntnet-3.0.ebuild 
b/dev-libs/tntnet/tntnet-3.0.ebuild
new file mode 100644
index 00000000000..e09bb6e710d
--- /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
+}

Reply via email to