Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpeas/
Date: Tue, 01 Nov 2016 11:18:46
Message-Id: 1477999084.409b812e55575cf8d76d25d1a286d451609b13b1.eva@gentoo
1 commit: 409b812e55575cf8d76d25d1a286d451609b13b1
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 1 10:48:05 2016 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 1 11:18:04 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=409b812e
7
8 dev-libs/libpeas: version bump 1.18.0 → 1.20.0
9
10 Package-Manager: portage-2.3.2
11
12 dev-libs/libpeas/Manifest | 1 +
13 dev-libs/libpeas/libpeas-1.20.0.ebuild | 98 ++++++++++++++++++++++++++++++++++
14 2 files changed, 99 insertions(+)
15
16 diff --git a/dev-libs/libpeas/Manifest b/dev-libs/libpeas/Manifest
17 index ecce8f1..75da872 100644
18 --- a/dev-libs/libpeas/Manifest
19 +++ b/dev-libs/libpeas/Manifest
20 @@ -1,2 +1,3 @@
21 DIST libpeas-1.16.0.tar.xz 548972 SHA256 b093008ecd65f7d55c80517589509698ff15ad41f664b11a3eb88ff461b1454e SHA512 ae3024c8229222f8d683dd88d6f2aeb61e17b676e317e6d824b72e1fecce577f138625933afd7ad6627de961d2b95dcdd5a3593256f2acd05a15e0eede389c6e WHIRLPOOL 367f24916b3289e8e97c16e9367f94533a879945f72a1214d8a67fab070d30a33137768f0be173bd9151f6ea794297225231eade015c476da1ea88b09bc14d32
22 DIST libpeas-1.18.0.tar.xz 557028 SHA256 bf49842c64c36925bbc41d954de490b6ff7faa29b45f6fd9e91ddcc779165e26 SHA512 537402788519f3659a9ea9ea66de1bbbf365bb264335cefdfe808cd74e753c4d518b651d46ad170c7716ef38cbbc409dc8a87015bcd067f3fe025dea9c4b3ed6 WHIRLPOOL 1dc9516da2d552bf98cf1b0319e182d544b4e8e4b95707861ed42f61d50760af27609d693290794032f26e62a031d23d4a807c23b0fe69ad28ced28b5a62b7c7
23 +DIST libpeas-1.20.0.tar.xz 557872 SHA256 f392fffe2dc00072a51bb2a1b274224a06bdc5f9c3b3c0ac4816909e9933d354 SHA512 b3ddebf65e1a76493b5cd5150f60c13597c90398eea16c002e51d25449a595f7591bd0ccd1214ca3a8cbce724eb10f38a316e8c95092442034c048bc95cfdbf4 WHIRLPOOL 94e4bd69a13d07a0dbe3b959c7feed3bbe705767351fd9053f266c1120d5356f15b745fb57d357d5a56303afd40deec37033f575c047c28ffb748050f1a983e0
24
25 diff --git a/dev-libs/libpeas/libpeas-1.20.0.ebuild b/dev-libs/libpeas/libpeas-1.20.0.ebuild
26 new file mode 100644
27 index 00000000..d139a6c
28 --- /dev/null
29 +++ b/dev-libs/libpeas/libpeas-1.20.0.ebuild
30 @@ -0,0 +1,98 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +GNOME2_LA_PUNT="yes"
37 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
38 +
39 +inherit autotools eutils gnome2 multilib python-r1 virtualx
40 +
41 +DESCRIPTION="A GObject plugins library"
42 +HOMEPAGE="https://developer.gnome.org/libpeas/stable/"
43 +
44 +LICENSE="LGPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
47 +
48 +IUSE="+gtk glade jit lua +python"
49 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ?? ( $(python_gen_useflags 'python3*') ) )"
50 +
51 +RDEPEND="
52 + >=dev-libs/glib-2.38:2
53 + >=dev-libs/gobject-introspection-1.39:=
54 + glade? ( >=dev-util/glade-3.9.1:3.10 )
55 + gtk? ( >=x11-libs/gtk+-3:3[introspection] )
56 + lua? (
57 + >=dev-lua/lgi-0.9.0
58 + jit? ( >=dev-lang/luajit-2:2 )
59 + !jit? ( =dev-lang/lua-5.1*:0 ) )
60 + python? (
61 + ${PYTHON_DEPS}
62 + >=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}] )
63 +"
64 +DEPEND="${RDEPEND}
65 + >=dev-util/gtk-doc-am-1.11
66 + >=dev-util/intltool-0.40
67 + virtual/pkgconfig
68 +
69 + dev-libs/gobject-introspection-common
70 + gnome-base/gnome-common
71 +"
72 +# eautoreconf needs gobject-introspection-common, gnome-common
73 +
74 +src_prepare() {
75 + # Gentoo uses unversioned lua - lua.pc instad of lua5.1.pc, /usr/bin/lua instead of /usr/bin/lua5.1
76 + eapply "${FILESDIR}"/${PN}-1.14.0-lua.pc.patch
77 + eautoreconf
78 + gnome2_src_prepare
79 +}
80 +
81 +src_configure() {
82 + # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov
83 + # What do we do about gdb, valgrind, gcov, etc?
84 + local myconf=(
85 + $(use_enable glade glade-catalog)
86 + $(use_enable gtk)
87 + --disable-static
88 +
89 + # possibly overriden below
90 + --disable-python{2,3}
91 + --disable-lua5.1
92 + --disable-luajit
93 + )
94 +
95 + if use lua ; then
96 + if use jit ; then
97 + myconf+=( --enable-lua5.1 --enable-luajit )
98 + else
99 + myconf+=( --enable-lua5.1 )
100 + fi
101 + fi
102 +
103 + python_configure() {
104 + local v
105 + python_is_python3 && v=3 || v=2
106 + myconf+=(
107 + "--enable-python${v}"
108 + # it is just 'PYTHON' for py3 in the build system
109 + "PYTHON${v#3}=${PYTHON}"
110 + "PYTHON${v}_CONFIG=$(python_get_PYTHON_CONFIG)"
111 + )
112 + }
113 + use python && python_foreach_impl python_configure
114 +
115 + gnome2_src_configure "${myconf[@]}"
116 +}
117 +
118 +src_test() {
119 + # This looks fixed since 1.18.0:
120 + #
121 + # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme
122 + # DO NOT REPORT UPSTREAM, this is not a libpeas bug.
123 + # To reproduce:
124 + # >>> from gi.repository import Gtk
125 + # >>> Gtk.IconTheme.get_default().has_icon("gtk-about")
126 + # This should return True, it returns False for Xvfb
127 + virtx emake check
128 +}