summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2008-03-11 03:36:19 +0000
committerRyan Hill <dirtyepic@gentoo.org>2008-03-11 03:36:19 +0000
commit2f05a24083983f5b52f67ff27f1e154f205c56dd (patch)
tree7b95a0efd463b071b208129be7db8ecfc75b1561 /dev-util/wxglade
parentStable for HPPA (bug #212930). (diff)
downloadgentoo-2-2f05a24083983f5b52f67ff27f1e154f205c56dd.tar.gz
gentoo-2-2f05a24083983f5b52f67ff27f1e154f205c56dd.tar.bz2
gentoo-2-2f05a24083983f5b52f67ff27f1e154f205c56dd.zip
Version bump. Now requires wxpython-2.8.
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-util/wxglade')
-rw-r--r--dev-util/wxglade/ChangeLog8
-rw-r--r--dev-util/wxglade/files/wxglade-0.6.3-wxversion.patch12
-rw-r--r--dev-util/wxglade/wxglade-0.6.3.ebuild50
3 files changed, 69 insertions, 1 deletions
diff --git a/dev-util/wxglade/ChangeLog b/dev-util/wxglade/ChangeLog
index b55b81384e0f..e1e48d5bb37d 100644
--- a/dev-util/wxglade/ChangeLog
+++ b/dev-util/wxglade/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/wxglade
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/wxglade/ChangeLog,v 1.45 2008/01/28 16:11:21 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/wxglade/ChangeLog,v 1.46 2008/03/11 03:36:19 dirtyepic Exp $
+
+*wxglade-0.6.3 (11 Mar 2008)
+
+ 11 Mar 2008; Ryan Hill <dirtyepic@gentoo.org>
+ +files/wxglade-0.6.3-wxversion.patch, +wxglade-0.6.3.ebuild:
+ Version bump. Now requires wxpython-2.8.
28 Jan 2008; Raúl Porcel <armin76@gentoo.org> metadata.xml:
Replace wxwindows with wxwidgets in metadata
diff --git a/dev-util/wxglade/files/wxglade-0.6.3-wxversion.patch b/dev-util/wxglade/files/wxglade-0.6.3-wxversion.patch
new file mode 100644
index 000000000000..319bb85c1663
--- /dev/null
+++ b/dev-util/wxglade/files/wxglade-0.6.3-wxversion.patch
@@ -0,0 +1,12 @@
+diff -Naur wxGlade-0.6.1-orig/main.py wxGlade-0.6.1/main.py
+--- wxGlade-0.6.1-orig/main.py 2007-10-25 01:03:22.000000000 -0600
++++ wxGlade-0.6.1/main.py 2007-12-04 09:36:20.000000000 -0600
+@@ -7,7 +7,7 @@
+ # THIS PROGRAM COMES WITH NO WARRANTY
+
+ import wxversion
+-wxversion.ensureMinimal("2.6")
++wxversion.select("2.8")
+
+ #from wxPython.wx import *
+ import wx
diff --git a/dev-util/wxglade/wxglade-0.6.3.ebuild b/dev-util/wxglade/wxglade-0.6.3.ebuild
new file mode 100644
index 000000000000..bac18a7b4aec
--- /dev/null
+++ b/dev-util/wxglade/wxglade-0.6.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2008 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.ebuild,v 1.1 2008/03/11 03:36:19 dirtyepic 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.8*"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-wxversion.patch
+}
+
+src_install() {
+ python_version
+ dodir /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+ dodoc CHANGES.txt README.txt TODO.txt credits.txt
+ cp credits.txt "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}/
+ dohtml -r docs/*
+ rm -rf docs *txt
+ cp -R * "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}/
+ dosym /usr/share/doc/${PF}/html /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}/docs
+ echo "#!/bin/bash" > wxglade
+ echo "exec python /usr/$(get_libdir)/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
+}