diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-02-21 04:40:54 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-02-21 04:40:54 +0000 |
commit | 6379a4b4c8910283c9c93adeb0c7fe71ffdfcf59 (patch) | |
tree | 3d908d7ff9220f25bedd958a72fab22db2d5f626 /app-office | |
parent | Missing dev-perl/File-Slurp from dependencies. (diff) | |
download | gentoo-2-6379a4b4c8910283c9c93adeb0c7fe71ffdfcf59.tar.gz gentoo-2-6379a4b4c8910283c9c93adeb0c7fe71ffdfcf59.tar.bz2 gentoo-2-6379a4b4c8910283c9c93adeb0c7fe71ffdfcf59.zip |
New ebuild for a small, convenient time tracker.
(Portage version: 2.2.0_alpha87/cvs/Linux x86_64)
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/gtimelog/ChangeLog | 10 | ||||
-rw-r--r-- | app-office/gtimelog/gtimelog-0.7.0.ebuild | 69 | ||||
-rw-r--r-- | app-office/gtimelog/metadata.xml | 5 |
3 files changed, 84 insertions, 0 deletions
diff --git a/app-office/gtimelog/ChangeLog b/app-office/gtimelog/ChangeLog new file mode 100644 index 000000000000..2f620b50fc2b --- /dev/null +++ b/app-office/gtimelog/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-office/gtimelog +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/gtimelog/ChangeLog,v 1.1 2012/02/21 04:40:54 tetromino Exp $ + +*gtimelog-0.7.0 (21 Feb 2012) + + 21 Feb 2012; Alexandre Rostovtsev <tetromino@gentoo.org> + +gtimelog-0.7.0.ebuild, +metadata.xml: + New ebuild for a small, convenient time tracker. + diff --git a/app-office/gtimelog/gtimelog-0.7.0.ebuild b/app-office/gtimelog/gtimelog-0.7.0.ebuild new file mode 100644 index 000000000000..5ed8e377af21 --- /dev/null +++ b/app-office/gtimelog/gtimelog-0.7.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/gtimelog/gtimelog-0.7.0.ebuild,v 1.1 2012/02/21 04:40:54 tetromino Exp $ + +EAPI="4" + +PYTHON_DEPEND="2" + +inherit eutils distutils versionator virtualx + +DESCRIPTION="A small Gtk+ application for keeping track of your time" +HOMEPAGE="http://mg.pov.lt/gtimelog/" +LICENSE="GPL-2" +SLOT="0" + +SRC_URI="https://launchpad.net/gtimelog/devel/$(get_version_component_range 1-2 ${PV})/+download/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" + +IUSE="ayatana test" + +# gnome-base/gnome-desktop provides gnome-week.png +RDEPEND="dev-libs/gobject-introspection + dev-python/dbus-python + dev-python/pygobject:3 + gnome-base/gnome-desktop:2 + x11-libs/gtk+:3[introspection] + x11-libs/pango[introspection] + + ayatana? ( dev-libs/libappindicator:3[introspection] )" +DEPEND="test? ( + ${RDEPEND} + dev-libs/libappindicator:3[introspection] )" + +DISTUTILS_SRC_TEST="setup.py" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup + + DOCS="HACKING.txt NEWS.txt NOTES.txt README.txt" +} + +src_prepare() { + python_convert_shebangs -r 2 . + # Support prefixed installation + sed -e "s:\"/usr:\"${EPREFIX}/usr:g" \ + -i src/gtimelog/main.py || die "sed failed" + distutils_src_prepare +} + +src_test() { + VIRTUALX_COMMAND=distutils_src_test virtualmake +} + +src_install() { + domenu gtimelog.desktop + insinto /usr/share/pixmaps + doins src/gtimelog/gtimelog-*.png + insinto /usr/share/gtimelog + doins src/gtimelog/*.ui src/gtimelog/gtimelog.png + exeinto /usr/share/gtimelog/scripts + doexe scripts/*.py + + distutils_src_install + + # Don't install icons in /usr/lib/python* + find "${ED}/$(python_get_sitedir)" -regex '.*\(png\|ui\)$' -exec rm -f {} + || die +} diff --git a/app-office/gtimelog/metadata.xml b/app-office/gtimelog/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/app-office/gtimelog/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> |