Initial commit. Closes bug# 69561
authorRob Cakebread <pythonhead@gentoo.org>
Thu, 2 Dec 2004 05:40:50 +0000 (05:40 +0000)
committerRob Cakebread <pythonhead@gentoo.org>
Thu, 2 Dec 2004 05:40:50 +0000 (05:40 +0000)
app-editors/leo/ChangeLog [new file with mode: 0644]
app-editors/leo/Manifest [new file with mode: 0644]
app-editors/leo/files/digest-leo-4.2 [new file with mode: 0644]
app-editors/leo/files/leoConfig.py.patch [new file with mode: 0644]
app-editors/leo/leo-4.2.ebuild [new file with mode: 0644]
app-editors/leo/metadata.xml [new file with mode: 0644]

diff --git a/app-editors/leo/ChangeLog b/app-editors/leo/ChangeLog
new file mode 100644 (file)
index 0000000..ad53a55
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for app-editors/leo
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/leo/ChangeLog,v 1.1 2004/12/02 05:40:50 pythonhead Exp $
+
+*leo-4.2 (01 Dec 2004)
+
+  01 Dec 2004; Rob Cakebread <pythonhead@gentoo.org> +metadata.xml,
+  +files/leoConfig.py.patch, +leo-4.2.ebuild:
+  Initial commit. Closes bug# 69561
+
diff --git a/app-editors/leo/Manifest b/app-editors/leo/Manifest
new file mode 100644 (file)
index 0000000..32a08a2
--- /dev/null
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 b12df3a20726517ac359bc1db0a49a69 leo-4.2.ebuild 1048
+MD5 9ac4199ebe7cd3e7e311274994767f82 metadata.xml 160
+MD5 5f1a0e52bc15423e9b8c835793e63d10 ChangeLog 382
+MD5 a58113f7350bb99e9ba2d4ad5fa8e620 files/leoConfig.py.patch 963
+MD5 786b8586255990e3d34ad8d5bee99fe3 files/digest-leo-4.2 63
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBrqu6z2gxt1z4IGYRAqpdAJ9GbwJGh6VOkHv4vJF6Ygrc4gVqpACfVeu4
+m+s7PJpaX4TPgZelxTeYjLs=
+=BTc7
+-----END PGP SIGNATURE-----
diff --git a/app-editors/leo/files/digest-leo-4.2 b/app-editors/leo/files/digest-leo-4.2
new file mode 100644 (file)
index 0000000..b9f4941
--- /dev/null
@@ -0,0 +1 @@
+MD5 3051d5a9089ad2f948997237c8e21126 leo-4.2-final.zip 1819202
diff --git a/app-editors/leo/files/leoConfig.py.patch b/app-editors/leo/files/leoConfig.py.patch
new file mode 100644 (file)
index 0000000..2352d23
--- /dev/null
@@ -0,0 +1,27 @@
+--- /var/tmp/portage/leo-4.2/work/leo-4.2-final/src/leoConfig.py       2004-07-20 08:11:58.000000000 -0700
++++ /var/tmp/abeni/leoConfig.py        2004-11-08 22:49:31.055019376 -0800
+@@ -9,6 +9,7 @@
+ import os\r
+ import string\r
+ import sys\r
++import shutil\r
+ \r
+ class baseConfig:\r
+     """The base class for Leo's configuration handler."""\r
+@@ -84,10 +85,12 @@
+     \r
+     def init (self):\r
+     \r
+-        try:\r
+-            self.configDir = sys.leo_config_directory\r
+-        except:\r
+-            self.configDir = g.os_path_join(g.app.loadDir,"..","config")\r
++        self.configDir = os.path.expanduser("~/.leo")\r
++        if not os.path.exists(self.configDir):\r
++            os.mkdir(self.configDir)\r
++            config_file = "%s/leoConfig.txt" % \\r
++                            g.os_path_join(g.app.loadDir,"..","config")\r
++            shutil.copy(config_file, self.configDir)\r
+     \r
+         self.configFileName = g.os_path_join(self.configDir,"leoConfig.txt")\r
+     \r
diff --git a/app-editors/leo/leo-4.2.ebuild b/app-editors/leo/leo-4.2.ebuild
new file mode 100644 (file)
index 0000000..669777d
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/leo/leo-4.2.ebuild,v 1.1 2004/12/02 05:40:50 pythonhead Exp $
+
+inherit eutils python
+
+MY_P=${P}-final
+DESCRIPTION="Leo is an outlining editor and literate programming tool."
+HOMEPAGE="http://leo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/leo/${MY_P}.zip"
+LICENSE="PYTHON"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND="virtual/python
+       dev-lang/tk"
+S=${WORKDIR}/${MY_P}
+
+
+src_unpack() {
+       unpack ${A} || die "Failed to unpack ${A}"
+       cd ${S} || die "Failed to cd ${S}"
+       epatch ${FILESDIR}/leoConfig.py.patch || \
+               die "epatch failed on leoConfig.py.patch"
+}
+
+src_install() {
+       python_version
+       INST_DIR=/usr/lib/python${PYVER}/site-packages/leo
+       dodir ${INST_DIR}
+       dodir /usr/bin
+       dodoc ${S}/PKG-INFO MANIFEST doc/*
+       rm -rf PKG-INFO MANIFEST doc/*
+       cp -r * ${D}/${INST_DIR}/
+       echo "#!/bin/bash" > leo
+       echo "exec /usr/bin/python ${INST_DIR}/src/leo.py \"\$1\"" >> leo
+       exeinto /usr/bin
+       doexe leo
+}
diff --git a/app-editors/leo/metadata.xml b/app-editors/leo/metadata.xml
new file mode 100644 (file)
index 0000000..301d220
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>python</herd>
+</pkgmetadata>