From: "Gilles Dartiguelongue" <eva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: dev-libs/libpeas/
Date: Mon, 25 Nov 2013 23:15:03 +0000 (UTC) [thread overview]
Message-ID: <1385421155.9bb6c5f514c7182e2aa6763f7bef812e625f45b6.eva@gentoo> (raw)
commit: 9bb6c5f514c7182e2aa6763f7bef812e625f45b6
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 18 22:36:25 2013 +0000
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Mon Nov 25 23:12:35 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=9bb6c5f5
dev-libs/libpeas: 1.8.1 → 1.9.0
---
dev-libs/libpeas/libpeas-1.9.0.ebuild | 93 +++++++++++++++++++++++++++++++++++
dev-libs/libpeas/libpeas-9999.ebuild | 61 +++++++++++++++++------
2 files changed, 140 insertions(+), 14 deletions(-)
diff --git a/dev-libs/libpeas/libpeas-1.9.0.ebuild b/dev-libs/libpeas/libpeas-1.9.0.ebuild
new file mode 100644
index 0000000..96d5b7e
--- /dev/null
+++ b/dev-libs/libpeas/libpeas-1.9.0.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+
+inherit eutils gnome2 multilib python-r1 virtualx
+
+DESCRIPTION="A GObject plugins library"
+HOMEPAGE="http://developer.gnome.org/libpeas/stable/"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
+IUSE="gjs +gtk glade +python seed"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ >=dev-libs/glib-2.32:2
+ >=dev-libs/gobject-introspection-0.10.1
+ gjs? ( >=dev-libs/gjs-1.37.1 )
+ glade? ( >=dev-util/glade-3.9.1:3.10 )
+ gtk? ( >=x11-libs/gtk+-3:3[introspection] )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygobject-3.0.0:3[${PYTHON_USEDEP}] )
+ seed? ( >=dev-libs/seed-2.91.91 )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.11
+ >=dev-util/intltool-0.40
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+"
+
+if_use_python_python_foreach_impl() {
+ if use python; then
+ python_foreach_impl run_in_build_dir "$@"
+ else
+ "$@"
+ fi
+}
+
+src_prepare() {
+ use python && python_copy_sources
+ if_use_python_python_foreach_impl gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf="
+ $(use_enable gjs)
+ $(use_enable glade glade-catalog)
+ $(use_enable gtk)
+ $(use_enable seed)
+ --disable-deprecation
+ --disable-static"
+ # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov
+ # What do we do about gdb, valgrind, gcov, etc?
+
+ configuration() {
+ local myconf="$@"
+ [[ ${EPYTHON} == python2* ]] && myconf+=" --enable-python2 --disable-python3 PYTHON2_CONFIG=/usr/bin/python-config-${EPYTHON#python}"
+ [[ ${EPYTHON} == python3* ]] && myconf+=" --enable-python3 --disable-python2 PYTHON3_CONFIG=/usr/bin/python-config-${EPYTHON#python}"
+ gnome2_src_configure ${myconf}
+ }
+
+ if use python; then
+ python_foreach_impl run_in_build_dir configuration ${myconf}
+ else
+ gnome2_src_configure ${myconf}
+ fi
+}
+
+src_compile() {
+ if_use_python_python_foreach_impl gnome2_src_compile
+}
+
+src_install() {
+ if_use_python_python_foreach_impl gnome2_src_install
+}
+
+src_test() {
+ # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme
+ # DO NOT REPORT UPSTREAM, this is not a libpeas bug.
+ # To reproduce:
+ # >>> from gi.repository import Gtk
+ # >>> Gtk.IconTheme.get_default().has_icon("gtk-about")
+ # This should return True, it returns False for Xvfb
+ if_use_python_python_foreach_impl Xemake check
+}
diff --git a/dev-libs/libpeas/libpeas-9999.ebuild b/dev-libs/libpeas/libpeas-9999.ebuild
index 16a6b5d..13122ab 100644
--- a/dev-libs/libpeas/libpeas-9999.ebuild
+++ b/dev-libs/libpeas/libpeas-9999.ebuild
@@ -1,13 +1,13 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
GCONF_DEBUG="no"
GNOME2_LA_PUNT="yes"
-PYTHON_COMPAT=( python{2_6,2_7} )
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
-inherit eutils gnome2 multilib python-single-r1 virtualx
+inherit eutils gnome2 multilib python-r1 virtualx
if [[ ${PV} = 9999 ]]; then
inherit gnome2-live
fi
@@ -18,47 +18,80 @@ HOMEPAGE="http://developer.gnome.org/libpeas/stable/"
LICENSE="LGPL-2+"
SLOT="0"
IUSE="gjs +gtk glade +python seed"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
if [[ ${PV} = 9999 ]]; then
IUSE="${IUSE} doc"
KEYWORDS=""
else
- KEYWORDS="~amd64 ~ppc ~x86 ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
+ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
fi
-RDEPEND=">=dev-libs/glib-2.32:2
+RDEPEND="
+ >=dev-libs/glib-2.32:2
>=dev-libs/gobject-introspection-0.10.1
- gjs? ( >=dev-libs/gjs-1.31.11 )
+ gjs? ( >=dev-libs/gjs-1.37.1 )
glade? ( >=dev-util/glade-3.9.1:3.10 )
gtk? ( >=x11-libs/gtk+-3:3[introspection] )
python? (
${PYTHON_DEPS}
>=dev-python/pygobject-3.0.0:3[${PYTHON_USEDEP}] )
- seed? ( >=dev-libs/seed-2.91.91 )"
+ seed? ( >=dev-libs/seed-2.91.91 )
+"
DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.11
>=dev-util/intltool-0.40
- >=sys-devel/gettext-0.17"
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+"
if [[ ${PV} = 9999 ]]; then
DEPEND="${DEPEND} doc? ( >=dev-util/gtk-doc-1.11 )"
fi
-pkg_setup() {
- use python && python-single-r1_pkg_setup
+if_use_python_python_foreach_impl() {
+ if use python; then
+ python_foreach_impl run_in_build_dir "$@"
+ else
+ "$@"
+ fi
}
src_prepare() {
- G2CONF="${G2CONF}
+ use python && python_copy_sources
+ if_use_python_python_foreach_impl gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf="
$(use_enable gjs)
$(use_enable glade glade-catalog)
$(use_enable gtk)
- $(use_enable python)
$(use_enable seed)
--disable-deprecation
--disable-static"
# Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov
# What do we do about gdb, valgrind, gcov, etc?
- gnome2_src_prepare
+ configuration() {
+ local myconf="$@"
+ [[ ${EPYTHON} == python2* ]] && myconf+=" --enable-python2 --disable-python3 PYTHON2_CONFIG=/usr/bin/python-config-${EPYTHON#python}"
+ [[ ${EPYTHON} == python3* ]] && myconf+=" --enable-python3 --disable-python2 PYTHON3_CONFIG=/usr/bin/python-config-${EPYTHON#python}"
+ gnome2_src_configure ${myconf}
+ }
+
+ if use python; then
+ python_foreach_impl run_in_build_dir configuration ${myconf}
+ else
+ gnome2_src_configure ${myconf}
+ fi
+}
+
+src_compile() {
+ if_use_python_python_foreach_impl gnome2_src_compile
+}
+
+src_install() {
+ if_use_python_python_foreach_impl gnome2_src_install
}
src_test() {
@@ -68,5 +101,5 @@ src_test() {
# >>> from gi.repository import Gtk
# >>> Gtk.IconTheme.get_default().has_icon("gtk-about")
# This should return True, it returns False for Xvfb
- Xemake check
+ if_use_python_python_foreach_impl Xemake check
}
next reply other threads:[~2013-11-25 23:15 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 23:15 Gilles Dartiguelongue [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-09 13:49 [gentoo-commits] proj/gnome:master commit in: dev-libs/libpeas/ Gilles Dartiguelongue
2015-05-14 22:50 Gilles Dartiguelongue
2015-05-10 17:20 Gilles Dartiguelongue
2014-12-22 21:10 Gilles Dartiguelongue
2014-11-25 22:07 Michał Górny
2014-11-25 21:08 Michał Górny
2014-11-23 13:07 Remi Cardona
2014-10-27 0:04 Gilles Dartiguelongue
2014-10-11 16:43 Gilles Dartiguelongue
2014-04-20 13:54 Gilles Dartiguelongue
2012-12-17 11:12 Alexandre Rostovtsev
2012-04-08 16:41 Alexandre Restovtsev
2012-02-27 4:47 Alexandre Restovtsev
2011-10-09 21:38 Alexandre Restovtsev
2011-06-15 16:06 Nirbheek Chauhan
2011-04-10 18:04 Gilles Dartiguelongue
2011-04-08 5:29 Nirbheek Chauhan
2011-04-05 0:57 Nirbheek Chauhan
2011-03-25 4:56 Nirbheek Chauhan
2011-03-16 21:59 Nirbheek Chauhan
2011-03-12 3:12 Nirbheek Chauhan
2011-02-23 14:40 Nirbheek Chauhan
2011-02-19 8:33 Priit Laes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1385421155.9bb6c5f514c7182e2aa6763f7bef812e625f45b6.eva@gentoo \
--to=eva@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox