/[gentoo-x86]/dev-ml/eliom/eliom-2.2.2.ebuild
Gentoo

Contents of /dev-ml/eliom/eliom-2.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Aug 7 20:50:07 2012 UTC (2 years, 5 months ago) by aballier
Branch: MAIN
initial import, ebuild by  Guillaume Horel and  Jacques-Pascal Deplaix, bug #406661

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 inherit eutils multilib findlib
8
9 DESCRIPTION="A web framework to program client/server applications"
10 HOMEPAGE="http://ocsigen.org/eliom/"
11 SRC_URI="http://www.ocsigen.org/download/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1-with-linking-exception"
14 SLOT="0"
15 KEYWORDS="~amd64"
16 IUSE="doc +ocamlopt ocamlduce"
17
18 DEPEND=">=dev-lang/ocaml-3.12[ocamlopt?]
19 >=dev-ml/js_of_ocaml-1.2
20 >=www-servers/ocsigenserver-2.1
21 >=dev-ml/tyxml-2.1[ocamlduce?]
22 >=dev-ml/deriving-ocsigen-0.3
23 dev-ml/react
24 dev-ml/ocaml-ssl
25 dev-ml/calendar"
26 RDEPEND="${DEPEND}"
27
28 src_configure() {
29 sh configure \
30 --prefix "/usr" \
31 --docdir "/usr/share/doc/${PF}/html" \
32 --mandir "/usr/share/man/" \
33 --temproot "${ED}" \
34 --libdir "/usr/$(get_libdir)/ocaml" \
35 $(use_with ocamlduce) || die "configure failed"
36 }
37
38 src_compile() {
39 if use ocamlopt ; then
40 emake
41 else
42 emake byte
43 fi
44 use doc && emake doc -j1
45 }
46
47 src_test() {
48 emake tests.byte
49 use ocamlopt && emake tests.opt
50 }
51
52 src_install() {
53 findlib_src_preinst
54 if use ocamlopt; then
55 emake install
56 else
57 emake install.byte
58 fi
59 use doc && emake install.doc
60 dodoc CHANGES README
61 }

  ViewVC Help
Powered by ViewVC 1.1.20