1 |
commit: 2c6987b8674a7b1d3e8e7475a6c9583abdb15eb0 |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 31 13:04:24 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 31 13:05:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c6987b8 |
7 |
|
8 |
dev-ml/lablgtk: revbump 2.18.8, EAPI-7, fix CI issue, restore KEYWORDS |
9 |
|
10 |
- bump EAPI-7, |
11 |
- drop findlib.eclass, |
12 |
- drop multilib.eclass, |
13 |
- fix DeprecatedInsinto CI issue, |
14 |
- restore KEYWORDS from lablgtk-2.18.5.ebuild, |
15 |
- rework 'examples' logic to obey small-files QA policy, |
16 |
- sort dependencies, |
17 |
- sort ebuild global variables to follow default skel, |
18 |
- sort IUSE, |
19 |
- use BDEPEND, |
20 |
- use DOCS array, |
21 |
- use econf array. |
22 |
|
23 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
24 |
|
25 |
dev-ml/lablgtk/lablgtk-2.18.8-r1.ebuild | 72 +++++++++++++++++++++++++++++++++ |
26 |
1 file changed, 72 insertions(+) |
27 |
|
28 |
diff --git a/dev-ml/lablgtk/lablgtk-2.18.8-r1.ebuild b/dev-ml/lablgtk/lablgtk-2.18.8-r1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..bed3712e2d4 |
31 |
--- /dev/null |
32 |
+++ b/dev-ml/lablgtk/lablgtk-2.18.8-r1.ebuild |
33 |
@@ -0,0 +1,72 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+DESCRIPTION="Objective CAML interface for Gtk+2" |
40 |
+HOMEPAGE="http://lablgtk.forge.ocamlcore.org" |
41 |
+SRC_URI="https://github.com/garrigue/lablgtk/releases/download/lablgtk2188/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="LGPL-2.1-with-linking-exception examples? ( lablgtk-examples )" |
44 |
+SLOT="2/${PV}" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
46 |
+IUSE="debug examples glade gnomecanvas +ocamlopt opengl sourceview spell svg" |
47 |
+ |
48 |
+DEPEND="dev-lang/ocaml:=[ocamlopt?] |
49 |
+ dev-ml/camlp4:= |
50 |
+ x11-libs/gtk+:2 |
51 |
+ glade? ( gnome-base/libglade ) |
52 |
+ gnomecanvas? ( gnome-base/libgnomecanvas ) |
53 |
+ opengl? ( |
54 |
+ dev-ml/lablgl:= |
55 |
+ x11-libs/gtkglarea:2 |
56 |
+ ) |
57 |
+ sourceview? ( x11-libs/gtksourceview:2.0 ) |
58 |
+ spell? ( app-text/gtkspell:2 ) |
59 |
+ svg? ( gnome-base/librsvg:2 )" |
60 |
+RDEPEND="${DEPEND}" |
61 |
+BDEPEND="dev-ml/findlib |
62 |
+ virtual/pkgconfig" |
63 |
+ |
64 |
+DOCS=( CHANGES README CHANGES.API ) |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local myeconfargs=( |
68 |
+ $(use_enable debug) |
69 |
+ $(use_with svg rsvg) |
70 |
+ $(use_with glade) |
71 |
+ --without-gnomeui |
72 |
+ --without-panel |
73 |
+ $(use_with opengl gl) |
74 |
+ $(use_with spell gtkspell) |
75 |
+ --without-gtksourceview |
76 |
+ $(use_with sourceview gtksourceview2) |
77 |
+ $(use_with gnomecanvas) |
78 |
+ ) |
79 |
+ |
80 |
+ econf "${myeconfargs[@]}" |
81 |
+} |
82 |
+ |
83 |
+src_compile() { |
84 |
+ # parallel build crashes |
85 |
+ emake -j1 all |
86 |
+ if use ocamlopt; then |
87 |
+ emake -j1 opt |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+src_install () { |
92 |
+ local destdir="$(ocamlfind printconf destdir || die)" |
93 |
+ dodir "${destdir}/stublibs" |
94 |
+ export OCAMLFIND_DESTDIR=${ED}"${destdir}" |
95 |
+ export OCAMLPATH="${ED}${destdir}" |
96 |
+ export OCAMLFIND_LDCONF=ignore |
97 |
+ |
98 |
+ default |
99 |
+ rm "${ED}/usr/$(get_libdir)/ocaml/ld.conf" || die |
100 |
+ |
101 |
+ if use examples; then |
102 |
+ dodoc -r examples/ |
103 |
+ docompress -x /usr/share/doc/${PF}/examples |
104 |
+ fi |
105 |
+} |