blob: f52328d25a4841893ea8bb73799b9e9821d4f2ea (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/wxglade/wxglade-0.3.2.ebuild,v 1.3 2004/06/25 02:50:46 agriffis Exp $
S="${WORKDIR}/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/wxGlade-${PV}.tgz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND=">=dev-lang/python-2.2
>=dev-python/wxPython-2.4.2.4"
src_install() {
PY_VER=`python -c 'import sys;print sys.version[0:3]'`
dodir /usr/lib/python${PY_VER}/site-packages/${PN}
dodoc *txt
cp credits.txt ${D}/usr/lib/python${PY_VER}/site-packages/${PN}/
dohtml -r docs/*
rm -rf docs *txt
mv examples ${D}/usr/share/doc/${PF}
cp -R * ${D}/usr/lib/python${PY_VER}/site-packages/${PN}/
dosym /usr/share/doc/${PF}/html /usr/lib/python${PY_VER}/site-packages/${PN}/docs
echo "#!/bin/bash" > wxglade
echo "/usr/lib/python${PY_VER}/site-packages/${PN}/wxglade.py" >> wxglade
exeinto /usr/bin
doexe wxglade
}
|