summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-01-02 20:58:55 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-01-02 20:58:55 +0000
commitbb2c748ec94ae7ffa0184cc2fb8deaeec9b65e46 (patch)
tree678759b74339d5ae6d6ef51be7d7a1766d17a99d /dev-ml/lablgtk
parentAdd support to not build with ocamlopt (diff)
downloadgentoo-2-bb2c748ec94ae7ffa0184cc2fb8deaeec9b65e46.tar.gz
gentoo-2-bb2c748ec94ae7ffa0184cc2fb8deaeec9b65e46.tar.bz2
gentoo-2-bb2c748ec94ae7ffa0184cc2fb8deaeec9b65e46.zip
Install all examples, controlled by examples useflag, thanks to gmalecha@gmail.com, bug #203990
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'dev-ml/lablgtk')
-rw-r--r--dev-ml/lablgtk/ChangeLog6
-rw-r--r--dev-ml/lablgtk/lablgtk-2.10.0.ebuild20
2 files changed, 19 insertions, 7 deletions
diff --git a/dev-ml/lablgtk/ChangeLog b/dev-ml/lablgtk/ChangeLog
index fdea729d4d30..60c5ed8547a7 100644
--- a/dev-ml/lablgtk/ChangeLog
+++ b/dev-ml/lablgtk/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-ml/lablgtk
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v 1.55 2008/01/02 20:50:47 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v 1.56 2008/01/02 20:58:55 aballier Exp $
+
+ 02 Jan 2008; Alexis Ballier <aballier@gentoo.org> lablgtk-2.10.0.ebuild:
+ Install all examples, controlled by examples useflag, thanks to
+ gmalecha@gmail.com, bug #203990
02 Jan 2008; Alexis Ballier <aballier@gentoo.org> lablgtk-2.10.0.ebuild:
Add support to not build with ocamlopt
diff --git a/dev-ml/lablgtk/lablgtk-2.10.0.ebuild b/dev-ml/lablgtk/lablgtk-2.10.0.ebuild
index 48079bc97359..308284bdfc21 100644
--- a/dev-ml/lablgtk/lablgtk-2.10.0.ebuild
+++ b/dev-ml/lablgtk/lablgtk-2.10.0.ebuild
@@ -1,12 +1,12 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-2.10.0.ebuild,v 1.2 2008/01/02 20:50:47 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-2.10.0.ebuild,v 1.3 2008/01/02 20:58:55 aballier Exp $
inherit eutils multilib
EAPI="1"
-IUSE="debug doc glade gnome gnomecanvas sourceview +ocamlopt opengl spell svg"
+IUSE="debug examples glade gnome gnomecanvas sourceview +ocamlopt opengl spell svg"
DESCRIPTION="Objective CAML interface for Gtk+2"
HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html"
@@ -59,7 +59,15 @@ src_compile() {
install_examples() {
insinto /usr/share/doc/${P}/examples
- doins examples/*.ml examples/*.rgb
+ doins examples/*.ml examples/*.rgb examples/*.png examples/*.xpm
+
+ # Install examples for optional components
+ use gnomecanvas && insinto /usr/share/doc/${P}/examples/canvas && doins examples/canvas/*.ml examples/canvas/*.png
+ use svg && insinto /usr/share/doc/${P}/examples/rsvg && doins examples/rsvg/*.ml examples/rsvg/*.svg
+ use glade && insinto /usr/share/doc/${P}/examples/glade && doins examples/glade/*.ml examples/glade/*.glade*
+ use sourceview && insinto /usr/share/doc/${P}/examples/sourceview && doins examples/sourceview/*.ml examples/sourceview/*.lang
+ use opengl && insinto /usr/share/doc/${P}/examples/GL && doins examples/GL/*.ml
+ use gnome && insinto /usr/share/doc/${P}/examples/panel && doins examples/panel/*
}
src_install () {
@@ -71,10 +79,10 @@ src_install () {
doins META
dodoc CHANGES README CHANGES.API
- use doc && install_examples
+ use examples && install_examples
}
pkg_postinst () {
- use doc && elog "To run the examples you can use the lablgtk2 toplevel."
- use doc && elog "e.g: lablgtk2 /usr/share/doc/${P}/examples/testgtk.ml"
+ use examples && elog "To run the examples you can use the lablgtk2 toplevel."
+ use examples && elog "e.g: lablgtk2 /usr/share/doc/${P}/examples/testgtk.ml"
}