summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Polatel <hawking@gentoo.org>2008-10-26 23:12:29 +0000
committerAli Polatel <hawking@gentoo.org>2008-10-26 23:12:29 +0000
commitbf06409294ecd94a4c74a1895d0d93a3d8cf76d4 (patch)
tree2f8e5a62d5833aa8afe7855054838e06ab879f79 /app-editors
parentStable for HPPA (bug #244250). (diff)
downloadgentoo-2-bf06409294ecd94a4c74a1895d0d93a3d8cf76d4.tar.gz
gentoo-2-bf06409294ecd94a4c74a1895d0d93a3d8cf76d4.tar.bz2
gentoo-2-bf06409294ecd94a4c74a1895d0d93a3d8cf76d4.zip
Revbump. Use EAPI=2 and use dependencies.
(Portage version: -svn/cvs/Linux 2.6.26-gentoo x86_64)
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/leo/ChangeLog8
-rw-r--r--app-editors/leo/leo-4.4.7-r1.ebuild (renamed from app-editors/leo/leo-4.4.7.ebuild)32
2 files changed, 22 insertions, 18 deletions
diff --git a/app-editors/leo/ChangeLog b/app-editors/leo/ChangeLog
index 8f5826602876..b9ef98cf34b0 100644
--- a/app-editors/leo/ChangeLog
+++ b/app-editors/leo/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-editors/leo
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/leo/ChangeLog,v 1.10 2008/03/01 11:51:09 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/leo/ChangeLog,v 1.11 2008/10/26 23:12:29 hawking Exp $
+
+*leo-4.4.7-r1 (26 Oct 2008)
+
+ 26 Oct 2008; Ali Polatel <hawking@gentoo.org> -leo-4.4.7.ebuild,
+ +leo-4.4.7-r1.ebuild:
+ Revbump. Use EAPI=2 and use dependencies.
*leo-4.4.7 (01 Mar 2008)
diff --git a/app-editors/leo/leo-4.4.7.ebuild b/app-editors/leo/leo-4.4.7-r1.ebuild
index fd0ab74a49e1..5acb7c605e65 100644
--- a/app-editors/leo/leo-4.4.7.ebuild
+++ b/app-editors/leo/leo-4.4.7-r1.ebuild
@@ -1,9 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/leo/leo-4.4.7.ebuild,v 1.1 2008/03/01 11:51:09 dev-zero Exp $
-
-NEED_PYTHON="2.3"
+# $Header: /var/cvsroot/gentoo-x86/app-editors/leo/leo-4.4.7-r1.ebuild,v 1.1 2008/10/26 23:12:29 hawking Exp $
+EAPI=2
inherit python multilib
MY_P="${P}-final"
@@ -16,38 +15,37 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
-DEPEND="app-arch/unzip"
-RDEPEND="app-text/silvercity"
+COMMON_DEPEND=">=dev-lang/python-2.3[tk]"
+DEPEND="app-arch/unzip
+ ${COMMON_DEPEND}"
+RDEPEND="app-text/silvercity
+ ${COMMON_DEPEND}"
S="${WORKDIR}/${MY_P}"
-pkg_setup() {
- python_tkinter_exists
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
+ default
# Remove all CVS directories
find . -iname "CVS" -exec rm -rf {} \; 2>/dev/null
}
src_install() {
- dohtml -r doc/html/*
- dodoc doc/README.TXT
+ dohtml -r doc/html/* || die "dohtml failed"
+ dodoc doc/README.TXT || die "dodoc failed"
python_version
insinto "/usr/$(get_libdir)/python${PYVER}/site-packages/leo"
- doins -r config extensions Icons __init__.py modes plugins scripts src
+ doins -r config extensions Icons __init__.py modes plugins scripts src ||\
+ die "doins failed"
cat > leo <<- _EOF_
#!/bin/sh
${python} /usr/$(get_libdir)/python${PYVER}/site-packages/leo/src/leo.py \$@
_EOF_
- dobin leo
+ dobin leo || die "dobin failed"
}
pkg_postinst() {
@@ -57,5 +55,5 @@ pkg_postinst() {
pkg_postrm() {
python_version
- python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+ python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/${PN}
}