Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: dev-libs/libpeas/
Date: Sun, 08 Apr 2012 16:41:46
Message-Id: 1333903185.44d6ec38bf33a573cf4b4d9f5ec825f1b2d163e2.tetromino@gentoo
1 commit: 44d6ec38bf33a573cf4b4d9f5ec825f1b2d163e2
2 Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 8 16:31:09 2012 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Sun Apr 8 16:39:45 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=44d6ec38
7
8 dev-libs/libpeas: 1.3.0 → 1.4.0 + properly deal with .pyo/.pyc files
9
10 ---
11 .../{libpeas-1.3.0.ebuild => libpeas-1.4.0.ebuild} | 30 +++++++++++++++++--
12 dev-libs/libpeas/libpeas-9999.ebuild | 19 +++++++++++-
13 2 files changed, 43 insertions(+), 6 deletions(-)
14
15 diff --git a/dev-libs/libpeas/libpeas-1.3.0.ebuild b/dev-libs/libpeas/libpeas-1.4.0.ebuild
16 similarity index 72%
17 rename from dev-libs/libpeas/libpeas-1.3.0.ebuild
18 rename to dev-libs/libpeas/libpeas-1.4.0.ebuild
19 index 112ce17..48251f2 100644
20 --- a/dev-libs/libpeas/libpeas-1.3.0.ebuild
21 +++ b/dev-libs/libpeas/libpeas-1.4.0.ebuild
22 @@ -1,13 +1,16 @@
23 -# Copyright 1999-2011 Gentoo Foundation
24 +# Copyright 1999-2012 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpeas/libpeas-1.2.0-r1.ebuild,v 1.2 2011/12/01 17:31:42 darkside Exp $
27 +# $Header: $
28
29 EAPI="4"
30 GCONF_DEBUG="no"
31 GNOME2_LA_PUNT="yes"
32 PYTHON_DEPEND="python? 2:2.5"
33
34 -inherit eutils gnome2 python virtualx
35 +inherit eutils gnome2 multilib python virtualx
36 +if [[ ${PV} = 9999 ]]; then
37 + inherit gnome2-live
38 +fi
39
40 DESCRIPTION="A GObject plugins library"
41 HOMEPAGE="http://www.gnome.org/"
42 @@ -15,7 +18,11 @@ HOMEPAGE="http://www.gnome.org/"
43 LICENSE="LGPL-2"
44 SLOT="0"
45 IUSE="doc gjs +gtk glade +python seed vala"
46 -KEYWORDS="~amd64 ~x86 ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
47 +if [[ ${PV} = 9999 ]]; then
48 + KEYWORDS=""
49 +else
50 + KEYWORDS="~amd64 ~x86 ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
51 +fi
52
53 RDEPEND=">=dev-libs/glib-2.31.2:2
54 >=dev-libs/gobject-introspection-0.10.1
55 @@ -50,6 +57,11 @@ pkg_setup() {
56 python_pkg_setup
57 }
58
59 +src_prepare() {
60 + use python && python_clean_py-compile_files
61 + gnome2_src_prepare
62 +}
63 +
64 src_test() {
65 # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme
66 # DO NOT REPORT UPSTREAM, this is not a libpeas bug.
67 @@ -59,3 +71,13 @@ src_test() {
68 # This should return True, it returns False for Xvfb
69 Xemake check
70 }
71 +
72 +pkg_postinst() {
73 + gnome2_pkg_postinst
74 + use python && python_mod_optimize /usr/$(get_libdir)/peas-demo
75 +}
76 +
77 +pkg_postrm() {
78 + gnome2_pkg_postrm
79 + use python && python_mod_cleanup /usr/$(get_libdir)/peas-demo
80 +}
81
82 diff --git a/dev-libs/libpeas/libpeas-9999.ebuild b/dev-libs/libpeas/libpeas-9999.ebuild
83 index da9276d..48251f2 100644
84 --- a/dev-libs/libpeas/libpeas-9999.ebuild
85 +++ b/dev-libs/libpeas/libpeas-9999.ebuild
86 @@ -1,4 +1,4 @@
87 -# Copyright 1999-2011 Gentoo Foundation
88 +# Copyright 1999-2012 Gentoo Foundation
89 # Distributed under the terms of the GNU General Public License v2
90 # $Header: $
91
92 @@ -7,7 +7,7 @@ GCONF_DEBUG="no"
93 GNOME2_LA_PUNT="yes"
94 PYTHON_DEPEND="python? 2:2.5"
95
96 -inherit gnome2 python virtualx
97 +inherit eutils gnome2 multilib python virtualx
98 if [[ ${PV} = 9999 ]]; then
99 inherit gnome2-live
100 fi
101 @@ -57,6 +57,11 @@ pkg_setup() {
102 python_pkg_setup
103 }
104
105 +src_prepare() {
106 + use python && python_clean_py-compile_files
107 + gnome2_src_prepare
108 +}
109 +
110 src_test() {
111 # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme
112 # DO NOT REPORT UPSTREAM, this is not a libpeas bug.
113 @@ -66,3 +71,13 @@ src_test() {
114 # This should return True, it returns False for Xvfb
115 Xemake check
116 }
117 +
118 +pkg_postinst() {
119 + gnome2_pkg_postinst
120 + use python && python_mod_optimize /usr/$(get_libdir)/peas-demo
121 +}
122 +
123 +pkg_postrm() {
124 + gnome2_pkg_postrm
125 + use python && python_mod_cleanup /usr/$(get_libdir)/peas-demo
126 +}