summaryrefslogtreecommitdiff
blob: 0031b6c01d1efddeede2798ab816d7dd123a4f88 (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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

NEED_PYTHON=2.1

inherit distutils python

DESCRIPTION="EVBU simulates the execution of a 68HC11 microcontroller."
HOMEPAGE="http://claymore.engineer.gvsu.edu/~steriana/Python/"
SRC_URI="http://claymore.engineer.gvsu.edu/%7Esteriana/courses/Downloads/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="virtual/python
        dev-python/setuptools"
RDEPEND="virtual/python
         >=dev-python/wxpython-2.3.2"

DOCS="COPYING README"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-wx.patch
	epatch "${FILESDIR}"/${P}-pysimwx.patch
	sed '$d' < misc/evbu > misc/evbu-new
	mv misc/evbu-new misc/evbu
	echo python $(python_get_sitedir)/${PN}/${PN}.py \$\* >> misc/evbu
}

src_install() {
	distutils_src_install
	dobin misc/evbu
	dohtml doc/*
}

pkg_postrm() {
	python_mod_cleanup
}