| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpeas/libpeas-1.6.1.ebuild,v 1.1 2012/10/20 06:46:36 pacho Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
GCONF_DEBUG="no"
|
| 7 |
GNOME2_LA_PUNT="yes"
|
| 8 |
PYTHON_DEPEND="python? 2:2.5"
|
| 9 |
|
| 10 |
inherit eutils gnome2 multilib python virtualx
|
| 11 |
|
| 12 |
DESCRIPTION="A GObject plugins library"
|
| 13 |
HOMEPAGE="http://developer.gnome.org/libpeas/stable/"
|
| 14 |
|
| 15 |
LICENSE="LGPL-2+"
|
| 16 |
SLOT="0"
|
| 17 |
IUSE="gjs +gtk glade +python seed"
|
| 18 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
|
| 19 |
|
| 20 |
RDEPEND=">=dev-libs/glib-2.32:2
|
| 21 |
>=dev-libs/gobject-introspection-0.10.1
|
| 22 |
gjs? ( >=dev-libs/gjs-1.31.11 )
|
| 23 |
glade? ( >=dev-util/glade-3.9.1:3.10 )
|
| 24 |
gtk? ( >=x11-libs/gtk+-3:3[introspection] )
|
| 25 |
python? ( >=dev-python/pygobject-3.0.0:3 )
|
| 26 |
seed? ( >=dev-libs/seed-2.91.91 )"
|
| 27 |
DEPEND="${RDEPEND}
|
| 28 |
>=dev-util/intltool-0.40
|
| 29 |
>=sys-devel/gettext-0.17"
|
| 30 |
|
| 31 |
pkg_setup() {
|
| 32 |
python_set_active_version 2
|
| 33 |
python_pkg_setup
|
| 34 |
}
|
| 35 |
|
| 36 |
src_prepare() {
|
| 37 |
DOCS="AUTHORS ChangeLog NEWS README"
|
| 38 |
|
| 39 |
G2CONF="${G2CONF}
|
| 40 |
$(use_enable gjs)
|
| 41 |
$(use_enable glade glade-catalog)
|
| 42 |
$(use_enable gtk)
|
| 43 |
$(use_enable python)
|
| 44 |
$(use_enable seed)
|
| 45 |
--disable-deprecation
|
| 46 |
--disable-static"
|
| 47 |
# Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov
|
| 48 |
# What do we do about gdb, valgrind, gcov, etc?
|
| 49 |
|
| 50 |
use python && python_clean_py-compile_files
|
| 51 |
gnome2_src_prepare
|
| 52 |
}
|
| 53 |
|
| 54 |
src_test() {
|
| 55 |
# FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme
|
| 56 |
# DO NOT REPORT UPSTREAM, this is not a libpeas bug.
|
| 57 |
# To reproduce:
|
| 58 |
# >>> from gi.repository import Gtk
|
| 59 |
# >>> Gtk.IconTheme.get_default().has_icon("gtk-about")
|
| 60 |
# This should return True, it returns False for Xvfb
|
| 61 |
Xemake check
|
| 62 |
}
|
| 63 |
|
| 64 |
pkg_postinst() {
|
| 65 |
gnome2_pkg_postinst
|
| 66 |
use python && python_mod_optimize /usr/$(get_libdir)/peas-demo
|
| 67 |
}
|
| 68 |
|
| 69 |
pkg_postrm() {
|
| 70 |
gnome2_pkg_postrm
|
| 71 |
use python && python_mod_cleanup /usr/$(get_libdir)/peas-demo
|
| 72 |
}
|