blob: bef62f8d012baa0671fa84401943b3494e8a744e (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/wxglade/wxglade-0.6.3-r1.ebuild,v 1.4 2010/09/18 18:21:25 armin76 Exp $
EAPI="2"
PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"
inherit eutils multilib python
MY_P="wxGlade-${PV}"
DESCRIPTION="Glade-like GUI designer which can generate Python, Perl, C++ or XRC code"
HOMEPAGE="http://wxglade.sourceforge.net/"
SRC_URI="mirror://sourceforge/wxglade/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~ppc sparc x86"
IUSE=""
DEPEND="dev-python/wxpython:2.8"
S="${WORKDIR}/${MY_P}"
RESTRICT_PYTHON_ABIS="3.*"
src_prepare() {
epatch "${FILESDIR}"/${P}-wxversion.patch
}
src_compile() {
:
}
src_install() {
dodoc CHANGES.txt README.txt TODO.txt
insinto /usr/share/pixmaps
newins icons/icon.xpm wxglade.xpm || die "installing wxglade.xpm failed"
doman "${S}"/debian/wxglade.1 || die "installing man failed"
rm -rf "${S}"/debian
dohtml -r "${S}"/docs/* || die "installing docs failied"
rm -rf "${S}"/docs
python_copy_sources
installation() {
pydir=$(python_get_sitedir)/${PN}
insinto "${pydir}"
doins "${S}"/credits.txt || die "installing credits.txt failed"
doins -r ./* || die "installing failed"
dosym /usr/share/doc/${PF}/html "${pydir}"/docs || die "doc symlink failed"
fperms 775 "${pydir}"/wxglade.py
dosym "${pydir}"/wxglade.py /usr/bin/wxglade-$(python_get_version) \
|| die "main symlink failed"
}
python_execute_function -s installation
python_generate_wrapper_scripts -E -f -q "${D}"usr/bin/wxglade
make_desktop_entry wxglade wxGlade wxglade "Development;GUIDesigner"
}
pkg_postinst() {
python_mod_optimize wxglade
}
pkg_postrm() {
python_mod_cleanup wxglade
}
|