diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-02 13:31:32 +0400 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-02 13:40:04 +0400 |
commit | af59bec935add474cd83dcc23703315730b621ab (patch) | |
tree | 849e8fcda0cb0d832a85117d2638f2229dd54d82 /app-misc/gvrng/gvrng-4.4.ebuild | |
parent | dev-lua/luvit imported into main tree wrt #406403 (diff) | |
download | sunrise-af59bec935add474cd83dcc23703315730b621ab.tar.gz sunrise-af59bec935add474cd83dcc23703315730b621ab.tar.bz2 sunrise-af59bec935add474cd83dcc23703315730b621ab.zip |
app-misc/gvrng: bump to EAPI 5, port to python-r1 eclass, simplify dependencies
Diffstat (limited to 'app-misc/gvrng/gvrng-4.4.ebuild')
-rw-r--r-- | app-misc/gvrng/gvrng-4.4.ebuild | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/app-misc/gvrng/gvrng-4.4.ebuild b/app-misc/gvrng/gvrng-4.4.ebuild index 98138ece2..e8d0d5756 100644 --- a/app-misc/gvrng/gvrng-4.4.ebuild +++ b/app-misc/gvrng/gvrng-4.4.ebuild @@ -2,9 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI="2" +EAPI="5" -inherit eutils +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-r1 DESCRIPTION="The Guido van Robot Programming Language" HOMEPAGE="http://gvr.sourceforge.net" @@ -15,14 +16,14 @@ SLOT="0" KEYWORDS="~x86" IUSE="doc" -DEPEND="dev-lang/python - >=dev-python/pygtk-2.0.0 +DEPEND="${PYTHON_DEPS} + dev-python/pygtk:2 dev-python/pygobject:2 - >=dev-python/pygtksourceview-2.0.0" + dev-python/pygtksourceview:2" RDEPEND="${DEPEND}" -S=${WORKDIR}/GvRng_${PV} +S="${WORKDIR}/GvRng_${PV}" src_prepare() { epatch "${FILESDIR}"/01_gui_gtk_path.patch @@ -30,16 +31,16 @@ src_prepare() { src_install() { insinto /usr/share/${PN} - doins -r *.py gvrngrc gui-gtk bitmaps gvr_progs locale po || die "Failed to install files" - dodoc Changelog docs/Summary-en.txt || die "Failed to install docs" + doins -r *.py gvrngrc gui-gtk bitmaps gvr_progs locale po + dodoc Changelog docs/Summary-en.txt if use doc; then - dohtml -r docs/tutorial.html docs/lessons || die "Failed to install tutorial and lessons" + dohtml -r docs/tutorial.html docs/lessons fi - fperms 755 /usr/share/${PN}/gvrng.py || die "Failed to set permissions on gvrng.py" - dodir /usr/bin || die "Failed to create /usr/bin" - dosym /usr/share/${PN}/gvrng.py /usr/bin/gvrng || die "Failed to create symlink" - domenu "${FILESDIR}"/gvrng.desktop || die "Failed to copy desktop file" - doman docs/gvrng.1.gz || die "Failed to install man page" + fperms 755 /usr/share/${PN}/gvrng.py + dodir /usr/bin + dosym /usr/share/${PN}/gvrng.py /usr/bin/gvrng + domenu "${FILESDIR}"/gvrng.desktop + doman docs/gvrng.1.gz } pkg_postinst() { |