dev-ml/ocsigen-start: initial import; ebuild by me
authorAlexis Ballier <aballier@gentoo.org>
Mon, 12 Dec 2016 20:34:05 +0000 (21:34 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 13 Dec 2016 08:15:54 +0000 (09:15 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-ml/ocsigen-start/Manifest [new file with mode: 0644]
dev-ml/ocsigen-start/files/magick.patch [new file with mode: 0644]
dev-ml/ocsigen-start/metadata.xml [new file with mode: 0644]
dev-ml/ocsigen-start/ocsigen-start-0.99.ebuild [new file with mode: 0644]
dev-ml/ocsigen-start/ocsigen-start-9999.ebuild [new file with mode: 0644]

diff --git a/dev-ml/ocsigen-start/Manifest b/dev-ml/ocsigen-start/Manifest
new file mode 100644 (file)
index 0000000..3f3bb94
--- /dev/null
@@ -0,0 +1 @@
+DIST ocsigen-start-0.99.tar.gz 889806 SHA256 18670c3c80a482f7c66342c09f370ffacda8621417ec53eaf9c88bedd8be39e7 SHA512 2ba79409b714053900d747d9cd5a0860760c1c695299b85d3e79666c4c7921b23abd8625f358b6de18477f2ec21dd38080b10ce5f05bdf40373d405e0bb6d3fc WHIRLPOOL a059e7a1b01f87361a5850f819986640c914cd58fd10484d9dd02a3182af4204f1c544b1fc0dc6867bc7210822ed774caeec40a6f258174c0f7f9e24b0663c38
diff --git a/dev-ml/ocsigen-start/files/magick.patch b/dev-ml/ocsigen-start/files/magick.patch
new file mode 100644 (file)
index 0000000..ee4f068
--- /dev/null
@@ -0,0 +1,13 @@
+Index: ocsigen-start-9999/Makefile.options
+===================================================================
+--- ocsigen-start-9999.orig/Makefile.options
++++ ocsigen-start-9999/Makefile.options
+@@ -39,7 +39,7 @@ TEMPLATE_NAME      := os.pgocaml
+ 
+ # OCamlfind packages for the server
+ SERVER_PACKAGES    := lwt.ppx js_of_ocaml.deriving.ppx calendar safepass \
+-                      ocsigen-toolkit.server magick yojson
++                      ocsigen-toolkit.server libMagick yojson
+ 
+ SERVER_DB_PACKAGES := pgocaml pgocaml.syntax macaque.syntax calendar safepass
+ 
diff --git a/dev-ml/ocsigen-start/metadata.xml b/dev-ml/ocsigen-start/metadata.xml
new file mode 100644 (file)
index 0000000..ffac4d7
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+       <email>ml@gentoo.org</email>
+       <name>Gentoo ML Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-ml/ocsigen-start/ocsigen-start-0.99.ebuild b/dev-ml/ocsigen-start/ocsigen-start-0.99.ebuild
new file mode 100644 (file)
index 0000000..3439208
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit findlib eutils
+
+DESCRIPTION="Eliom Base Application with users, (pre)registration, notifications, etc."
+HOMEPAGE="https://github.com/ocsigen/ocsigen-start"
+
+LICENSE="LGPL-3"
+SLOT="0/${PV}"
+IUSE=""
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+       inherit git-r3
+       SRC_URI=""
+       EGIT_REPO_URI="https://github.com/ocsigen/ocsigen-start"
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/ocsigen/ocsigen-start/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+RDEPEND="dev-lang/ocaml:=
+       dev-ml/pgocaml:=
+       dev-ml/macaque:=
+       dev-ml/ocaml-safepass:=
+       dev-ml/eliom:=
+       dev-ml/ocsigen-toolkit:=
+       dev-ml/ppx_deriving:=
+       dev-ml/yojson:=
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       epatch "${FILESDIR}/magick.patch"
+}
+
+src_install() {
+       findlib_src_preinst
+       DESTDIR="${ED}" OCAMLPATH="${OCAMLFIND_DESTDIR}" emake install
+       dodoc README.md
+}
diff --git a/dev-ml/ocsigen-start/ocsigen-start-9999.ebuild b/dev-ml/ocsigen-start/ocsigen-start-9999.ebuild
new file mode 100644 (file)
index 0000000..3439208
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit findlib eutils
+
+DESCRIPTION="Eliom Base Application with users, (pre)registration, notifications, etc."
+HOMEPAGE="https://github.com/ocsigen/ocsigen-start"
+
+LICENSE="LGPL-3"
+SLOT="0/${PV}"
+IUSE=""
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+       inherit git-r3
+       SRC_URI=""
+       EGIT_REPO_URI="https://github.com/ocsigen/ocsigen-start"
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/ocsigen/ocsigen-start/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+RDEPEND="dev-lang/ocaml:=
+       dev-ml/pgocaml:=
+       dev-ml/macaque:=
+       dev-ml/ocaml-safepass:=
+       dev-ml/eliom:=
+       dev-ml/ocsigen-toolkit:=
+       dev-ml/ppx_deriving:=
+       dev-ml/yojson:=
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       epatch "${FILESDIR}/magick.patch"
+}
+
+src_install() {
+       findlib_src_preinst
+       DESTDIR="${ED}" OCAMLPATH="${OCAMLFIND_DESTDIR}" emake install
+       dodoc README.md
+}