Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpeas/
Date: Mon, 17 Apr 2017 16:49:14
Message-Id: 1492447718.246a256bda535a88f8196e3069d4fedb3deb918b.soap@gentoo
1 commit: 246a256bda535a88f8196e3069d4fedb3deb918b
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 17 16:46:18 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 17 16:48:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=246a256b
7
8 dev-libs/libpeas: Port to python-single-r1
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11 Closes: https://github.com/gentoo/gentoo/pull/4434
12
13 dev-libs/libpeas/libpeas-1.20.0-r1.ebuild | 84 +++++++++++++++++++++++++++++++
14 1 file changed, 84 insertions(+)
15
16 diff --git a/dev-libs/libpeas/libpeas-1.20.0-r1.ebuild b/dev-libs/libpeas/libpeas-1.20.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..1a9c767f431
19 --- /dev/null
20 +++ b/dev-libs/libpeas/libpeas-1.20.0-r1.ebuild
21 @@ -0,0 +1,84 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +GNOME2_LA_PUNT="yes"
27 +PYTHON_COMPAT=( python{3_4,3_5} )
28 +
29 +inherit autotools eutils gnome2 multilib python-single-r1 virtualx
30 +
31 +DESCRIPTION="A GObject plugins library"
32 +HOMEPAGE="https://developer.gnome.org/libpeas/stable/"
33 +
34 +LICENSE="LGPL-2+"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
37 +
38 +IUSE="+gtk glade jit lua +python"
39 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
40 +
41 +RDEPEND="
42 + >=dev-libs/glib-2.38:2
43 + >=dev-libs/gobject-introspection-1.39:=
44 + glade? ( >=dev-util/glade-3.9.1:3.10 )
45 + gtk? ( >=x11-libs/gtk+-3:3[introspection] )
46 + lua? (
47 + >=dev-lua/lgi-0.9.0
48 + jit? ( >=dev-lang/luajit-2:2 )
49 + !jit? ( =dev-lang/lua-5.1*:0 ) )
50 + python? (
51 + ${PYTHON_DEPS}
52 + >=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}] )
53 +"
54 +DEPEND="${RDEPEND}
55 + >=dev-util/gtk-doc-am-1.11
56 + >=dev-util/intltool-0.40
57 + virtual/pkgconfig
58 +
59 + dev-libs/gobject-introspection-common
60 + gnome-base/gnome-common
61 +"
62 +# eautoreconf needs gobject-introspection-common, gnome-common
63 +
64 +pkg_setup() {
65 + use python && python-single-r1_pkg_setup
66 +}
67 +
68 +src_prepare() {
69 + # Gentoo uses unversioned lua - lua.pc instad of lua5.1.pc, /usr/bin/lua instead of /usr/bin/lua5.1
70 + eapply "${FILESDIR}"/${PN}-1.14.0-lua.pc.patch
71 + eautoreconf
72 + gnome2_src_prepare
73 +}
74 +
75 +src_configure() {
76 + # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov
77 + # What do we do about gdb, valgrind, gcov, etc?
78 + local myconf=(
79 + $(use_enable glade glade-catalog)
80 + $(use_enable gtk)
81 + --disable-static
82 +
83 + # py2 not supported anymore
84 + --disable-python2
85 + $(use_enable python python3)
86 +
87 + # lua
88 + $(use_enable lua lua5.1)
89 + $(use_enable $(usex jit lua jit) luajit)
90 + )
91 +
92 + gnome2_src_configure "${myconf[@]}"
93 +}
94 +
95 +src_test() {
96 + # This looks fixed since 1.18.0:
97 + #
98 + # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme
99 + # DO NOT REPORT UPSTREAM, this is not a libpeas bug.
100 + # To reproduce:
101 + # >>> from gi.repository import Gtk
102 + # >>> Gtk.IconTheme.get_default().has_icon("gtk-about")
103 + # This should return True, it returns False for Xvfb
104 + virtx emake check
105 +}