blob: 0b382a970f932c46f7d72609c0a61a42019dec1e (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/spe/spe-0.8.3c-r1.ebuild,v 1.1 2008/01/05 00:20:03 dirtyepic Exp $
inherit distutils eutils
MY_P="SPE-0.8.3.c-wx2.6.1.0"
DESCRIPTION="Python IDE with Blender support"
HOMEPAGE="http://pythonide.stani.be/"
SRC_URI="http://download.berlios.de/python/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
S=${WORKDIR}/${MY_P}
DEPEND=">=virtual/python-2.3
app-arch/unzip"
RDEPEND="=dev-python/wxpython-2.6*
>=dev-util/wxglade-0.3.2
>=dev-python/pychecker-0.8.13
${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-0.8.3-wxversion.patch
chmod -R go-w "${S}"/*
}
src_install() {
distutils_src_install
distutils_python_version
SITEPATH="${ROOT}usr/lib/python${PYVER}/site-packages"
dobin spe
rm -rf "${D}${SITEPATH}/_spe/plugins/wxGlade"
rm -rf "${D}${SITEPATH}/_spe/plugins/pychecker"
ln -svf "../../wxglade" "${D}${SITEPATH}/_spe/plugins/wxGlade"
ln -svf "../../pychecker" "${D}${SITEPATH}/_spe/plugins/pychecker"
doicon "${S}/build/lib/_spe/images/spe.png"
make_desktop_entry "${PN}" "SPE - Stani's Python Editor" "spe" "Development"
}
pkg_postinst() {
distutils_python_version
SPEPATH="/usr/lib/python${PYVER}/site-packages"
elog
elog "To be able to use spe in blender, be sure that the path where spe is"
elog "installed ($SPEPATH) is included in your PYTHONPATH"
elog "environment variable. See the installation section in the manual for"
elog "more information ($SPEPATH/_spe/doc/manual.pdf)."
elog
}
|