/[gentoo-x86]/dev-ml/lablgtk/lablgtk-2.14.2.ebuild
Gentoo

Contents of /dev-ml/lablgtk/lablgtk-2.14.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations) (download)
Fri Aug 3 22:43:29 2012 UTC (2 years ago) by aballier
Branch: MAIN
Changes since 1.11: +2 -2 lines
as-is license only applies to examples, make it conditional in LICENSE

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 jdhore 1.10 # Copyright 1999-2012 Gentoo Foundation
2 aballier 1.1 # Distributed under the terms of the GNU General Public License v2
3 aballier 1.12 # $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-2.14.2.ebuild,v 1.11 2012/08/03 22:41:35 aballier Exp $
4 aballier 1.1
5     EAPI="2"
6    
7     inherit multilib
8    
9     IUSE="debug examples glade gnome gnomecanvas sourceview +ocamlopt opengl spell svg"
10    
11     DESCRIPTION="Objective CAML interface for Gtk+2"
12 aballier 1.8 HOMEPAGE="http://lablgtk.forge.ocamlcore.org/"
13 aballier 1.1 SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${P}.tar.gz"
14 aballier 1.12 LICENSE="LGPL-2.1-with-linking-exception examples? ( as-is )"
15 aballier 1.1
16 eva 1.7 RDEPEND=">=x11-libs/gtk+-2.10:2
17 aballier 1.1 >=dev-lang/ocaml-3.10[ocamlopt?]
18 eva 1.7 svg? ( >=gnome-base/librsvg-2.2:2 )
19 aballier 1.1 glade? ( >=gnome-base/libglade-2.0.1 )
20     gnomecanvas? ( >=gnome-base/libgnomecanvas-2.2 )
21 aballier 1.5 gnome? (
22     || ( >=gnome-base/gnome-panel-2.32[bonobo] <gnome-base/gnome-panel-2.32 )
23     >=gnome-base/gnome-panel-2.4.0
24     >=gnome-base/libgnomeui-2.4.0
25     )
26 aballier 1.1 opengl? ( >=dev-ml/lablgl-0.98
27 eva 1.7 >=x11-libs/gtkglarea-1.9:2 )
28 tetromino 1.9 spell? ( app-text/gtkspell:2 )
29 aballier 1.1 sourceview? ( x11-libs/gtksourceview:2.0 )
30     "
31     DEPEND="${RDEPEND}
32 jdhore 1.10 virtual/pkgconfig"
33 aballier 1.1
34     SLOT="2"
35 xarthisius 1.6 KEYWORDS="alpha amd64 ia64 ppc sparc x86 ~x86-fbsd ~x86-linux"
36 aballier 1.1
37     src_configure() {
38     econf $(use_enable debug) \
39     $(use_with svg rsvg) \
40     $(use_with glade) \
41     $(use_with gnome gnomeui) \
42     $(use_with gnome panel) \
43     $(use_with opengl gl) \
44     $(use_with spell gtkspell) \
45     --without-gtksourceview \
46     $(use_with sourceview gtksourceview2) \
47     $(use_with gnomecanvas)
48     }
49    
50     src_compile() {
51     emake -j1 all || die "make failed"
52     if use ocamlopt; then
53     emake -j1 opt || die "Compiling native code failed"
54     fi
55     }
56    
57     install_examples() {
58     insinto /usr/share/doc/${P}/examples
59     doins examples/*.ml examples/*.rgb examples/*.png examples/*.xpm
60    
61     # Install examples for optional components
62     use gnomecanvas && insinto /usr/share/doc/${P}/examples/canvas && doins examples/canvas/*.ml examples/canvas/*.png
63     use svg && insinto /usr/share/doc/${P}/examples/rsvg && doins examples/rsvg/*.ml examples/rsvg/*.svg
64     use glade && insinto /usr/share/doc/${P}/examples/glade && doins examples/glade/*.ml examples/glade/*.glade*
65     use sourceview && insinto /usr/share/doc/${P}/examples/sourceview && doins examples/sourceview/*.ml examples/sourceview/*.lang
66     use opengl && insinto /usr/share/doc/${P}/examples/GL && doins examples/GL/*.ml
67     use gnome && insinto /usr/share/doc/${P}/examples/panel && doins examples/panel/*
68     }
69    
70     src_install () {
71     emake install DESTDIR="${D}" || die
72    
73     # ocamlfind support
74     insinto /usr/$(get_libdir)/ocaml/lablgtk2
75     doins META
76    
77     dodoc CHANGES README CHANGES.API
78     use examples && install_examples
79     }
80    
81     pkg_postinst () {
82     use examples && elog "To run the examples you can use the lablgtk2 toplevel."
83     use examples && elog "e.g: lablgtk2 /usr/share/doc/${P}/examples/testgtk.ml"
84     }

  ViewVC Help
Powered by ViewVC 1.1.20