summaryrefslogtreecommitdiff
path: root/dev-ml/lablgtk
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/lablgtk
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ml/lablgtk')
-rw-r--r--dev-ml/lablgtk/Manifest5
-rw-r--r--dev-ml/lablgtk/lablgtk-2.18.5.ebuild82
-rw-r--r--dev-ml/lablgtk/metadata.xml13
3 files changed, 100 insertions, 0 deletions
diff --git a/dev-ml/lablgtk/Manifest b/dev-ml/lablgtk/Manifest
new file mode 100644
index 000000000000..23dedb3cf9d9
--- /dev/null
+++ b/dev-ml/lablgtk/Manifest
@@ -0,0 +1,5 @@
+DIST lablgtk-2.18.5.tar.gz 808005 SHA256 2bf251db21c077fdd26c035ea03edd8fe609187f908e520e87a8ffdd9c36d233 SHA512 7b6ba1a4dfa82cc3bbc502082ff4fccc23cc06ee4f30d01a2e423f3f99e945a4befe450d230b5aa19c5b810e9f46f2838655099d49da2db7c8a2e52eac213024 WHIRLPOOL 009e1fd2a048f6833ac1d745b5fee5d618b9729fa8c73d29f7bd67b6bd5f8a9b81c361ceb69626afe6a3a09b84b98ccbf0a19e9add0329a50a8ebfbcfdaf7b85
+EBUILD lablgtk-2.18.5.ebuild 2503 SHA256 fd5d40a3d12cea2537b04ab992a3359936c61c8fc6d7c228be171134680410ae SHA512 70925cc5f13be37fb907c8d3e12e6c44bfad72cdb088892120f971892b44f0f59f5355c5b443b57e1c95ebe04cc76ca68048c2fc55eedbb2b7bdfdbbc407ed14 WHIRLPOOL 3501fc59cdccbcebf6a66cfef74cab6a9bb968e35c024b74fe04079cc325fc3f63facc51955a78dd1162b065cdc14d8e3c2e6bc838e98807b40a265ed13dfc2e
+MISC ChangeLog 7193 SHA256 f49abfe4e72e2c016c321d4b29c10382f442929fff2e306a1b777edd6e71048c SHA512 67a98cca32c5262a3ca090d1bfe49f3305a4bf543aa1c7d96439997357f0682406fab58d392e57b075b7622a8ba62ce0585e541246e697030eec977ad33d6410 WHIRLPOOL e9b85511a5a5eddd5f61fa2b744f6f63f207ac684d184bd0306e02c9e4327987999bc589cd90ed45ea910ae306f8280a598f90f3f5a6e9534b1b163f557d6345
+MISC ChangeLog-2015 15365 SHA256 08152f0579d9da0966bd4ccb42017b8df552a4c32d56346eb695feb6fcf813ae SHA512 b3d6f317a6e47d82c1d3497faa3371cd8070660d9933bd770a1a48e127a5f5d02096fadd116fd617bc6729faaaeea91850afe36a57d3facc1ef74ae914c93c7b WHIRLPOOL c42aba32b05505d855a6c2d30a6771c609a4dd19c26b722ded298fd4d0201ccea282ee52fba595e1836d6b588ff4ff7210006dee16e4aef9a39e2161273860a1
+MISC metadata.xml 461 SHA256 4b9412ff063931198bcde9856e54fe085734a37747c856a8239f99f6f7837afd SHA512 4401c55a7286fcfac919ac0bcec77d590641c79826eaf126a7df338e1a3d19e38d930eb8b0bb1716f9b5bedea0bd54961dea34fb3133b9bd4f621138cfedf78d WHIRLPOOL ec5d047c0cf5a59a7a86c52f9720bf67690d4e3a77a508068128d1a7c3e16702f5e1d5569e29c5b92df57ebe53042897c176bcb1031125e42b98855bf05d4111
diff --git a/dev-ml/lablgtk/lablgtk-2.18.5.ebuild b/dev-ml/lablgtk/lablgtk-2.18.5.ebuild
new file mode 100644
index 000000000000..2fb8b47ff861
--- /dev/null
+++ b/dev-ml/lablgtk/lablgtk-2.18.5.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multilib findlib
+
+IUSE="debug examples glade gnomecanvas sourceview +ocamlopt opengl spell svg"
+
+DESCRIPTION="Objective CAML interface for Gtk+2"
+HOMEPAGE="http://lablgtk.forge.ocamlcore.org/"
+SRC_URI="https://forge.ocamlcore.org/frs/download.php/1627/${P}.tar.gz"
+LICENSE="LGPL-2.1-with-linking-exception examples? ( lablgtk-examples )"
+
+RDEPEND=">=x11-libs/gtk+-2.10:2
+ >=dev-lang/ocaml-3.10:=[ocamlopt?]
+ svg? ( >=gnome-base/librsvg-2.2:2 )
+ glade? ( >=gnome-base/libglade-2.0.1 )
+ gnomecanvas? ( >=gnome-base/libgnomecanvas-2.2 )
+ opengl? ( >=dev-ml/lablgl-0.98:=
+ >=x11-libs/gtkglarea-1.9:2 )
+ spell? ( app-text/gtkspell:2 )
+ sourceview? ( x11-libs/gtksourceview:2.0 )
+ dev-ml/camlp4:=
+ "
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+SLOT="2/${PV}"
+KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+
+src_configure() {
+ econf $(use_enable debug) \
+ $(use_with svg rsvg) \
+ $(use_with glade) \
+ --without-gnomeui \
+ --without-panel \
+ $(use_with opengl gl) \
+ $(use_with spell gtkspell) \
+ --without-gtksourceview \
+ $(use_with sourceview gtksourceview2) \
+ $(use_with gnomecanvas)
+}
+
+src_compile() {
+ emake -j1 all
+ if use ocamlopt; then
+ emake -j1 opt
+ fi
+}
+
+install_examples() {
+ insinto /usr/share/doc/${P}/examples
+ doins examples/*.ml examples/*.rgb examples/*.png examples/*.xpm
+
+ # Install examples for optional components
+ use gnomecanvas && insinto /usr/share/doc/${PF}/examples/canvas && doins examples/canvas/*.ml examples/canvas/*.png
+ use svg && insinto /usr/share/doc/${PF}/examples/rsvg && doins examples/rsvg/*.ml examples/rsvg/*.svg
+ use glade && insinto /usr/share/doc/${PF}/examples/glade && doins examples/glade/*.ml examples/glade/*.glade*
+ use sourceview && insinto /usr/share/doc/${PF}/examples/sourceview && doins examples/sourceview/*.ml examples/sourceview/*.lang
+ use opengl && insinto /usr/share/doc/${PF}/examples/GL && doins examples/GL/*.ml
+
+ docompress -x /usr/share/doc/${PF}/examples
+}
+
+src_install () {
+ findlib_src_preinst
+ export OCAMLPATH="${OCAMLFIND_DESTDIR}"
+ emake install DESTDIR="${D}"
+
+ rm -f "${ED}/usr/$(get_libdir)/ocaml/ld.conf"
+
+ dodoc CHANGES README CHANGES.API
+ use examples && install_examples
+}
+
+pkg_postinst () {
+ if use examples; then
+ elog "To run the examples you can use the lablgtk2 toplevel."
+ elog "e.g: lablgtk2 /usr/share/doc/${PF}/examples/testgtk.ml"
+ fi
+}
diff --git a/dev-ml/lablgtk/metadata.xml b/dev-ml/lablgtk/metadata.xml
new file mode 100644
index 000000000000..0775baadb151
--- /dev/null
+++ b/dev-ml/lablgtk/metadata.xml
@@ -0,0 +1,13 @@
+<?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>
+<use>
+ <flag name="glade">Enable libglade bindings compilation.</flag>
+ <flag name="gnomecanvas">Enable libgnomecanvas bindings compilation.</flag>
+ <flag name="sourceview">Enable GtkSourceView support</flag>
+</use>
+</pkgmetadata>