diff options
author | Alexis Ballier <aballier@gentoo.org> | 2007-11-10 16:19:59 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2007-11-10 16:19:59 +0000 |
commit | 3962717d421c83ef6f2ff46db12f2c48a7381007 (patch) | |
tree | 5cf8dfddf6437d4ae29ff137f3e954c75d24b83f /www-servers/ocsigen | |
parent | Also ~sparc as part of Bug #198698. (diff) | |
download | gentoo-2-3962717d421c83ef6f2ff46db12f2c48a7381007.tar.gz gentoo-2-3962717d421c83ef6f2ff46db12f2c48a7381007.tar.bz2 gentoo-2-3962717d421c83ef6f2ff46db12f2c48a7381007.zip |
version bump, thanks to Pierre Clairambault <pclairam@gmail.com>, bug #198470
(Portage version: 2.1.3.19)
Diffstat (limited to 'www-servers/ocsigen')
-rw-r--r-- | www-servers/ocsigen/ChangeLog | 8 | ||||
-rw-r--r-- | www-servers/ocsigen/files/digest-ocsigen-0.99.3 | 3 | ||||
-rw-r--r-- | www-servers/ocsigen/files/ocsigen-0.99.3-lwt-gentoo.patch | 10 | ||||
-rw-r--r-- | www-servers/ocsigen/ocsigen-0.99.3.ebuild | 99 |
4 files changed, 119 insertions, 1 deletions
diff --git a/www-servers/ocsigen/ChangeLog b/www-servers/ocsigen/ChangeLog index f132a8b43e41..31c8b2c583aa 100644 --- a/www-servers/ocsigen/ChangeLog +++ b/www-servers/ocsigen/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-servers/ocsigen # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ChangeLog,v 1.9 2007/10/21 20:03:29 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ChangeLog,v 1.10 2007/11/10 16:19:58 aballier Exp $ + +*ocsigen-0.99.3 (10 Nov 2007) + + 10 Nov 2007; Alexis Ballier <aballier@gentoo.org> + +files/ocsigen-0.99.3-lwt-gentoo.patch, +ocsigen-0.99.3.ebuild: + version bump, thanks to Pierre Clairambault <pclairam@gmail.com>, bug #198470 21 Oct 2007; Alexis Ballier <aballier@gentoo.org> ocsigen-0.99.2.ebuild: dont install examples in /usr/local diff --git a/www-servers/ocsigen/files/digest-ocsigen-0.99.3 b/www-servers/ocsigen/files/digest-ocsigen-0.99.3 new file mode 100644 index 000000000000..89f88883ff72 --- /dev/null +++ b/www-servers/ocsigen/files/digest-ocsigen-0.99.3 @@ -0,0 +1,3 @@ +MD5 4aa528d9aaa0f9d5faeac6289317d2c9 ocsigen-0.99.3.tar.gz 646915 +RMD160 a2e7543f0c1dedc070df30255f4d1264c7cb34ba ocsigen-0.99.3.tar.gz 646915 +SHA256 0df5ceeb97db63ea25eef43caea4855de919302adc7dbc8a74f86f8f308990f7 ocsigen-0.99.3.tar.gz 646915 diff --git a/www-servers/ocsigen/files/ocsigen-0.99.3-lwt-gentoo.patch b/www-servers/ocsigen/files/ocsigen-0.99.3-lwt-gentoo.patch new file mode 100644 index 000000000000..2e9a222ea54c --- /dev/null +++ b/www-servers/ocsigen/files/ocsigen-0.99.3-lwt-gentoo.patch @@ -0,0 +1,10 @@ +--- lwt/Makefile.orig 2007-11-10 16:08:28.000000000 +0100 ++++ lwt/Makefile 2007-11-10 16:08:36.000000000 +0100 +@@ -55,6 +55,7 @@ + + install: + { test ! -f $(XARCHIVE) || extra="$(XARCHIVE) "`basename $(XARCHIVE) .cmxa`.a; }; \ ++ mkdir -p "$(TEMPROOT)/$(MODULEINSTALLDIR)" + $(OCAMLFIND) install $(NAME) -destdir "$(TEMPROOT)/$(MODULEINSTALLDIR)" *.mli *.cmi $(ARCHIVE) META $$extra + + uninstall: diff --git a/www-servers/ocsigen/ocsigen-0.99.3.ebuild b/www-servers/ocsigen/ocsigen-0.99.3.ebuild new file mode 100644 index 000000000000..b080755ae8a7 --- /dev/null +++ b/www-servers/ocsigen/ocsigen-0.99.3.ebuild @@ -0,0 +1,99 @@ +# 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.3.ebuild,v 1.1 2007/11/10 16:19:58 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 logrotate dbm sqlite zlib" +RESTRICT="strip" + +DEPEND="dev-ml/findlib + 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 ) + !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 +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-lwt-gentoo.patch" +} + +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 \ + --libdir /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 + + if use logrotate ; then + emake -j1 logrotate || die "Error : make logrotate failed!" + fi + + newinitd "${FILESDIR}"/ocsigen.initd ocsigen || die + newconfd "${FILESDIR}"/ocsigen.confd ocsigen || die + + dodoc README +} |