blob: fd0ab74a49e158f27ea9b46cf27dfe9d5cd2d211 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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}
}
|