summaryrefslogtreecommitdiff
blob: 423e3b1e337af10d6410c3a6ee3c17c9a5265147 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/drpython/drpython-3.10.13.ebuild,v 1.5 2006/04/01 14:50:07 agriffis Exp $

inherit eutils distutils

DESCRIPTION="A powerful cross-platform IDE for Python"
HOMEPAGE="http://drpython.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
IUSE=""
RDEPEND=">=dev-python/wxpython-2.6"
DEPEND="app-arch/unzip"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/drpython.py-${PV}.patch
}

src_install() {
	distutils_python_version

	local destdir="/usr/lib/python${PYVER}/site-packages/${PN}/"
	dodir  ${destdir}/bitmaps/{16,24}
	cp -R bitmaps ${D}/${destdir} || die "Failed to cp bitmaps"

	distutils_src_install

	#Windows-only setup script:
	rm ${D}/usr/bin/postinst.py

	echo -e "#!/bin/sh\n\npython ${destdir}/drpython.py \$@" > drpython
	dobin drpython
}

pkg_postinst() {
	einfo "See the DrPython homepage for 20+ available plugins:"
	einfo "http://sourceforge.net/project/showfiles.php?group_id=83074"
}