blob: 03d054e17b910d20459c423bb81c328097c43c86 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eric/eric-4.4.1.ebuild,v 1.2 2010/02/07 01:04:39 arfrever Exp $
EAPI="2"
PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS="1"
inherit eutils python
MY_PN=${PN}4
MY_P=${MY_PN}-${PV}
DESCRIPTION="A full featured Python IDE using PyQt4 and QScintilla"
HOMEPAGE="http://eric-ide.python-projects.org/"
SRC_URI="mirror://sourceforge/eric-ide/${MY_P}.tar.gz"
SLOT="4"
LICENSE="GPL-3"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
IUSE="kde spell"
DEPEND="dev-python/PyQt4[assistant,svg,webkit,X]
dev-python/qscintilla-python
kde? ( kde-base/pykde4 )"
RDEPEND="${DEPEND}
>=dev-python/chardet-2.0
>=dev-python/pygments-1.1
dev-python/coverage"
PDEPEND="spell? ( dev-python/pyenchant )"
# 2.4 and 2.5 are restricted to avoid conditional dependency on dev-python/simplejson.
RESTRICT_PYTHON_ABIS="2.4 2.5 3.*"
LANGS="cs de es fr it ru tr zh_CN"
for L in ${LANGS}; do
SRC_URI="${SRC_URI}
linguas_${L}? ( mirror://sourceforge/eric-ide/${MY_PN}-i18n-${L/zh_CN/zh_CN.GB2312}-${PV}.tar.gz )"
IUSE="${IUSE} linguas_${L}"
done
unset L
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/eric-4.4-no-interactive.patch
epatch "${FILESDIR}"/remove_coverage.patch
use kde || epatch "${FILESDIR}"/eric-4.4-no-pykde.patch
# remove bundled copies, bug #283148 and bug 300757
rm -rf "${S}"/eric/ThirdParty
rm -rf "${S}"/eric/DebugClients/Python/coverage
rm -rf "${S}"/eric/DebugClients/Python3/coverage
}
src_install() {
installation() {
"$(PYTHON)" install.py \
-z \
-b "/usr/bin" \
-i "${D}" \
-d "$(python_get_sitedir)" \
-c
}
python_execute_function installation
doicon eric/icons/default/eric.png
make_desktop_entry "eric4 --nosplash" eric4 eric "Development;IDE;Qt"
}
pkg_postinst() {
python_mod_optimize eric4{,config.py,plugins}
elog
elog "If you want to use eric4 with mod_python, have a look at"
elog "\"${ROOT%/}$(python_get_sitedir -f)/eric4/patch_modpython.py\"."
elog
elog "The following packages will give eric extended functionality:"
elog " dev-python/pylint"
elog " dev-python/pysvn"
elog
elog "This version has a plugin interface with plugin-autofetch from"
elog "the application itself. You may want to check those as well."
elog
}
pkg_postrm() {
python_mod_cleanup eric4{,config.py,plugins}
}
|