summaryrefslogtreecommitdiff
path: root/dev-ml/ocamlgraph
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ml/ocamlgraph
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ml/ocamlgraph')
-rw-r--r--dev-ml/ocamlgraph/Manifest7
-rw-r--r--dev-ml/ocamlgraph/files/ocamlgraph-1.8.6-installfindlib.patch38
-rw-r--r--dev-ml/ocamlgraph/files/ocamlgraph-1.8.7-test.patch19
-rw-r--r--dev-ml/ocamlgraph/metadata.xml11
-rw-r--r--dev-ml/ocamlgraph/ocamlgraph-1.8.7.ebuild62
5 files changed, 137 insertions, 0 deletions
diff --git a/dev-ml/ocamlgraph/Manifest b/dev-ml/ocamlgraph/Manifest
new file mode 100644
index 000000000000..74d06a757a28
--- /dev/null
+++ b/dev-ml/ocamlgraph/Manifest
@@ -0,0 +1,7 @@
+AUX ocamlgraph-1.8.6-installfindlib.patch 1383 SHA256 8124bd1b53b4dca99861b18629c7cf92e9907b49ca336d680f6838bb1a99f671 SHA512 a46ef5504a79dc33e25db45832411cb65dc1ca6b41fd572276595f29bc983a96f31b3efe969e82534c4cdbf98e37184d145e38cb9d43d5709c5b233af689ced4 WHIRLPOOL da85c6b4267001467776732022cee70dbdff8cd0d335e0352026736a05ce470a7eec804961732af4d1f029fc23360f9d7505c05b86b6f8c73c319189a758fea7
+AUX ocamlgraph-1.8.7-test.patch 594 SHA256 857832cc47056f086cc067b56a5ba950c8ccafb06d262ed92d43538167ed560d SHA512 795a28d8b9702ed8e55d4b001285320c179de77de4edcc260212536cea4bb1bf36c58158ff7975e9a9befc075f03a1a64e069bc2a74a2b7770913a19c52d0652 WHIRLPOOL 4227481f32bb4123e8a1e18548e917dc1b2e66bdd6d66479a6105a881ee8e3495995b522d00864235bfac29066b11224d3b01a1fe2b3d047df92c19aeaf2f969
+DIST ocamlgraph-1.8.7.tar.gz 272625 SHA256 df06ca06d25231bb8e162d6b853177cb7fc1565c8f1ec99ca051727d46c985a0 SHA512 27559293bf576ecc9cf49090e24905c50d00ebaeb444a3c917826f3cfe1e7ceab34b43e30f98634811b1688b675d8747b590b5bb103a720d099304f5031feb2e WHIRLPOOL 3b290012a97c96c75b1b63dec056c7afb6d7c1882fc61fd3a88b32397a2e871aa9e872950e6a6e7333450f3b46181df6e27f4fc3464e5c9a3776285a904d4727
+EBUILD ocamlgraph-1.8.7.ebuild 1381 SHA256 146a556ffeb083f0433c006ea892ebcb7a624bc549ffe838dd2f00ce1466cb0d SHA512 747ba63e80d2245f757597e0ac4163306413826111cf8567545613e702a934e52bed77f4ec78c89470fbc2847f51f0eff747c9e6fc17c1c62bf4a0642d467331 WHIRLPOOL 76e87a446d4d9e3a5831bc34519821aa5893835a9874facaa0eedde4f0f887929e2cb5d114795ff3036d784dff2fe18b72ad7364d7344db1830b0d094c400b8b
+MISC ChangeLog 3440 SHA256 fb49b3b0ead6f4ad27f386e85504f88d1dabc459306b35484f7da3a245a07cde SHA512 89d82a1ef133bd504b7d00bb8d4e65534987a635f3aedc3f8c66522f2b22f15138f0b3cee6d980caaa67f0606c878d18918a12304731a48116a955a4a2324f10 WHIRLPOOL 58bf4cfe3a4920151e9fd105e130145a716b89f708b06ac27332430e5e86f44f874637d0a737366c4a737c70a0a48d8e2633eb3d2ba47bbd39734a640957a977
+MISC ChangeLog-2015 2182 SHA256 b469574d03896dda0e823d6c77852274b49e73ca7b187f8f3b6b9b3bc96fde18 SHA512 31294abcf75b5bffaf5dcd58bbd35cf16dddbdac2a3a98389848f4f943a2a71e0f88e2f6d2dcafdeaf38ee02841ca614b0b0e297902598b91988f8a95e5d5f00 WHIRLPOOL 9fb525c357e268fd7a6afb0c6b29f55a3f2e0f3056697d4497fef3338a69d7d5f9b5dfdd43bccb93efa065cf0d2463914d0b32e8becc657bb51867c2e7901a8c
+MISC metadata.xml 344 SHA256 e6a49eeca17fcb9aec3606a815ee905fc559d4ae5ef72343a55f0e9d3da74a26 SHA512 dcd42727378202ac35190d58628eda36d432463304c09c4c6c9744587a71c74e72a4bd90aa0371a00efed18f0fba7bb3b290bd3c1444b52eeb9b77ecf6cea6c2 WHIRLPOOL 13c3304dd793ea2e1b0756400b07f3977cebdac8dc6e4e3999c5d70959ed209315b7d9d43bf10d28921765efc4a2398b7a0e1d3a51c018f0c2db1da4d4e9e5ab
diff --git a/dev-ml/ocamlgraph/files/ocamlgraph-1.8.6-installfindlib.patch b/dev-ml/ocamlgraph/files/ocamlgraph-1.8.6-installfindlib.patch
new file mode 100644
index 000000000000..cb980b6f19dc
--- /dev/null
+++ b/dev-ml/ocamlgraph/files/ocamlgraph-1.8.6-installfindlib.patch
@@ -0,0 +1,38 @@
+Index: ocamlgraph-1.8.6/Makefile.in
+===================================================================
+--- ocamlgraph-1.8.6.orig/Makefile.in
++++ ocamlgraph-1.8.6/Makefile.in
+@@ -421,21 +421,25 @@ ifdef DESTDIR
+ OCAMLFINDDEST := -destdir $(DESTDIR)
+ endif
+
++ifneq ($(WANT_OCAMLOPT),no)
++INSTALL_OPT=graph$(LIBEXT) graph.cmx $(CMXA)
++INSTALL_GTK_OPT=$(VIEWER_CMXLIB) $(VIEWER_CMXLIB:.cmx=.o) $(DGRAPH_CMXLIB) $(DGRAPH_CMXLIB:.cmx=.o) graph$(OBJEXT)
++endif
++
+ install-findlib: META
+ ifdef OCAMLFIND
+-ifeq (@LABLGNOMECANVAS@,yes)
++ifeq ($(WANT_GTK),yes)
+ $(OCAMLFIND) install $(OCAMLFINDDEST) ocamlgraph META \
+ $(SRCDIR)/*.mli $(VIEWER_DIR)/*.mli $(DGRAPH_DIR)/*.mli \
+- graph$(OBJEXT) graph$(LIBEXT) graph.cmx graph.cmo graph.cmi \
+- $(CMA) $(CMXA) \
+- $(VIEWER_CMXLIB) $(VIEWER_CMOLIB) $(VIEWER_CMILIB) \
+- $(VIEWER_CMXLIB:.cmx=.o) \
+- $(DGRAPH_CMXLIB) $(DGRAPH_CMOLIB) $(DGRAPH_CMILIB) \
+- $(DGRAPH_CMXLIB:.cmx=.o)
++ $(INSTALL_OPT) graph.cmo graph.cmi \
++ $(CMA) \
++ $(INSTALL_GTK_OPT) \
++ $(VIEWER_CMOLIB) $(VIEWER_CMILIB) \
++ $(DGRAPH_CMOLIB) $(DGRAPH_CMILIB)
+ else
+ $(OCAMLFIND) install $(OCAMLFINDDEST) ocamlgraph META \
+ $(SRCDIR)/*.mli $(VIEWER_DIR)/*.mli $(DGRAPH_DIR)/*.mli \
+- graph$(LIBEXT) graph.cmx graph.cmo graph.cmi $(CMA) $(CMXA)
++ $(INSTALL_OPT) graph.cmo graph.cmi $(CMA)
+ endif
+ endif
+
diff --git a/dev-ml/ocamlgraph/files/ocamlgraph-1.8.7-test.patch b/dev-ml/ocamlgraph/files/ocamlgraph-1.8.7-test.patch
new file mode 100644
index 000000000000..f0d370cfd94a
--- /dev/null
+++ b/dev-ml/ocamlgraph/files/ocamlgraph-1.8.7-test.patch
@@ -0,0 +1,19 @@
+commit 726e8d6e31224eb70f75655579da9a374e910b98
+Author: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
+Date: Mon Feb 13 08:41:58 2017 +0100
+
+ fixed 'make check'
+
+diff --git a/Makefile.in b/Makefile.in
+index 58b9e9c..9ce40df 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -360,7 +360,7 @@ bin/testunix.opt: $(CMXA) myTest/testunix.ml
+ $(OCAMLOPT) -unsafe -inline 100 -o $@ unix.cmxa $^
+
+ check: $(CMA) tests/check.ml bin/test-ts
+- ocaml $(CMA) tests/test_clique.ml tests/check.ml
++ ocaml -I . $(CMA) tests/test_clique.ml tests/check.ml
+ bin/test-ts 10
+
+ # Additional rules
diff --git a/dev-ml/ocamlgraph/metadata.xml b/dev-ml/ocamlgraph/metadata.xml
new file mode 100644
index 000000000000..3c1a3a18d2d6
--- /dev/null
+++ b/dev-ml/ocamlgraph/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="github">backtracking/ocamlgraph</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ml/ocamlgraph/ocamlgraph-1.8.7.ebuild b/dev-ml/ocamlgraph/ocamlgraph-1.8.7.ebuild
new file mode 100644
index 000000000000..09d0810bef2b
--- /dev/null
+++ b/dev-ml/ocamlgraph/ocamlgraph-1.8.7.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit findlib eutils
+
+DESCRIPTION="O'Caml Graph library"
+HOMEPAGE="http://ocamlgraph.lri.fr/index.en.html"
+SRC_URI="http://ocamlgraph.lri.fr/download/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ppc x86"
+RDEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt?]
+ gtk? ( dev-ml/lablgtk:=[gnomecanvas,ocamlopt?] )"
+DEPEND="${RDEPEND}
+ doc? ( dev-tex/hevea dev-ml/ocamlweb )"
+IUSE="doc examples gtk +ocamlopt"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.8.6-installfindlib.patch"
+ epatch "${FILESDIR}/${P}-test.patch"
+}
+
+src_compile() {
+ emake byte
+ use ocamlopt && emake opt
+
+ if use doc; then
+ emake doc
+ fi
+
+ if use gtk; then
+ emake OCAMLBEST=$(usex ocamlopt opt byte) viewer dgraph editor
+ fi
+}
+
+src_install() {
+ findlib_src_preinst
+ use ocamlopt || export WANT_OCAMLOPT=no
+ use gtk && export WANT_GTK=yes
+ emake install-findlib
+
+ if use gtk ; then
+ local ext=byte
+ use ocamlopt && ext=opt
+ newbin dgraph/dgraph.${ext} ${PN}-dgraph
+ newbin editor/editor.${ext} ${PN}-editor
+ newbin view_graph/viewgraph.${ext} ${PN}-viewgraph
+ fi
+
+ dodoc README.adoc CREDITS FAQ CHANGES
+ if use doc; then
+ dohtml doc/*
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}