summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-04-30 15:34:48 +0200
committerAlexis Ballier <aballier@gentoo.org>2016-04-30 16:18:10 +0200
commitbfb6a1a824cef6e72ab9ccfff5f6fcc5d6b0625c (patch)
tree73ac22bf394708a78399d3a75b670d57adf1dcc1 /dev-ml
parentdev-ml/labltk: bump to 8.06.1 (diff)
downloadgentoo-bfb6a1a824cef6e72ab9ccfff5f6fcc5d6b0625c.tar.gz
gentoo-bfb6a1a824cef6e72ab9ccfff5f6fcc5d6b0625c.tar.bz2
gentoo-bfb6a1a824cef6e72ab9ccfff5f6fcc5d6b0625c.zip
dev-ml/lablgtk: bump to 2.18.4
Package-Manager: portage-2.2.28 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/lablgtk/Manifest1
-rw-r--r--dev-ml/lablgtk/lablgtk-2.18.4.ebuild83
2 files changed, 84 insertions, 0 deletions
diff --git a/dev-ml/lablgtk/Manifest b/dev-ml/lablgtk/Manifest
index 40e643c86b57..1660fe8597b9 100644
--- a/dev-ml/lablgtk/Manifest
+++ b/dev-ml/lablgtk/Manifest
@@ -1,3 +1,4 @@
DIST lablgtk-2.18.0.tar.gz 789507 SHA256 c76a7ae9454e89365666cf19728dbb51edb6810e2e57032b3bebd53ccec5946e SHA512 5bb8eb753c928b4a7771e33a2f821dbc76fa64ce35df509884d11ce57efde90ceceb2fe94a57311f13c5106956f24d0fae581134a1a43c0645ff41c66fbd5461 WHIRLPOOL e4b17de89f6e4a41b385cd0c06fdecb9943a5f675bf5a168ade20f421b66901d307430d0789018972c889491be7c9a06dc2a38ccb3e5eef2e8f1ad8663ae4e94
DIST lablgtk-2.18.2.tar.gz 787674 SHA256 deedce9f934821196f9a4d0fc85cad12f59ec82298b908d12cf76cb015d13939 SHA512 799ee287a0088c1b532708191c2b5939287fdc9cfdca6483a60b51184be7fcf4f075cb502295aef2ce41d244b65aedaa9e18ccdb21857a36166b61aae7866406 WHIRLPOOL 0da1762455a46712b3b9c88634da2ee1bfa4c1a42a24620af4043c1c48afec13ba67d61b0d8f6e756e2128a8a1163d307ec3edaa99c94218fb88a0f490b5d24c
DIST lablgtk-2.18.3.tar.gz 788177 SHA256 975bebf2f9ca74dc3bf7431ebb640ff6a924bb80c8ee5f4467c475a7e4b0cbaf SHA512 b455761cef742579449a46f98bf807732cc6b5384cbccf6d4eca940e351ccb5cbd464e0d81cda2884277b45a8f223838de44cb49878e2f602183c963cdb0defe WHIRLPOOL 4c6bfcdf8a4fdc7e27014bd9c553942d03caf4e25f420ee6018eeb19d20cb6a5a8c6bb00eabf7fda80abe6b9c727b2c5d64641d8f9036c943276406836c87c03
+DIST lablgtk-2.18.4.tar.gz 800059 SHA256 b316ae0b92e760c1ab0d1bdeaa0a3c2a6ab14face5a0fe2b93445be3a3d013c0 SHA512 8b400f6467929ee433541e9649bf0301be2c851c9bdbaf3f001fe2bf2e1ee755a6dbc541b8e0b571d567ee8c8a997323aeb731d6f73a54b1594977237ff76d25 WHIRLPOOL cec155ca6ae3e0829bde006f209110529697e856f758ed6aa7183f455dc58674a77cf8e9bab81ef7ce6d6f4511d7c49841a669fa53ec6eab2a22755ee7f99c9a
diff --git a/dev-ml/lablgtk/lablgtk-2.18.4.ebuild b/dev-ml/lablgtk/lablgtk-2.18.4.ebuild
new file mode 100644
index 000000000000..4994848a0c2b
--- /dev/null
+++ b/dev-ml/lablgtk/lablgtk-2.18.4.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/1602/${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:= <dev-lang/ocaml-4.02.0 )
+ "
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+SLOT="2/${PV}"
+KEYWORDS="~alpha ~amd64 ~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
+}