| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/hamster-applet/hamster-applet-2.32.1.ebuild,v 1.8 2012/05/05 06:25:22 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI="3"
|
| 6 |
GCONF_DEBUG="no"
|
| 7 |
PYTHON_DEPEND="2:2.5"
|
| 8 |
PYTHON_USE_WITH="sqlite"
|
| 9 |
SUPPORT_PYTHON_ABIS="1"
|
| 10 |
RESTRICT_PYTHON_ABIS="3.*"
|
| 11 |
|
| 12 |
inherit gnome2 multilib python waf-utils
|
| 13 |
|
| 14 |
DESCRIPTION="Time tracking for the masses, in a GNOME applet"
|
| 15 |
HOMEPAGE="http://projecthamster.wordpress.com/"
|
| 16 |
|
| 17 |
# license on homepage is out-of-date, was changed to GPL-2 on 2008-04-16
|
| 18 |
LICENSE="GPL-2"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
|
| 21 |
IUSE="eds libnotify"
|
| 22 |
|
| 23 |
RDEPEND="dev-python/gconf-python
|
| 24 |
dev-python/libgnome-python
|
| 25 |
dev-python/libwnck-python
|
| 26 |
dev-python/gnome-applets-python
|
| 27 |
dev-python/gnome-desktop-python
|
| 28 |
dev-python/dbus-python
|
| 29 |
dev-python/pyxdg
|
| 30 |
>=dev-python/pygobject-2.14:2
|
| 31 |
>=dev-python/pygtk-2.12:2
|
| 32 |
gnome-base/gnome-control-center
|
| 33 |
>=x11-libs/gtk+-2.12:2
|
| 34 |
x11-libs/libXScrnSaver
|
| 35 |
|
| 36 |
eds? ( dev-python/evolution-python )
|
| 37 |
libnotify? ( dev-python/notify-python )
|
| 38 |
"
|
| 39 |
DEPEND="${RDEPEND}
|
| 40 |
x11-proto/scrnsaverproto
|
| 41 |
>=dev-util/intltool-0.40
|
| 42 |
virtual/pkgconfig
|
| 43 |
sys-devel/gettext
|
| 44 |
>=app-text/gnome-doc-utils-0.17.3"
|
| 45 |
|
| 46 |
pkg_setup() {
|
| 47 |
DOCS="AUTHORS NEWS README"
|
| 48 |
python_pkg_setup
|
| 49 |
}
|
| 50 |
|
| 51 |
src_prepare() {
|
| 52 |
gnome2_src_prepare
|
| 53 |
python_copy_sources
|
| 54 |
}
|
| 55 |
|
| 56 |
src_configure() {
|
| 57 |
python_execute_function -s waf-utils_src_configure
|
| 58 |
}
|
| 59 |
|
| 60 |
src_compile() {
|
| 61 |
python_execute_function -s waf-utils_src_compile
|
| 62 |
}
|
| 63 |
|
| 64 |
src_install() {
|
| 65 |
python_execute_function -s waf-utils_src_install
|
| 66 |
python_convert_shebangs 2 "${ED}"usr/bin/*
|
| 67 |
python_convert_shebangs 2 "${ED}"usr/$(get_libdir)/${PN}/${PN}
|
| 68 |
}
|
| 69 |
|
| 70 |
pkg_postinst() {
|
| 71 |
gnome2_pkg_postinst
|
| 72 |
python_mod_optimize hamster
|
| 73 |
}
|
| 74 |
|
| 75 |
pkg_postrm() {
|
| 76 |
gnome2_pkg_postrm
|
| 77 |
python_mod_cleanup hamster
|
| 78 |
}
|