summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-01-13 19:57:37 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-01-13 19:57:37 +0000
commit4609ed8af92d53cf5030dac1e7695821bc504a2a (patch)
tree305a5f9a11befcba7d84124b6a26badbcdb25543
parentFix LICENSE, see LICENSE file. (diff)
downloadgentoo-2-4609ed8af92d53cf5030dac1e7695821bc504a2a.tar.gz
gentoo-2-4609ed8af92d53cf5030dac1e7695821bc504a2a.tar.bz2
gentoo-2-4609ed8af92d53cf5030dac1e7695821bc504a2a.zip
version bump, bug #446724 by Jacques-Pascal Deplaix
(Portage version: 2.2.0_alpha151/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
-rw-r--r--www-servers/ocsigenserver/ChangeLog10
-rw-r--r--www-servers/ocsigenserver/ocsigenserver-2.2.0.ebuild79
2 files changed, 87 insertions, 2 deletions
diff --git a/www-servers/ocsigenserver/ChangeLog b/www-servers/ocsigenserver/ChangeLog
index 739d9ed731ae..154e7f52e819 100644
--- a/www-servers/ocsigenserver/ChangeLog
+++ b/www-servers/ocsigenserver/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-servers/ocsigenserver
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigenserver/ChangeLog,v 1.2 2012/08/07 19:40:25 aballier Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigenserver/ChangeLog,v 1.3 2013/01/13 19:57:37 aballier Exp $
+
+*ocsigenserver-2.2.0 (13 Jan 2013)
+
+ 13 Jan 2013; Alexis Ballier <aballier@gentoo.org>
+ +ocsigenserver-2.2.0.ebuild:
+ version bump, bug #446724 by Jacques-Pascal Deplaix
07 Aug 2012; Alexis Ballier <aballier@gentoo.org> ocsigenserver-2.1.ebuild:
allow dev-ml/camldbm as gdbm binding provider
diff --git a/www-servers/ocsigenserver/ocsigenserver-2.2.0.ebuild b/www-servers/ocsigenserver/ocsigenserver-2.2.0.ebuild
new file mode 100644
index 000000000000..1488920fd5fc
--- /dev/null
+++ b/www-servers/ocsigenserver/ocsigenserver-2.2.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigenserver/ocsigenserver-2.2.0.ebuild,v 1.1 2013/01/13 19:57:37 aballier Exp $
+
+EAPI=4
+
+inherit eutils multilib findlib user
+
+DESCRIPTION="Ocaml-powered webserver and framework for dynamic web programming"
+HOMEPAGE="http://www.ocsigen.org"
+SRC_URI="http://ocsigen.org/download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug doc dbm +ocamlopt +sqlite zlib"
+REQUIRED_USE="|| ( sqlite dbm )"
+RESTRICT="strip installsources"
+
+DEPEND=">=dev-ml/lwt-2.3.0[react,ssl]
+ zlib? ( >=dev-ml/camlzip-1.03-r1 )
+ dev-ml/cryptokit
+ >=dev-ml/ocamlnet-2.2.9
+ >=dev-ml/pcre-ocaml-6.0.1
+ >=dev-ml/tyxml-2.1
+ >=dev-lang/ocaml-3.12[ocamlopt?]
+ dbm? ( || ( dev-ml/camldbm >=dev-lang/ocaml-3.12[gdbm] ) )
+ sqlite? ( dev-ml/ocaml-sqlite3 )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup ocsigenserver
+ enewuser ocsigenserver -1 -1 /var/www ocsigenserver
+}
+
+src_configure() {
+ sh configure \
+ --prefix /usr \
+ --temproot "${ED}" \
+ --bindir /usr/bin \
+ --docdir /usr/share/doc/${PF} \
+ --mandir /usr/share/man/man1 \
+ --libdir /usr/$(get_libdir)/ocaml \
+ $(use_enable debug) \
+ $(use_with zlib camlzip) \
+ $(use_with sqlite) \
+ $(use_with dbm) \
+ --ocsigen-group ocsigenserver \
+ --ocsigen-user ocsigenserver \
+ --name ocsigenserver \
+ || die "Error : configure failed!"
+}
+
+src_compile() {
+ if use ocamlopt; then
+ emake
+ else
+ emake byte
+ fi
+ use doc && emake doc
+}
+
+src_install() {
+ findlib_src_preinst
+ if use ocamlopt; then
+ emake install
+ else
+ emake install.byte
+ fi
+ if use doc ; then
+ emake install.doc
+ fi
+ emake logrotate
+
+ newinitd "${FILESDIR}"/ocsigenserver.initd ocsigenserver || die
+ newconfd "${FILESDIR}"/ocsigenserver.confd ocsigenserver || die
+
+ dodoc README
+}