Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ml/lablgtk: ChangeLog lablgtk-2.16.0.ebuild
Date: Fri, 24 Aug 2012 13:39:43
Message-Id: 20120824133929.2E0A32059F@flycatcher.gentoo.org
1 aballier 12/08/24 13:39:29
2
3 Modified: ChangeLog
4 Added: lablgtk-2.16.0.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha122/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.97 dev-ml/lablgtk/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgtk/ChangeLog?rev=1.97&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgtk/ChangeLog?rev=1.97&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgtk/ChangeLog?r1=1.96&r2=1.97
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v
20 retrieving revision 1.96
21 retrieving revision 1.97
22 diff -u -r1.96 -r1.97
23 --- ChangeLog 3 Aug 2012 22:43:29 -0000 1.96
24 +++ ChangeLog 24 Aug 2012 13:39:28 -0000 1.97
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ml/lablgtk
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v 1.96 2012/08/03 22:43:29 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v 1.97 2012/08/24 13:39:28 aballier Exp $
30 +
31 +*lablgtk-2.16.0 (24 Aug 2012)
32 +
33 + 24 Aug 2012; Alexis Ballier <aballier@g.o> +lablgtk-2.16.0.ebuild:
34 + version bump
35
36 03 Aug 2012; Alexis Ballier <aballier@g.o> lablgtk-2.14.2.ebuild:
37 as-is license only applies to examples, make it conditional in LICENSE
38
39
40
41 1.1 dev-ml/lablgtk/lablgtk-2.16.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgtk/lablgtk-2.16.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgtk/lablgtk-2.16.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lablgtk-2.16.0.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-2.16.0.ebuild,v 1.1 2012/08/24 13:39:28 aballier Exp $
51
52 EAPI="2"
53
54 inherit multilib findlib
55
56 IUSE="debug examples glade gnome gnomecanvas sourceview +ocamlopt opengl spell svg"
57
58 DESCRIPTION="Objective CAML interface for Gtk+2"
59 HOMEPAGE="http://lablgtk.forge.ocamlcore.org/"
60 SRC_URI="http://forge.ocamlcore.org/frs/download.php/979/${P}.tar.gz"
61 LICENSE="LGPL-2.1-with-linking-exception examples? ( as-is )"
62
63 RDEPEND=">=x11-libs/gtk+-2.10:2
64 >=dev-lang/ocaml-3.10[ocamlopt?]
65 svg? ( >=gnome-base/librsvg-2.2:2 )
66 glade? ( >=gnome-base/libglade-2.0.1 )
67 gnomecanvas? ( >=gnome-base/libgnomecanvas-2.2 )
68 gnome? (
69 || ( >=gnome-base/gnome-panel-2.32[bonobo] <gnome-base/gnome-panel-2.32 )
70 >=gnome-base/gnome-panel-2.4.0
71 >=gnome-base/libgnomeui-2.4.0
72 )
73 opengl? ( >=dev-ml/lablgl-0.98
74 >=x11-libs/gtkglarea-1.9:2 )
75 spell? ( app-text/gtkspell:2 )
76 sourceview? ( x11-libs/gtksourceview:2.0 )
77 "
78 DEPEND="${RDEPEND}
79 virtual/pkgconfig"
80
81 SLOT="2"
82 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd ~x86-linux"
83
84 src_configure() {
85 econf $(use_enable debug) \
86 $(use_with svg rsvg) \
87 $(use_with glade) \
88 $(use_with gnome gnomeui) \
89 $(use_with gnome panel) \
90 $(use_with opengl gl) \
91 $(use_with spell gtkspell) \
92 --without-gtksourceview \
93 $(use_with sourceview gtksourceview2) \
94 $(use_with gnomecanvas)
95 }
96
97 src_compile() {
98 emake -j1 all || die "make failed"
99 if use ocamlopt; then
100 emake -j1 opt || die "Compiling native code failed"
101 fi
102 }
103
104 install_examples() {
105 insinto /usr/share/doc/${P}/examples
106 doins examples/*.ml examples/*.rgb examples/*.png examples/*.xpm
107
108 # Install examples for optional components
109 use gnomecanvas && insinto /usr/share/doc/${PF}/examples/canvas && doins examples/canvas/*.ml examples/canvas/*.png
110 use svg && insinto /usr/share/doc/${PF}/examples/rsvg && doins examples/rsvg/*.ml examples/rsvg/*.svg
111 use glade && insinto /usr/share/doc/${PF}/examples/glade && doins examples/glade/*.ml examples/glade/*.glade*
112 use sourceview && insinto /usr/share/doc/${PF}/examples/sourceview && doins examples/sourceview/*.ml examples/sourceview/*.lang
113 use opengl && insinto /usr/share/doc/${PF}/examples/GL && doins examples/GL/*.ml
114 use gnome && insinto /usr/share/doc/${PF}/examples/panel && doins examples/panel/*
115 }
116
117 src_install () {
118 findlib_src_preinst
119 export OCAMLPATH="${OCAMLFIND_DESTDIR}"
120 emake install DESTDIR="${D}" || die
121
122 dodoc CHANGES README CHANGES.API
123 use examples && install_examples
124 }
125
126 pkg_postinst () {
127 if use examples; then
128 elog "To run the examples you can use the lablgtk2 toplevel."
129 elog "e.g: lablgtk2 /usr/share/doc/${PF}/examples/testgtk.ml"
130 fi
131 }