Mercurial > hg > portage
annotate dev-util/eric/eric-5.4.3.ebuild @ 376:da8488c002f2
add an ebuild for davfs2 v1.5.2
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 28 Jan 2015 16:01:59 +0100 |
parents | b5842c196f43 |
children |
rev | line source |
---|---|
355
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2013 Gentoo Foundation |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/eric/eric-5.3.8.ebuild,v 1.1 2013/11/24 22:54:02 pesa Exp $ |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 EAPI=4 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 PYTHON_DEPEND="3:3.3" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 PYTHON_USE_WITH="sqlite" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 SUPPORT_PYTHON_ABIS="1" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 RESTRICT_PYTHON_ABIS="2.* *-jython 2.7-pypy-*" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 #PLOCALES="cs de en es fr it ru tr zh_CN" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 PLOCALES="de" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 inherit eutils l10n python |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 DESCRIPTION="A full featured Python IDE using PyQt4 and QScintilla" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 HOMEPAGE="http://eric-ide.python-projects.org/" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 SLOT="5" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 MY_PV=${PV/_pre/-snapshot-} |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 MY_P=${PN}${SLOT}-${MY_PV} |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 BASE_URI="mirror://sourceforge/eric-ide/${PN}${SLOT}/stable/${PV}" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 SRC_URI="${BASE_URI}/${MY_P}.tar.gz" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 for L in ${PLOCALES}; do |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 SRC_URI+=" linguas_${L}? ( ${BASE_URI}/${PN}${SLOT}-i18n-${L/zh_CN/zh_CN.GB2312}-${MY_PV}.tar.gz )" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 done |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 unset L |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 LICENSE="GPL-3" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 IUSE="spell" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 DEPEND=" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 >=dev-python/sip-4.14.3 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 >=dev-python/PyQt4-4.10[X,help,sql,svg,webkit] |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 >=dev-python/qscintilla-python-2.7.1 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 " |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 RDEPEND="${DEPEND} |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 >=dev-python/chardet-2.0.1 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 >=dev-python/coverage-3.2 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 >=dev-python/pygments-1.6 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 " |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 PDEPEND=" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 spell? ( dev-python/pyenchant ) |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 " |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 S=${WORKDIR}/${MY_P} |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 PYTHON_VERSIONED_EXECUTABLES=("/usr/bin/.*") |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
53 src_prepare() { |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
54 # Avoid file collisions between different slots of Eric. |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
55 sed -i -e 's/^Icon=eric$/&5/' eric/eric5.desktop || die |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
56 sed -i -e 's/\([^[:alnum:]]\)eric\.png\([^[:alnum:]]\)/\1eric5.png\2/' \ |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
57 $(grep -lr 'eric\.png' .) || die |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
58 mv eric/icons/default/eric{,5}.png || die |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
59 mv eric/pixmaps/eric{,5}.png || die |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
60 rm -f eric/APIs/Python/zope-*.api |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
61 rm -f eric/APIs/Ruby/Ruby-*.api |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
62 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
63 # Delete internal copies of dev-python/chardet, |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
64 # dev-python/coverage and dev-python/pygments. |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
65 rm -fr eric/ThirdParty |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
66 rm -fr eric/DebugClients/Python{,3}/coverage |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
67 sed -i -e 's/from DebugClients\.Python3\?\.coverage/from coverage/' \ |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
68 $(grep -lr 'from DebugClients\.Python3\?\.coverage' .) || die |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
69 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
70 # Fix desktop files (bug 458092). |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
71 sed -i -e '/^Categories=/s:Python:X-&:' eric/eric5{,_webbrowser}.desktop || die |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
72 } |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
73 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
74 src_install() { |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
75 installation() { |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
76 "$(PYTHON)" install.py \ |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
77 -z \ |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
78 -b "${EPREFIX}/usr/bin" \ |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
79 -i "${T}/images/${PYTHON_ABI}" \ |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
80 -d "${EPREFIX}$(python_get_sitedir)" \ |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
81 -c |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
82 } |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
83 python_execute_function installation |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
84 python_merge_intermediate_installation_images "${T}/images" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
85 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
86 doicon eric/icons/default/eric5.png || die |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
87 } |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
88 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
89 pkg_postinst() { |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
90 python_mod_optimize -x "/eric5/(DebugClients/Python|UtilitiesPython2)/" eric5{,config.py,plugins} |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
91 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
92 elog |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
93 elog "If you want to use Eric with mod_python, have a look at" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
94 elog "\"${EROOT}$(python_get_sitedir -b -f)/eric5/patch_modpython.py\"." |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
95 elog |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
96 elog "The following packages will give Eric extended functionality:" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
97 elog " dev-python/pylint" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
98 elog " dev-python/pysvn" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
99 elog |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
100 elog "This version has a plugin interface with plugin-autofetch from" |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
101 elog "the application itself. You may want to check those as well." |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
102 elog |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
103 } |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
104 |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
105 pkg_postrm() { |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
106 python_mod_cleanup eric5{,config.py,plugins} |
b5842c196f43
add ebuild for the latest eric5 ide
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
107 } |