diff options
author | Alexis Ballier <aballier@gentoo.org> | 2011-01-20 23:55:24 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2011-01-20 23:55:24 +0000 |
commit | c637488c00de8b710a7496a9db73f2379b733f27 (patch) | |
tree | 098497d5304381da399420989b5d08746efcfb24 /www-servers | |
parent | more ROOT vs. EROOT confusion (diff) | |
download | gentoo-2-c637488c00de8b710a7496a9db73f2379b733f27.tar.gz gentoo-2-c637488c00de8b710a7496a9db73f2379b733f27.tar.bz2 gentoo-2-c637488c00de8b710a7496a9db73f2379b733f27.zip |
version bump
(Portage version: 2.2.0_alpha18/cvs/Linux x86_64)
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/ocsigen/ChangeLog | 9 | ||||
-rw-r--r-- | www-servers/ocsigen/ocsigen-1.3.4.ebuild | 104 |
2 files changed, 111 insertions, 2 deletions
diff --git a/www-servers/ocsigen/ChangeLog b/www-servers/ocsigen/ChangeLog index 6bd3d9446da3..d4d63ccd0be8 100644 --- a/www-servers/ocsigen/ChangeLog +++ b/www-servers/ocsigen/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-servers/ocsigen -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ChangeLog,v 1.29 2009/11/25 17:24:47 aballier Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ChangeLog,v 1.30 2011/01/20 23:55:24 aballier Exp $ + +*ocsigen-1.3.4 (20 Jan 2011) + + 20 Jan 2011; Alexis Ballier <aballier@gentoo.org> +ocsigen-1.3.4.ebuild: + version bump *ocsigen-1.2.2 (25 Nov 2009) diff --git a/www-servers/ocsigen/ocsigen-1.3.4.ebuild b/www-servers/ocsigen/ocsigen-1.3.4.ebuild new file mode 100644 index 000000000000..23706b65b353 --- /dev/null +++ b/www-servers/ocsigen/ocsigen-1.3.4.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ocsigen-1.3.4.ebuild,v 1.1 2011/01/20 23:55:24 aballier Exp $ + +EAPI=2 + +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" +IUSE="debug ocamlduce doc dbm +ocamlopt sqlite zlib" +RESTRICT="strip installsources" + +DEPEND="dev-ml/findlib + >=dev-ml/lwt-2.0.0_rc + zlib? ( >=dev-ml/camlzip-1.03-r1 ) + dev-ml/cryptokit + dev-ml/obrowser + >=dev-ml/pcre-ocaml-6.0.1 + >=dev-lang/ocaml-3.10.2[ocamlopt?] + !sqlite? ( !dbm? ( >=dev-lang/ocaml-3.10.2[gdbm] ) ) + >=dev-ml/ocamlnet-2.2 + >=dev-ml/ocaml-ssl-0.4 + ocamlduce? ( >=dev-ml/ocamlduce-3.10.0 ) + !dbm? ( dev-ml/ocaml-sqlite3 ) + sqlite? ( dev-ml/ocaml-sqlite3 )" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewgroup ocsigen + enewuser ocsigen -1 -1 /var/www ocsigen + + use !dbm && use !sqlite \ + && ewarn "Neither dbm nor sqlite are in useflags, will enable sqlite as default" + + use sqlite && use dbm \ + && ewarn "sqlite and dbm are both in useflags, will use only sqlite" +} + +use_enable_default() { + if use $2; then + if use $1; then + echo "--enable-$2 --enable-$1" + else + echo "--enable-$2 --disable-$1" + fi + else + echo "--disable-$2 --enable-$1" + fi +} + +has_dynlink() { + if has_version '>=dev-lang/ocaml-3.11' && use ocamlopt ; then + echo "--enable-natdynlink" + else + echo "--disable-natdynlink" + fi +} + +src_configure() { + ./configure \ + --prefix /usr \ + --temproot "${D}" \ + --bindir /usr/bin \ + --docdir /usr/share/doc \ + --mandir /usr/share/man/man1 \ + --extralibdir /usr/$(get_libdir) \ + --examplesdir /usr/$(get_libdir) \ + $(use_enable debug) \ + $(use_enable ocamlduce) \ + $(use_enable zlib camlzip) \ + $(use_enable_default sqlite dbm) \ + $(use_enable ocamlopt nativecode) \ + $(has_dynlink) \ + --ocsigen-group ocsigen \ + --ocsigen-user ocsigen \ + --name ocsigen \ + || die "Error : configure failed!" +} + +src_compile() { + emake -j1 depend || die "Error : make depend failed!" + emake -j1 || die "Error : make failed!" +} + +src_install() { + if use doc ; then + emake -j1 install || die "Error : make install failed!" + else + emake -j1 installnodoc || die "Error : make install failed!" + fi + + emake -j1 logrotate || die "Error : make logrotate failed!" + + newinitd "${FILESDIR}"/ocsigen.initd ocsigen || die + newconfd "${FILESDIR}"/ocsigen.confd ocsigen || die + + dodoc README +} |