blob: 45c5cf2a353e9eb57bbbf10c4cdd0fd3afc11f24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2005 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.3 2005/03/01 02:05:36 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
}
|