1 |
commit: ff3acaa2f4221c7b32d010b368c8e8fd10be16c9 |
2 |
Author: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 26 21:39:01 2018 +0000 |
4 |
Commit: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 26 21:39:01 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=ff3acaa2 |
7 |
|
8 |
dev-libs/libpeas: bump |
9 |
|
10 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
11 |
Manifest-Sign-Key: 0x7DF238CF0AA182E1 |
12 |
|
13 |
dev-libs/libpeas/files/libpeas-1.14.0-lua.pc.patch | 18 +++++ |
14 |
dev-libs/libpeas/libpeas-1.22.0.ebuild | 84 ++++++++++++++++++++++ |
15 |
2 files changed, 102 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libpeas/files/libpeas-1.14.0-lua.pc.patch b/dev-libs/libpeas/files/libpeas-1.14.0-lua.pc.patch |
18 |
new file mode 100644 |
19 |
index 00000000..c46cbee2 |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/libpeas/files/libpeas-1.14.0-lua.pc.patch |
22 |
@@ -0,0 +1,18 @@ |
23 |
+Gentoo currently uses unversioned lua:0 - lua.pc instad of lua5.1.pc, /usr/bin/lua instead of /usr/bin/lua5.1 |
24 |
+ |
25 |
+diff --git a/configure.ac b/configure.ac |
26 |
+index 810a288..51ca607 100644 |
27 |
+--- a/configure.ac |
28 |
++++ b/configure.ac |
29 |
+@@ -305,9 +305,9 @@ else |
30 |
+ fi |
31 |
+ |
32 |
+ if test "x$found_lua51" != "xyes"; then |
33 |
+- PKG_CHECK_EXISTS([lua5.1 >= $LUA51_REQUIRED], [ |
34 |
++ PKG_CHECK_EXISTS([lua >= $LUA51_REQUIRED], [ |
35 |
+ found_lua51=yes |
36 |
+- with_lua51=lua5.1 |
37 |
++ with_lua51=lua |
38 |
+ ], [ |
39 |
+ found_lua51=no |
40 |
+ ]) |
41 |
|
42 |
diff --git a/dev-libs/libpeas/libpeas-1.22.0.ebuild b/dev-libs/libpeas/libpeas-1.22.0.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000..021c7d5e |
45 |
--- /dev/null |
46 |
+++ b/dev-libs/libpeas/libpeas-1.22.0.ebuild |
47 |
@@ -0,0 +1,84 @@ |
48 |
+# Copyright 1999-2018 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=6 |
52 |
+GNOME2_LA_PUNT="yes" |
53 |
+PYTHON_COMPAT=( python{3_4,3_5,3_6} ) |
54 |
+ |
55 |
+inherit autotools eutils gnome2 multilib python-single-r1 virtualx |
56 |
+ |
57 |
+DESCRIPTION="A GObject plugins library" |
58 |
+HOMEPAGE="https://developer.gnome.org/libpeas/stable/" |
59 |
+ |
60 |
+LICENSE="LGPL-2+" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
63 |
+ |
64 |
+IUSE="+gtk glade lua luajit +python" |
65 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
66 |
+ |
67 |
+RDEPEND=" |
68 |
+ >=dev-libs/glib-2.38:2 |
69 |
+ >=dev-libs/gobject-introspection-1.39:= |
70 |
+ glade? ( >=dev-util/glade-3.9.1:3.10 ) |
71 |
+ gtk? ( >=x11-libs/gtk+-3:3[introspection] ) |
72 |
+ lua? ( |
73 |
+ >=dev-lua/lgi-0.9.0 |
74 |
+ luajit? ( >=dev-lang/luajit-2:2 ) |
75 |
+ !luajit? ( =dev-lang/lua-5.1*:0 ) ) |
76 |
+ python? ( |
77 |
+ ${PYTHON_DEPS} |
78 |
+ >=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}] ) |
79 |
+" |
80 |
+DEPEND="${RDEPEND} |
81 |
+ >=dev-util/gtk-doc-am-1.11 |
82 |
+ >=dev-util/intltool-0.40 |
83 |
+ virtual/pkgconfig |
84 |
+ |
85 |
+ dev-libs/gobject-introspection-common |
86 |
+ gnome-base/gnome-common |
87 |
+" |
88 |
+# eautoreconf needs gobject-introspection-common, gnome-common |
89 |
+ |
90 |
+pkg_setup() { |
91 |
+ use python && python-single-r1_pkg_setup |
92 |
+} |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ # Gentoo uses unversioned lua - lua.pc instad of lua5.1.pc, /usr/bin/lua instead of /usr/bin/lua5.1 |
96 |
+ eapply "${FILESDIR}"/${PN}-1.14.0-lua.pc.patch |
97 |
+ eautoreconf |
98 |
+ gnome2_src_prepare |
99 |
+} |
100 |
+ |
101 |
+src_configure() { |
102 |
+ # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov |
103 |
+ # What do we do about gdb, valgrind, gcov, etc? |
104 |
+ local myconf=( |
105 |
+ $(use_enable glade glade-catalog) |
106 |
+ $(use_enable gtk) |
107 |
+ --disable-static |
108 |
+ |
109 |
+ # py2 not supported anymore |
110 |
+ --disable-python2 |
111 |
+ $(use_enable python python3) |
112 |
+ |
113 |
+ # lua |
114 |
+ $(use_enable lua lua5.1) |
115 |
+ $(use_enable $(usex luajit lua luajit) luajit) |
116 |
+ ) |
117 |
+ |
118 |
+ gnome2_src_configure "${myconf[@]}" |
119 |
+} |
120 |
+ |
121 |
+src_test() { |
122 |
+ # This looks fixed since 1.18.0: |
123 |
+ # |
124 |
+ # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme |
125 |
+ # DO NOT REPORT UPSTREAM, this is not a libpeas bug. |
126 |
+ # To reproduce: |
127 |
+ # >>> from gi.repository import Gtk |
128 |
+ # >>> Gtk.IconTheme.get_default().has_icon("gtk-about") |
129 |
+ # This should return True, it returns False for Xvfb |
130 |
+ virtx emake check |
131 |
+} |