diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2013-06-28 19:42:16 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2013-06-28 19:42:16 +0000 |
commit | 7d1c22e6d18c8c270aaf71a1a58f4c2f41af1abc (patch) | |
tree | ae78557920f2fc28cfad071108f6307bc3b98d8c /dev-libs | |
parent | Version bumped. (diff) | |
download | gentoo-2-7d1c22e6d18c8c270aaf71a1a58f4c2f41af1abc.tar.gz gentoo-2-7d1c22e6d18c8c270aaf71a1a58f4c2f41af1abc.tar.bz2 gentoo-2-7d1c22e6d18c8c270aaf71a1a58f4c2f41af1abc.zip |
Version bumped.
(Portage version: 2.1.12.10/cvs/Linux x86_64, signed Manifest commit with key 0xAA792A6A)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/tntnet/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/tntnet/tntnet-2.2.ebuild | 90 |
2 files changed, 96 insertions, 1 deletions
diff --git a/dev-libs/tntnet/ChangeLog b/dev-libs/tntnet/ChangeLog index 860c869f8ad9..9df92f97298f 100644 --- a/dev-libs/tntnet/ChangeLog +++ b/dev-libs/tntnet/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/tntnet # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/tntnet/ChangeLog,v 1.21 2013/06/28 19:22:59 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/tntnet/ChangeLog,v 1.22 2013/06/28 19:42:16 zzam Exp $ + +*tntnet-2.2 (28 Jun 2013) + + 28 Jun 2013; Matthias Schwarzott <zzam@gentoo.org> +tntnet-2.2.ebuild: + Version bumped. 28 Jun 2013; Matthias Schwarzott <zzam@gentoo.org> tntnet-1.6.3.ebuild, tntnet-2.0-r1.ebuild, tntnet-2.1.ebuild: diff --git a/dev-libs/tntnet/tntnet-2.2.ebuild b/dev-libs/tntnet/tntnet-2.2.ebuild new file mode 100644 index 000000000000..4350ba71135d --- /dev/null +++ b/dev-libs/tntnet/tntnet-2.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/tntnet/tntnet-2.2.ebuild,v 1.1 2013/06/28 19:42:16 zzam Exp $ + +EAPI="5" + +inherit autotools eutils + +DESCRIPTION="Modular, multithreaded webapplicationserver 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="cgi doc examples gnutls server sdk ssl" + +RDEPEND="=dev-libs/cxxtools-2.2* + sys-libs/zlib[minizip] + ssl? ( + gnutls? ( + >=net-libs/gnutls-1.2.0 + dev-libs/libgcrypt + ) + !gnutls? ( dev-libs/openssl ) + )" +DEPEND="${RDEPEND} + virtual/pkgconfig + examples? ( app-arch/zip )" + +src_prepare() { + # Both fixed in the next release + epatch "${FILESDIR}"/${PN}-2.0-zlib-minizip.patch + rm framework/common/{ioapi,unzip}.[ch] || die + + eautoreconf + + sed -i -e 's:@localstatedir@:/var:' etc/tntnet/tntnet.xml.in || die +} + +src_configure() { + local myconf="" + + # Prefer gnutls above SSL + if use gnutls; then + einfo "Using gnutls for ssl support." + myconf="${myconf} --with-ssl=gnutls" + elif use ssl; then + einfo "Using openssl for ssl support." + myconf="${myconf} --with-ssl=openssl" + else + myconf="${myconf} --with-ssl=no" + fi + + # demos/examples depend upon sdk + if use examples && ! use sdk; then + myconf="${myconf} --with-sdk" + fi + + econf \ + $(use_with examples demos) \ + $(use_with sdk) \ + $(use_with cgi) \ + $(use_with server) \ + ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog README TODO + if use doc; then + dodoc doc/*.pdf || die + fi + + if use examples; then + cd "${S}/sdk/demos" + emake clean + rm -rf .deps */.deps .libs */.libs + cd "${S}" + + insinto /usr/share/doc/${PF}/examples + doins -r sdk/demos/* || die + fi + + if use server; then + rm -f "${D}/etc/init.d/tntnet" + newinitd "${FILESDIR}/tntnet.initd" tntnet + fi +} |