From: | "Alexis Ballier (aballier)" <aballier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ml/ocamlnet: ChangeLog ocamlnet-3.0.3.ebuild |
Date: | Sun, 07 Nov 2010 16:51:57 |
Message-Id: | 20101107165140.2FE0820051@flycatcher.gentoo.org |
1 | aballier 10/11/07 16:51:40 |
2 | |
3 | Modified: ChangeLog |
4 | Added: ocamlnet-3.0.3.ebuild |
5 | Log: |
6 | version bump |
7 | |
8 | (Portage version: 2.2.0_alpha4/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.41 dev-ml/ocamlnet/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ChangeLog?rev=1.41&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ChangeLog?rev=1.41&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ChangeLog?r1=1.40&r2=1.41 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ChangeLog,v |
20 | retrieving revision 1.40 |
21 | retrieving revision 1.41 |
22 | diff -u -r1.40 -r1.41 |
23 | --- ChangeLog 9 Mar 2010 23:17:07 -0000 1.40 |
24 | +++ ChangeLog 7 Nov 2010 16:51:40 -0000 1.41 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-ml/ocamlnet |
27 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ChangeLog,v 1.40 2010/03/09 23:17:07 aballier Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ChangeLog,v 1.41 2010/11/07 16:51:40 aballier Exp $ |
30 | + |
31 | +*ocamlnet-3.0.3 (07 Nov 2010) |
32 | + |
33 | + 07 Nov 2010; Alexis Ballier <aballier@g.o> +ocamlnet-3.0.3.ebuild: |
34 | + version bump |
35 | |
36 | *ocamlnet-3.0_beta2 (09 Mar 2010) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 dev-ml/ocamlnet/ocamlnet-3.0.3.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ocamlnet-3.0.3.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ocamlnet-3.0.3.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: ocamlnet-3.0.3.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2010 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ocamlnet-3.0.3.ebuild,v 1.1 2010/11/07 16:51:40 aballier Exp $ |
51 | |
52 | EAPI="2" |
53 | |
54 | inherit eutils findlib |
55 | |
56 | MY_P=${P/_beta/test} |
57 | DESCRIPTION="Modules for OCaml application-level Internet protocols" |
58 | HOMEPAGE="http://projects.camlcity.org/projects/ocamlnet.html" |
59 | SRC_URI="http://download.camlcity.org/download/${MY_P}.tar.gz" |
60 | |
61 | LICENSE="as-is GPL-2" |
62 | SLOT="0" |
63 | KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
64 | IUSE="gtk ssl tk httpd +ocamlopt zip" |
65 | RESTRICT="installsources" |
66 | |
67 | # the auth-dh compile flag has been disabled as well, since it depends on |
68 | # ocaml-cryptgps, which is not available. |
69 | |
70 | DEPEND=">=dev-ml/findlib-1.0 |
71 | >=dev-ml/pcre-ocaml-5 |
72 | >=dev-lang/ocaml-3.10.2[tk?,ocamlopt?] |
73 | gtk? ( >=dev-ml/lablgtk-2 ) |
74 | ssl? ( >=dev-ml/ocaml-ssl-0.4 ) |
75 | zip? ( dev-ml/camlzip ) |
76 | " |
77 | RDEPEND="${DEPEND}" |
78 | |
79 | S=${WORKDIR}/${MY_P} |
80 | |
81 | ocamlnet_use_with() { |
82 | if use $1; then |
83 | echo "-with-$2" |
84 | else |
85 | echo "-without-$2" |
86 | fi |
87 | } |
88 | |
89 | ocamlnet_use_enable() { |
90 | if use $1; then |
91 | echo "-enable-$2" |
92 | else |
93 | echo "-disable-$2" |
94 | fi |
95 | } |
96 | |
97 | src_configure() { |
98 | ./configure \ |
99 | -bindir /usr/bin \ |
100 | -datadir /usr/share/${PN} \ |
101 | $(ocamlnet_use_enable gtk gtk2) \ |
102 | $(ocamlnet_use_enable ssl ssl) \ |
103 | $(ocamlnet_use_enable tk tcl) \ |
104 | $(ocamlnet_use_enable zip zip) \ |
105 | $(ocamlnet_use_with httpd nethttpd) \ |
106 | || die "Error : econf failed!" |
107 | } |
108 | |
109 | src_compile() { |
110 | emake -j1 all || die "make failed" |
111 | if use ocamlopt; then |
112 | emake -j1 opt || die "make failed" |
113 | fi |
114 | } |
115 | |
116 | src_install() { |
117 | export STRIP_MASK="*/bin/*" |
118 | findlib_src_install |
119 | } |