/[gentoo-x86]/dev-ml/ocamlnet/ocamlnet-3.6.1.ebuild
Gentoo

Contents of /dev-ml/ocamlnet/ocamlnet-3.6.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Nov 21 00:10:32 2012 UTC (2 years ago) by aballier
Branch: MAIN
version bump

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

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-ml/ocamlnet/ocamlnet-3.6.ebuild,v 1.2 2012/08/03 22:38:04 aballier Exp $
4
5 EAPI="2"
6
7 inherit eutils findlib
8
9 MY_P=${P/_beta/test}
10 DESCRIPTION="Modules for OCaml application-level Internet protocols"
11 HOMEPAGE="http://projects.camlcity.org/projects/ocamlnet.html"
12 SRC_URI="http://download.camlcity.org/download/${MY_P}.tar.gz"
13
14 LICENSE="ZLIB GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
17 IUSE="cryptokit gtk ssl tk httpd +ocamlopt +pcre zip"
18 RESTRICT="installsources"
19
20 # the auth-dh compile flag has been disabled as well, since it depends on
21 # ocaml-cryptgps, which is not available.
22
23 DEPEND=">=dev-ml/findlib-1.0
24 pcre? ( >=dev-ml/pcre-ocaml-5 )
25 >=dev-lang/ocaml-3.10.2[tk?,ocamlopt?]
26 cryptokit? ( dev-ml/cryptokit )
27 gtk? ( >=dev-ml/lablgtk-2 )
28 ssl? ( >=dev-ml/ocaml-ssl-0.4 )
29 zip? ( dev-ml/camlzip )
30 "
31 RDEPEND="${DEPEND}"
32
33 S=${WORKDIR}/${MY_P}
34
35 ocamlnet_use_with() {
36 if use $1; then
37 echo "-with-$2"
38 else
39 echo "-without-$2"
40 fi
41 }
42
43 ocamlnet_use_enable() {
44 if use $1; then
45 echo "-enable-$2"
46 else
47 echo "-disable-$2"
48 fi
49 }
50
51 src_configure() {
52 ./configure \
53 -bindir /usr/bin \
54 -datadir /usr/share/${PN} \
55 $(ocamlnet_use_enable cryptokit crypto) \
56 $(ocamlnet_use_enable gtk gtk2) \
57 $(ocamlnet_use_enable pcre pcre) \
58 $(ocamlnet_use_enable ssl ssl) \
59 $(ocamlnet_use_enable tk tcl) \
60 $(ocamlnet_use_enable zip zip) \
61 $(ocamlnet_use_with httpd nethttpd) \
62 || die "Error : econf failed!"
63 }
64
65 src_compile() {
66 emake -j1 all || die "make failed"
67 if use ocamlopt; then
68 emake -j1 opt || die "make failed"
69 fi
70 }
71
72 src_install() {
73 export STRIP_MASK="*/bin/*"
74 findlib_src_install
75 }

  ViewVC Help
Powered by ViewVC 1.1.20