You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/alacarte/alacarte-0.13.4.ebuild

80 lines
1.6 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/alacarte/alacarte-0.13.4.ebuild,v 1.2 2012/12/19 10:10:21 tetromino Exp $
EAPI="4"
GCONF_DEBUG="no"
PYTHON_DEPEND="2:2.5"
PYTHON_USE_WITH="xml"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit gnome2 python
DESCRIPTION="Simple GNOME menu editor"
HOMEPAGE="http://live.gnome.org/"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE=""
COMMON_DEPEND="dev-python/pygobject:3
>=gnome-base/gnome-menus-3.2.0.1:3[introspection]
"
# gnome-panel needed for gnome-desktop-item-edit
RDEPEND="${COMMON_DEPEND}
gnome-base/gnome-panel
x11-libs/gdk-pixbuf:2[introspection]
x11-libs/gtk+:3[introspection]
"
DEPEND="${COMMON_DEPEND}
>=dev-util/intltool-0.40.0
sys-devel/gettext
virtual/pkgconfig
"
pkg_setup() {
DOCS="AUTHORS ChangeLog NEWS README"
python_pkg_setup
}
src_prepare() {
gnome2_src_prepare
python_clean_py-compile_files
python_copy_sources
}
src_configure() {
configure() {
G2CONF="${G2CONF} PYTHON=$(PYTHON -a)"
gnome2_src_configure
}
python_execute_function -s configure
}
src_compile() {
python_execute_function -s gnome2_src_compile
}
src_test() {
python_execute_function -s -d
}
src_install() {
python_execute_function -s gnome2_src_install
python_clean_installation_image
python_convert_shebangs -r 2 "${ED}"
}
pkg_postinst() {
gnome2_pkg_postinst
python_mod_optimize Alacarte
}
pkg_postrm() {
gnome2_pkg_postrm
python_mod_cleanup Alacarte
}