summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2007-05-13 21:35:35 +0000
committerMart Raudsepp <leio@gentoo.org>2007-05-13 21:35:35 +0000
commitcee7b2053eae7b9855a03e08de461a3c6b7832e7 (patch)
tree177885f2b0a4e2a8d0c5439412b99792e31551ae /dev-util/wxglade/wxglade-0.5.ebuild
parentFix FAQ link. (diff)
downloadhistorical-cee7b2053eae7b9855a03e08de461a3c6b7832e7.tar.gz
historical-cee7b2053eae7b9855a03e08de461a3c6b7832e7.tar.bz2
historical-cee7b2053eae7b9855a03e08de461a3c6b7832e7.zip
Version bump, bug 177171. Also install a desktop entry and handle python optimized files properly
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'dev-util/wxglade/wxglade-0.5.ebuild')
-rw-r--r--dev-util/wxglade/wxglade-0.5.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-util/wxglade/wxglade-0.5.ebuild b/dev-util/wxglade/wxglade-0.5.ebuild
new file mode 100644
index 000000000000..7b3b5105adc8
--- /dev/null
+++ b/dev-util/wxglade/wxglade-0.5.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/wxglade/wxglade-0.5.ebuild,v 1.1 2007/05/13 21:35:35 leio Exp $
+
+inherit python multilib eutils
+
+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=""
+S="${WORKDIR}/${MY_P}"
+DEPEND=">=dev-lang/python-2.3
+ >=dev-python/wxpython-2.6"
+
+src_install() {
+ python_version
+ dodir /usr/lib/python${PYVER}/site-packages/${PN}
+ dodoc CHANGES.txt README.txt TODO.txt credits.txt
+ cp credits.txt ${D}/usr/lib/python${PYVER}/site-packages/${PN}/
+ dohtml -r docs/*
+ rm -rf docs *txt
+ 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 "exec python /usr/lib/python${PYVER}/site-packages/${PN}/wxglade.py \$*" >> wxglade
+ exeinto /usr/bin
+ doexe wxglade
+ insinto /usr/share/pixmaps
+ newins icons/icon.xpm wxglade.xpm
+ make_desktop_entry wxglade wxGlade wxglade "Development;GUIDesigner"
+}
+
+pkg_postinst() {
+ python_mod_optimize ${ROOT}usr/$(get_libdir)/python*/site-packages/wxglade
+}
+
+pkg_postrm() {
+ python_mod_cleanup ${ROOT}usr/$(get_libdir)/python*/site-packages/wxglade
+}