/[gentoo-x86]/dev-libs/tntnet/tntnet-1.6.3.ebuild
Gentoo

Contents of /dev-libs/tntnet/tntnet-1.6.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Jun 4 16:38:22 2012 UTC (2 years, 1 month ago) by idl0r
Branch: MAIN
Changes since 1.7: +2 -2 lines
Version bump. Fix dependencies.

(Portage version: 2.2.0_alpha109/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20