blob: d5851a4e58b90682a9347233da906d6cd6d77916 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ocsigen-0.99.0.ebuild,v 1.4 2007/07/15 00:12:16 mr_bones_ Exp $
inherit eutils findlib multilib
DESCRIPTION="Ocaml-powered webserver and framework for dynamic web programming"
HOMEPAGE="http://www.ocsigen.org"
SRC_URI="http://www.ocsigen.org/download/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug ocamlduce doc logrotate"
RESTRICT="strip"
DEPEND="dev-ml/findlib
>=dev-lang/ocaml-3.08.4
>=dev-ml/ocamlnet-2.2
>=dev-ml/ocaml-ssl-0.4
ocamlduce? ( dev-ml/ocamlduce )"
RDEPEND="${DEPEND}"
pkg_setup() {
enewgroup ocsigen
enewuser ocsigen -1 -1 /var/www ocsigen
}
src_compile() {
./configure \
--temproot "${D}" \
--bindir /usr/bin \
--docdir /usr/share/doc \
--mandir /usr/share/man/man1 \
--libdir /usr/$(get_libdir) \
$(use_enable debug) \
$(use_enable ocamlduce) \
--ocsigen-group ocsigen \
--ocsigen-user ocsigen \
--name ocsigen \
|| die "Error : configure failed!"
emake -j1 depend
emake -j1 || die "Error : make failed!"
}
src_install() {
if use doc ; then
emake -j1 install
else
emake -j1 installwithoutdoc;
fi
if use logrotate ; then
emake -j1 logrotate
fi
newinitd "${FILESDIR}"/ocsigen.initd ocsigen || die
newconfd "${FILESDIR}"/ocsigen.confd ocsigen || die
dodoc README
}
|