summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2008-03-01 11:51:10 +0000
committerTiziano Müller <dev-zero@gentoo.org>2008-03-01 11:51:10 +0000
commit342851fe13ab3511b45e6b062b7ef34463f24156 (patch)
tree24a966f6600c0a2294be582f468522f69ddb57b5 /app-editors/leo/leo-4.4.7.ebuild
parentremove old (diff)
downloadgentoo-2-342851fe13ab3511b45e6b062b7ef34463f24156.tar.gz
gentoo-2-342851fe13ab3511b45e6b062b7ef34463f24156.tar.bz2
gentoo-2-342851fe13ab3511b45e6b062b7ef34463f24156.zip
Version bump (bug #153233). Dropped old version.
(Portage version: 2.1.4.4)
Diffstat (limited to 'app-editors/leo/leo-4.4.7.ebuild')
-rw-r--r--app-editors/leo/leo-4.4.7.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/app-editors/leo/leo-4.4.7.ebuild b/app-editors/leo/leo-4.4.7.ebuild
new file mode 100644
index 000000000000..fd0ab74a49e1
--- /dev/null
+++ b/app-editors/leo/leo-4.4.7.ebuild
@@ -0,0 +1,61 @@
+# 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"
+
+inherit python multilib
+
+MY_P="${P}-final"
+
+DESCRIPTION="An outlining editor and literate programming tool."
+HOMEPAGE="http://leo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
+LICENSE="PYTHON"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="app-text/silvercity"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ python_tkinter_exists
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Remove all CVS directories
+ find . -iname "CVS" -exec rm -rf {} \; 2>/dev/null
+}
+
+src_install() {
+ dohtml -r doc/html/*
+ dodoc doc/README.TXT
+
+ python_version
+
+ insinto "/usr/$(get_libdir)/python${PYVER}/site-packages/leo"
+ doins -r config extensions Icons __init__.py modes plugins scripts src
+
+ cat > leo <<- _EOF_
+#!/bin/sh
+${python} /usr/$(get_libdir)/python${PYVER}/site-packages/leo/src/leo.py \$@
+ _EOF_
+
+ dobin leo
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+}
+
+pkg_postrm() {
+ python_version
+ python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+}