summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/wxglade/wxglade-0.3.3.ebuild')
-rw-r--r--dev-util/wxglade/wxglade-0.3.3.ebuild21
1 files changed, 12 insertions, 9 deletions
diff --git a/dev-util/wxglade/wxglade-0.3.3.ebuild b/dev-util/wxglade/wxglade-0.3.3.ebuild
index 4bc5f8cc19eb..72ae69f55502 100644
--- a/dev-util/wxglade/wxglade-0.3.3.ebuild
+++ b/dev-util/wxglade/wxglade-0.3.3.ebuild
@@ -1,11 +1,14 @@
# 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.3.ebuild,v 1.5 2004/08/26 17:36:22 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/wxglade/wxglade-0.3.3.ebuild,v 1.6 2004/08/30 20:14:57 pythonhead Exp $
-S="${WORKDIR}/wxGlade-${PV}"
+inherit python
+
+MY_P="wxGlade-${PV}"
+S="${WORKDIR}/${MY_P}"
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"
+SRC_URI="mirror://sourceforge/wxglade/${MY_P}.tgz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="x86 ~ppc ~amd64"
@@ -14,16 +17,16 @@ 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}
+ python_version
+ dodir /usr/lib/python${PYVER}/site-packages/${PN}
dodoc *txt
- cp credits.txt ${D}/usr/lib/python${PY_VER}/site-packages/${PN}/
+ cp credits.txt ${D}/usr/lib/python${PYVER}/site-packages/${PN}/
dohtml -r docs/*
rm -rf docs *txt
- 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
+ cp -R * ${D}/usr/lib/python${PYVER}/site-packages/${PN}/
+ dosym /usr/share/doc/${PF}/html /usr/lib/python${PYVER}/site-packages/${PN}/docs
echo "#!/bin/bash" > wxglade
- echo "/usr/lib/python${PY_VER}/site-packages/${PN}/wxglade.py" >> wxglade
+ echo "/usr/lib/python${PYVER}/site-packages/${PN}/wxglade.py" >> wxglade
exeinto /usr/bin
doexe wxglade
}