blob: 989a5417abaa9f5472d2d5f2a54c7bc06df289be (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="tk"
inherit python-single-r1
MY_PN="pythonG"
MY_PV=${PV/_/-}
MY_PV=${MY_PV//\./_}
DESCRIPTION="Nice and powerful spanish development environment for Python"
HOMEPAGE="http://www3.uji.es/~dllorens/PythonG/principal.html"
SRC_URI="
http://www3.uji.es/~dllorens/downloads/pythong/linux/${MY_PN}-${MY_PV}.tgz
doc? ( http://marmota.act.uji.es/MTP/pdf/python.pdf )"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ia64 x86"
SLOT="0"
IUSE="doc"
RDEPEND="
>=dev-lang/tk-8.3.4:0=
virtual/pmw[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_PN}-${MY_PV}"
src_prepare() {
sed \
-e "s:^\(fullpath = \).*:\1'$(python_get_sitedir)':" \
-e "/^url_docFuncPG/s:'+fullpath+':/usr/share/doc/${PF}:" \
-i pythong.py || die "sed in pythong.py failed"
}
src_install() {
python_domodule modulepythong.py libpythong
python_doscript pythong.py
dodoc leeme.txt
insinto /usr/share/doc/${PF}
doins -r {LICENCIA,MANUAL,demos}
rm -fr "${ED}/usr/share/doc/${PF}/demos/modulepythong.py" || die
if use doc; then
insinto /usr/share/doc/${PF}
doins "${DISTDIR}"/python.pdf
fi
python_optimize
}
|