]> Pileus Git - ~andy/sunrise/commitdiff
www-misc/opa: New Ebuild or bug 375415 thanks to chithead for review and help
authorMarin Mikael (Mikiael) <mikiael@gmx.fr>
Sun, 17 Jul 2011 15:22:20 +0000 (15:22 +0000)
committerMarin Mikael (Mikiael) <mikiael@gmx.fr>
Sun, 17 Jul 2011 15:22:20 +0000 (15:22 +0000)
svn path=/sunrise/; revision=12233

www-misc/opa/ChangeLog [new file with mode: 0644]
www-misc/opa/Manifest [new file with mode: 0644]
www-misc/opa/files/allow_32bits_arch.patch [new file with mode: 0644]
www-misc/opa/files/site_lib_fix.patch [new file with mode: 0644]
www-misc/opa/metadata.xml [new file with mode: 0644]
www-misc/opa/opa-9999.ebuild [new file with mode: 0644]

diff --git a/www-misc/opa/ChangeLog b/www-misc/opa/ChangeLog
new file mode 100644 (file)
index 0000000..5c5a952
--- /dev/null
@@ -0,0 +1,9 @@
+# ChangeLog for www-misc/opa
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  17 Jul 2011; Marin Mikael (Mikiael) <mikiael@gmx.fr>
+  +files/allow_32bits_arch.patch, +opa-9999.ebuild,
+  +files/site_lib_fix.patch, +metadata.xml:
+  New Ebuild or bug 375415 thanks to chithead for review and help
+
diff --git a/www-misc/opa/Manifest b/www-misc/opa/Manifest
new file mode 100644 (file)
index 0000000..c92faf0
--- /dev/null
@@ -0,0 +1,5 @@
+AUX allow_32bits_arch.patch 596 RMD160 5e2c0ffde02989bdfbba98b8f5cce3ac43641b06 SHA1 485414d1b7f48989a44b2b772e36b2089c2658ab SHA256 24ac86362a7e435fda9680385e023148005790fc013168fa08a1ee5cf0f37e59
+AUX site_lib_fix.patch 643 RMD160 772caf6b9ad8dc87a7e3ffec9301dae1d8eeb868 SHA1 213dd439377e8568ad60201b2767c9eb70afe3a8 SHA256 49d76291c77ef3d237eaeb55128e8ac922db7a65497de96af905308e70c5cf6b
+EBUILD opa-9999.ebuild 845 RMD160 ae65c94b92b4ac0d8ac9ffc39f31e25cae9e9248 SHA1 4588f32002e1907b6f627daf956859bdd3bec3fc SHA256 36a9617d9f0f144b43bb2ef7d2c8eeb98dae54d77cb3009e97f55aafaa77ec6b
+MISC ChangeLog 331 RMD160 a60959f62af484244c88d51f73abcdfccc80d1c1 SHA1 9409a2d62cd9eb2fcb20dfd868028068f3354a6a SHA256 557374b13f9259bb8a2874312b2aca7f877b3e2c05b34975868729f23d31c5cf
+MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f
diff --git a/www-misc/opa/files/allow_32bits_arch.patch b/www-misc/opa/files/allow_32bits_arch.patch
new file mode 100644 (file)
index 0000000..7cce667
--- /dev/null
@@ -0,0 +1,18 @@
+diff -ur opalang.orig//configure opalang//configure
+--- opalang.orig//configure    2011-07-17 02:05:45.000000000 +0200
++++ opalang//configure 2011-07-17 02:06:00.000000000 +0200
+@@ -226,14 +226,6 @@
+         echo "Your ocaml installation seems broken, please fix it"
+         false
+     fi >&2
+-    if RET=$(_build/test.native); then
+-        echo-ok $RET
+-    else
+-        R=$?
+-        echo-err $RET
+-        echo "Your ocaml seems to be a 32bit version. Please install a native 64 bit package."
+-        false
+-    fi >&2
+     rm -rf /tmp/${DIR#/tmp/}
+     trap - EXIT
+     cd "$OPA_SOURCE_DIR"
diff --git a/www-misc/opa/files/site_lib_fix.patch b/www-misc/opa/files/site_lib_fix.patch
new file mode 100644 (file)
index 0000000..33f0737
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ur opalang.orig//qml2ocaml/qml2ocamlOptions.ml opalang.new//qml2ocaml/qml2ocamlOptions.ml
+--- opalang.orig//qml2ocaml/qml2ocamlOptions.ml        2011-07-17 02:02:00.000000000 +0200
++++ opalang//qml2ocaml/qml2ocamlOptions.ml     2011-07-17 14:38:56.000000000 +0200
+@@ -52,7 +52,7 @@
+      Absolute path for include directory, will be passed with the option -I to the ocaml compiler.
+   *)
+   let server_include_dir = [
+-    "+zip" ; "+site-lib/zip" ; "+site-lib/camlzip" ;
++    "+zip" ; "+site-lib/zip" ; "+camlzip" ; "+site-lib/camlzip" ;
+     "+ssl" ; "+site-lib/ssl" ;
+     "+cryptokit"; "+site-lib/cryptokit" ;
+     "+ulex" ; "+site-lib/ulex" ;
diff --git a/www-misc/opa/metadata.xml b/www-misc/opa/metadata.xml
new file mode 100644 (file)
index 0000000..e6233b5
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/www-misc/opa/opa-9999.ebuild b/www-misc/opa/opa-9999.ebuild
new file mode 100644 (file)
index 0000000..1f41470
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit git-2 eutils
+
+DESCRIPTION="Open source programming language for web application development"
+HOMEPAGE="http://opalang.org/"
+EGIT_REPO_URI="https://github.com/MLstate/opalang.git"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+DEPEND="
+       >=dev-lang/ocaml-3.12
+       dev-ml/camlidl
+       dev-ml/ocaml-ssl
+       dev-ml/cryptokit[ocamlopt]
+       dev-ml/camlzip[ocamlopt]
+       dev-ml/ocamlgraph[ocamlopt]
+       dev-ml/ulex[ocamlopt]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       epatch "${FILESDIR}/allow_32bits_arch.patch"
+       epatch "${FILESDIR}/site_lib_fix.patch"
+}
+
+src_configure() {
+       # econf can't be used there: configure doesn't accept "--prefix=..."
+       # it only accepts "-prefix ..."
+       ./configure -prefix /usr || die "Failed to configure Opa"
+}