diff options
author | Alexis Ballier <aballier@gentoo.org> | 2008-09-02 21:37:40 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2008-09-02 21:37:40 +0000 |
commit | 84f90fe39c77e0ccd014b6e63056603dabf6b728 (patch) | |
tree | 725fc03cac2fab58bdd519ff7899532121cdb550 | |
parent | Initial import. Split out of ocsigen. Thanks to Pierre Clairambault. (diff) | |
download | gentoo-2-84f90fe39c77e0ccd014b6e63056603dabf6b728.tar.gz gentoo-2-84f90fe39c77e0ccd014b6e63056603dabf6b728.tar.bz2 gentoo-2-84f90fe39c77e0ccd014b6e63056603dabf6b728.zip |
Version bump, thanks Pierre.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.3 x86_64)
-rw-r--r-- | www-servers/ocsigen/ChangeLog | 7 | ||||
-rw-r--r-- | www-servers/ocsigen/ocsigen-1.1.0.ebuild | 92 |
2 files changed, 98 insertions, 1 deletions
diff --git a/www-servers/ocsigen/ChangeLog b/www-servers/ocsigen/ChangeLog index 41b60d89114a..0e5c2640faf5 100644 --- a/www-servers/ocsigen/ChangeLog +++ b/www-servers/ocsigen/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-servers/ocsigen # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ChangeLog,v 1.20 2008/08/22 22:29:40 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ChangeLog,v 1.21 2008/09/02 21:37:40 aballier Exp $ + +*ocsigen-1.1.0 (02 Sep 2008) + + 02 Sep 2008; Alexis Ballier <aballier@gentoo.org> +ocsigen-1.1.0.ebuild: + Version bump, thanks Pierre. 22 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml: add GLEP 56 USE flag desc from use.local.desc diff --git a/www-servers/ocsigen/ocsigen-1.1.0.ebuild b/www-servers/ocsigen/ocsigen-1.1.0.ebuild new file mode 100644 index 000000000000..91fcd1d4738b --- /dev/null +++ b/www-servers/ocsigen/ocsigen-1.1.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ocsigen-1.1.0.ebuild,v 1.1 2008/09/02 21:37:40 aballier 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 dbm sqlite zlib" +RESTRICT="strip installsources" + +DEPEND="dev-ml/findlib + dev-ml/lwt + zlib? ( >=dev-ml/camlzip-1.03-r1 ) + dev-ml/cryptokit + >=dev-lang/ocaml-3.08.4 + >=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" + + if use !sqlite && use dbm && ! built_with_use dev-lang/ocaml gdbm; then + eerror "You need to compile dev-lang/ocaml with gdbm support" + eerror "in order to use ${PN} with dbm" + die "please reinstall dev-lang/ocaml with gdbm support" + fi +} + +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 +} + +src_compile() { + ./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) \ + --ocsigen-group ocsigen \ + --ocsigen-user ocsigen \ + --name ocsigen \ + || die "Error : configure failed!" + 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 +} |