blob: 6761f8bf9d43f1649d172c608c954da4d776bb0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/tntnet/tntnet-1.6.3.ebuild,v 1.3 2008/06/23 13:26:52 fmccor Exp $
inherit eutils
DESCRIPTION="A modular, multithreaded webapplicationserver extensible with C++."
HOMEPAGE="http://www.tntnet.org/index.hms"
SRC_URI="http://www.tntnet.org/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE="ssl gnutls examples"
RDEPEND="dev-libs/cxxtools
sys-libs/zlib
ssl? (
gnutls? ( >=net-libs/gnutls-1.2.0 )
!gnutls? ( dev-libs/openssl )
)"
DEPEND="${RDEPEND}
app-arch/zip"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-gcc43.patch"
}
src_compile() {
local myconf=""
if use ssl; then
if use gnutls; then
einfo "Using gnutls for ssl support."
myconf="${myconf} --with-ssl=gnutls"
else
einfo "Using openssl for ssl support."
myconf="${myconf} --with-ssl=openssl"
fi
else
einfo "Disabled ssl"
myconf="${myconf} --with-ssl=no"
fi
if use examples; then
myconf="${myconf} --with-demos=yes"
else
myconf="${myconf} --with-demos=no"
fi
econf ${myconf} || die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
dodoc AUTHORS ChangeLog README TODO doc/*.pdf
if use examples; then
cd "${S}/sdk/demos"
make clean
rm -rf .deps */.deps .libs */.libs
local dir="/usr/share/doc/${PF}/examples"
dodir "${dir}"
cp -r "${S}"/sdk/demos/* "${D}${dir}"
fi
}
|