summaryrefslogtreecommitdiff
blob: 49db345b886ef41c08e11ab0f6f576bceebbbb12 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eric/eric-3.3.1.ebuild,v 1.3 2004/02/23 13:14:28 mr_bones_ Exp $

IUSE="idl"

inherit distutils eutils

DESCRIPTION="eric3 is a full featured Python IDE that is written in PyQt using the QScintilla editor widget"
HOMEPAGE="http://www.die-offenbachs.de/detlev/eric3.html"
SRC_URI="http://www.die-offenbachs.de/detlev/files/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"

distutils_python_version
IDIR="/usr/lib/python${PYVER}/site-packages/eric3/"
ADIR=${IDIR}"apis/"

DEPEND="virtual/glibc
	sys-devel/libtool
	>=x11-libs/qt-3.1
	>=dev-python/qscintilla-1.53
	>=dev-lang/python-2.2.1
	>=dev-python/sip-3.8
	>=dev-python/PyQt-3.8.1"

RDEPEND="${RDEPEND}
	idl? ( net-misc/omniORB )"

src_compile() {
	epatch ${FILESDIR}/install.py.${PF}.diff
}

src_install() {
	cp ${S}/patch_modpython.py ${S}/eric/Tools
	python install.py \
		-b /usr/bin \
		-i ${D}
	dodoc	HISTORY LICENSE.GPL THANKS eric/README*
}

pkg_postinst() {
	einfo ""
	einfo "Execute the command \"ebuild /var/db/pkg/dev-util/${PF}/${PF}.ebuild config\""
	einfo to generate the api files for the autocompletion/calltips feature of eric3.
	einfo "The api files will be placed in \"${ADIR}\"."
	einfo "You have to configure their usage in the eric3 Preferences Dialog -> Editor -> APIs."
	einfo ""
	einfo "If you want to use eric3 with Mod_python, have a look at"
	einfo "\"${IDIR}Tools/patch_modpython.py\"."
	einfo ""
}

pkg_config() {
	mkdir ${ADIR}
	einfo "Creating api files... (get a coffee)"
	python ${IDIR}Tools/gen_python_api.py ${ADIR}
	python ${IDIR}Tools/gen_pyqt_api.py /usr/share/sip ${ADIR}
}