summaryrefslogtreecommitdiff
path: root/dev-python/bicyclerepair
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/bicyclerepair')
-rw-r--r--dev-python/bicyclerepair/ChangeLog73
-rw-r--r--dev-python/bicyclerepair/Manifest12
-rw-r--r--dev-python/bicyclerepair/bicyclerepair-0.7.1-r1.ebuild41
-rw-r--r--dev-python/bicyclerepair/bicyclerepair-0.7.1.ebuild33
-rw-r--r--dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild65
-rw-r--r--dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild.diff58
-rw-r--r--dev-python/bicyclerepair/bicyclerepair-0.9.ebuild54
-rw-r--r--dev-python/bicyclerepair/files/50bicyclerepair-gentoo.el10
-rw-r--r--dev-python/bicyclerepair/files/bicyclerepair-fix-idle.patch41
-rw-r--r--dev-python/bicyclerepair/files/bicyclerepair-fix-invalid-syntax.patch11
-rw-r--r--dev-python/bicyclerepair/metadata.xml5
11 files changed, 403 insertions, 0 deletions
diff --git a/dev-python/bicyclerepair/ChangeLog b/dev-python/bicyclerepair/ChangeLog
new file mode 100644
index 0000000..65ad7f1
--- /dev/null
+++ b/dev-python/bicyclerepair/ChangeLog
@@ -0,0 +1,73 @@
+# ChangeLog for dev-python/bicyclerepair
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bicyclerepair/ChangeLog,v 1.18 2008/03/21 09:16:16 opfer Exp $
+
+ 21 Mar 2008; Christian Faulhammer <opfer@gentoo.org>
+ bicyclerepair-0.9-r1.ebuild:
+ stable x86, bug 213994
+
+*bicyclerepair-0.9-r1 (23 Jan 2008)
+
+ 23 Jan 2008; Christian Faulhammer <opfer@gentoo.org>
+ +files/50bicyclerepair-gentoo.el, bicyclerepair-0.9.ebuild,
+ +bicyclerepair-0.9-r1.ebuild:
+ fix automagic Emacs dependency and make it a proper DEPEND, see bug 92219,
+ reported by dan <reddan AT warpmail DOT net>, fix provided by ulm
+
+ 04 Jul 2007; Ali Polatel <hawking@gentoo.org> bicyclerepair-0.7.1.ebuild,
+ bicyclerepair-0.7.1-r1.ebuild, bicyclerepair-0.9.ebuild:
+ use DOCS, mydoc is deprecated
+
+ 25 Jun 2007; Ali Polatel <hawking@gentoo.org>
+ bicyclerepair-0.7.1-r1.ebuild, bicyclerepair-0.9.ebuild:
+ removed unneeded emtpy lines
+
+ 05 Mar 2007; Marius Mauch <genone@gentoo.org> bicyclerepair-0.7.1.ebuild,
+ bicyclerepair-0.7.1-r1.ebuild, bicyclerepair-0.9.ebuild:
+ Replacing einfo with elog
+
+ 21 Feb 2007; Lukasz Strzygowski <lucass@gentoo.org>
+ files/digest-bicyclerepair-0.7.1, files/digest-bicyclerepair-0.7.1-r1,
+ Manifest:
+ Fixed missing chksums.
+
+ 01 Aug 2006; Tom Gall <tgall@gentoo.org> bicyclerepair-0.9.ebuild:
+ added ~ppc64
+
+ 01 Apr 2006; Aron Griffis <agriffis@gentoo.org> bicyclerepair-0.9.ebuild:
+ Mark 0.9 ~ia64
+
+ 19 Nov 2005; <dang@gentoo.org> bicyclerepair-0.9.ebuild:
+ Marked ~amd64
+
+*bicyclerepair-0.9 (12 Feb 2005)
+
+ 12 Feb 2005; Bryan Østergaard <kloeri@gentoo.org>
+ +bicyclerepair-0.9.ebuild:
+ Version bump.
+
+ 30 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 04 May 2004; Bryan Østergaard <kloeri@gentoo.org>
+ bicyclerepair-0.7.1.ebuild:
+ Remove default S.
+
+ 15 Jan 2004; Rob Cakebread <pythonhead@gentoo.org>
+ bicyclerepair-0.7.1-r1.ebuild:
+ Added more einfo for [x]emacs users
+
+*bicyclerepair-0.7.1-r1 (15 Jan 2004)
+
+ 15 Jan 2004; Rob Cakebread <pythonhead@gentoo.org>
+ bicyclerepair-0.7.1-r1.ebuild:
+ Added bike.el file for [x]emacs users and info for IDLE integration. Bug #38191
+
+*bicyclerepair-0.7.1 (08 Mar 2003)
+
+ 04 Apr 2003; Alastair Tse <liquidx@gentoo.org> bicyclerepair-0.7.1.ebuild:
+ bump to stable
+
+ 08 Mar 2003; Alastair Tse <liquidx@gentoo.org> bicyclerepair-0.7.1.ebuild:
+ initial ebuild. thanks to Lin Zhemin <ljm@ljm.idv.tw> (#16448)
+
diff --git a/dev-python/bicyclerepair/Manifest b/dev-python/bicyclerepair/Manifest
new file mode 100644
index 0000000..2566d90
--- /dev/null
+++ b/dev-python/bicyclerepair/Manifest
@@ -0,0 +1,12 @@
+AUX 50bicyclerepair-gentoo.el 196 RMD160 4f3ea645adb8ea1f9d678712d2a145cbeed5d6ff SHA1 3789ae3b869a3b59f3c0361f97400b2899e990ac SHA256 37e59786c0046262b09d5f2a3bd70d5a1bb52ceef4bae5942be5b34729ca87a0
+AUX bicyclerepair-fix-idle.patch 1525 RMD160 bf7f871cd1239b1d4e1c23f8b4ebd00c0d574ef5 SHA1 693e3e0cb4a09db37adc6fd3db2473a3df5a3edb SHA256 536dd7cde301c2c2049081ab258001fdd3ea75f6427cd0e4f38af278b5bdd0fc
+AUX bicyclerepair-fix-invalid-syntax.patch 340 RMD160 07c2ce8910b90163976674a86fcbcbe10e47022f SHA1 35cb42969fb61444a906a261ed125592d19bda74 SHA256 97f74cf713336da9e092823acfe31bf285535c30d1fbcf462ab6afec5a2a50ca
+DIST bicyclerepair-0.7.1.tar.gz 87885 RMD160 b288dbfabbbc56da1c99af1b4d86b3abc394aaa3 SHA1 eacd46bf1008bf4a9b37e8add1d3107547d62c51 SHA256 86f5468a46dec7c0eeab7b742e17490ede9aef7bd54e378061d9171deb735ad6
+DIST bicyclerepair-0.9.tar.gz 165025 RMD160 18f274c2078f481b63e20a7f50aa14119dbdf55e SHA1 269c0fda6111b9c5cb631d46626083a9d213baec SHA256 69509eebaeb595ad1d14291b47c6236df97abd5893352965055d91b0cfaea116
+EBUILD bicyclerepair-0.7.1-r1.ebuild 1353 RMD160 fc6a2eef1c62eb2c3b27c82d75018b65e56092f6 SHA1 f458dbaffc0657a5598fab4d9638396a9cb4afa2 SHA256 6072f3edffe19a2eb979780966f2673d9617f636525cab5a7ef2b18f00b6cc5e
+EBUILD bicyclerepair-0.7.1.ebuild 1018 RMD160 91e2289e6347d48f2541aca139c1513375866bf9 SHA1 aa1d3706e90bd79b90b7fa9d0d7145ac925bd3d4 SHA256 bed25f2017ea1607babd7b40b9cb40721a5d1da38ada9330839e594c953ced0e
+EBUILD bicyclerepair-0.9-r1.ebuild 1996 RMD160 6a420172fcd82ec89b5c4e3e7cab0adef5da94f3 SHA1 1ef915b8bf71cf1835af84de183db4d07130c72f SHA256 129d1aaa3fc1b45966d2f9ac5b8fc83636cb766b2f9229c7ecb5d3830a39f505
+EBUILD bicyclerepair-0.9.ebuild 1504 RMD160 f98f188858e7cc34d0c906b156a5ce5428a1f218 SHA1 6f7ccc590b82794fbc73c5ae55fef77623d2985c SHA256 be273bf65a092b1bfb1f579aa6303a962f21e29e8149d31a3aaeaf826e67f728
+MISC .bicyclerepair-0.9-r1.ebuild.swp 12288 RMD160 3e9c253014bf2c586881b025b8681c7e6ea605ee SHA1 4772947d7b1790b33d234551be45b712abb6f61a SHA256 2676de048c3d7e0b0132a8880955271f2035f6027dd732bc8b62e2a211d0f366
+MISC ChangeLog 2505 RMD160 8ddc1d6385375d1711bd3cd519081212dc96ab76 SHA1 ff894e2f34f1751f70a5db344aaa34107e5b3d8d SHA256 cef4dd7b2b68a09a7bbff6f90f0bf55f79f2c518caef050de40f6f54d65c82a1
+MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4
diff --git a/dev-python/bicyclerepair/bicyclerepair-0.7.1-r1.ebuild b/dev-python/bicyclerepair/bicyclerepair-0.7.1-r1.ebuild
new file mode 100644
index 0000000..8f73d58
--- /dev/null
+++ b/dev-python/bicyclerepair/bicyclerepair-0.7.1-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bicyclerepair/bicyclerepair-0.7.1-r1.ebuild,v 1.7 2007/07/04 19:16:33 hawking Exp $
+
+inherit distutils
+
+DESCRIPTION="Bicycle Repair Man is the Python Refactoring Browser,"
+HOMEPAGE="http://bicyclerepair.sourceforge.net/"
+SRC_URI="mirror://sourceforge/bicyclerepair/${P}.tar.gz"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="x86 ~ppc"
+IUSE=""
+DEPEND="virtual/python"
+
+src_install() {
+ DOCS="DESIGN"
+ distutils_src_install
+ insinto /usr/share/${PN}
+ doins ide-integration/bike.el
+ rm -f ${D}/usr/bin/bikeemacs.bat
+}
+
+pkg_postinst() {
+ # Enable IDLE integration if Python was compiled with tcltk.
+ PYTHON_VER=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:')
+ config_txt=/usr/lib/python${PYTHON_VER}/tools/idle/config.txt
+ if [ -f "${config_txt}" ];
+ then
+ if [ -z "`grep BicycleRepairMan_Idle ${config_txt}`" ]; then
+ elog "Appending BicycleRepairman to IDLE.."
+ echo "[BicycleRepairMan_Idle]" >> ${config_txt}
+ fi
+ else
+ elog "BicycleRepairMan won't integrate with IDLE included in Python 2.3*"
+ fi
+ elog
+ elog "To use bicyclerepair with Xemacs or GNU Emacs you must be in Python"
+ elog "mode and add this to your .emacs or .init.el:"
+ elog "(load-library '/usr/share/bicyclerepair/bike.el')"
+}
diff --git a/dev-python/bicyclerepair/bicyclerepair-0.7.1.ebuild b/dev-python/bicyclerepair/bicyclerepair-0.7.1.ebuild
new file mode 100644
index 0000000..3be0982
--- /dev/null
+++ b/dev-python/bicyclerepair/bicyclerepair-0.7.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bicyclerepair/bicyclerepair-0.7.1.ebuild,v 1.11 2007/07/04 19:16:33 hawking Exp $
+
+inherit distutils
+
+DESCRIPTION="Bicycle Repair Man is the Python Refactoring Browser,"
+HOMEPAGE="http://bicyclerepair.sourceforge.net/"
+SRC_URI="mirror://sourceforge/bicyclerepair/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="x86 ~ppc"
+IUSE=""
+DEPEND="virtual/python"
+
+src_install() {
+ DOCS="DESIGN"
+ distutils_src_install
+ rm -f ${D}/usr/bin/bikeemacs.bat
+}
+
+pkg_postinst() {
+ # Enable IDLE integration if Python was compiled with tcltk.
+ PYTHON_VER=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:')
+ config_txt=/usr/lib/python${PYTHON_VER}/tools/idle/config.txt
+ if [ -f "${config_txt}" ]; then
+ if [ -z "`grep BicycleRepairMan_Idle ${config_txt}`" ]; then
+ elog "Appending BicycleRepairman to IDLE.."
+ echo "[BicycleRepairMan_Idle]" >> ${config_txt}
+ fi
+ fi
+}
diff --git a/dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild b/dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild
new file mode 100644
index 0000000..9f0954e
--- /dev/null
+++ b/dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild,v 1.2 2008/03/21 09:16:16 opfer Exp $
+
+inherit distutils elisp-common eutils
+
+DESCRIPTION="Bicycle Repair Man is the Python Refactoring Browser"
+HOMEPAGE="http://bicyclerepair.sourceforge.net/"
+SRC_URI="mirror://sourceforge/bicyclerepair/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 x86"
+IUSE="emacs"
+
+DEPEND="virtual/python
+ emacs? ( app-emacs/pymacs
+ app-emacs/python-mode )"
+
+SITEFILE=50${PN}-gentoo.el
+PYTHON_MODNAME="bike"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/bicyclerepair-fix-invalid-syntax.patch" "${FILESDIR}/bicyclerepair-fix-idle.patch"
+ # bikeemacs.py contains non-ascii characters in comments
+ sed -i -e '1s/$/\t-*- coding: latin-1 -*-/' ide-integration/bikeemacs.py
+}
+
+src_install() {
+ distutils_src_install
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+ fi
+}
+
+pkg_postinst() {
+ python_version
+ # Enable IDLE integration if Python was compiled with tcltk.
+ config_txt="${ROOT}usr/$(get_libdir)/python${PYVER}/tools/idle/config.txt"
+ if [ -f "${config_txt}" ];
+ then
+ if [ -z "`grep BicycleRepairMan_Idle ${config_txt}`" ]; then
+ elog "Appending BicycleRepairman to IDLE.."
+ echo "[BicycleRepairMan_Idle]" >> ${config_txt}
+ fi
+ else
+ elog "BicycleRepairMan won't integrate with IDLE"
+ fi
+ use emacs && elisp-site-regen
+
+ # compile python files -- including the ones not installed into site-packages
+ distutils_pkg_postinst
+ python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/bikeemacs.py
+ python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/BicycleRepairMan_Idle.py
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+
+ # as there are files not installed into site-packages, we need to run
+ # python_mod_cleanup instead of distutils_pkg_postrm
+ python_mod_cleanup
+}
diff --git a/dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild.diff b/dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild.diff
new file mode 100644
index 0000000..db56479
--- /dev/null
+++ b/dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild.diff
@@ -0,0 +1,58 @@
+--- /usr/portage/dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild 2008-03-21 10:36:17.000000000 +0100
++++ bicyclerepair-0.9-r1.ebuild 2008-07-21 22:16:38.000000000 +0200
+@@ -2,7 +2,7 @@
+ # Distributed under the terms of the GNU General Public License v2
+ # $Header: /var/cvsroot/gentoo-x86/dev-python/bicyclerepair/bicyclerepair-0.9-r1.ebuild,v 1.2 2008/03/21 09:16:16 opfer Exp $
+
+-inherit distutils elisp-common
++inherit distutils elisp-common eutils
+
+ DESCRIPTION="Bicycle Repair Man is the Python Refactoring Browser"
+ HOMEPAGE="http://bicyclerepair.sourceforge.net/"
+@@ -18,10 +18,12 @@
+ app-emacs/python-mode )"
+
+ SITEFILE=50${PN}-gentoo.el
++PYTHON_MODNAME="bike"
+
+ src_unpack() {
+ unpack ${A}
+ cd "${S}"
++ epatch "${FILESDIR}/bicyclerepair-fix-invalid-syntax.patch" "${FILESDIR}/bicyclerepair-fix-idle.patch"
+ # bikeemacs.py contains non-ascii characters in comments
+ sed -i -e '1s/$/\t-*- coding: latin-1 -*-/' ide-integration/bikeemacs.py
+ }
+@@ -34,9 +36,9 @@
+ }
+
+ pkg_postinst() {
++ python_version
+ # Enable IDLE integration if Python was compiled with tcltk.
+- PYTHON_VER=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:')
+- config_txt=/usr/lib/python${PYTHON_VER}/tools/idle/config.txt
++ config_txt="${ROOT}usr/$(get_libdir)/python${PYVER}/tools/idle/config.txt"
+ if [ -f "${config_txt}" ];
+ then
+ if [ -z "`grep BicycleRepairMan_Idle ${config_txt}`" ]; then
+@@ -44,11 +46,20 @@
+ echo "[BicycleRepairMan_Idle]" >> ${config_txt}
+ fi
+ else
+- elog "BicycleRepairMan won't integrate with IDLE included in Python 2.3*"
++ elog "BicycleRepairMan won't integrate with IDLE"
+ fi
+ use emacs && elisp-site-regen
++
++ # compile python files -- including the ones not installed into site-packages
++ distutils_pkg_postinst
++ python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/bikeemacs.py
++ python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/BicycleRepairMan_Idle.py
+ }
+
+ pkg_postrm() {
+ use emacs && elisp-site-regen
++
++ # as there are files not installed into site-packages, we need to run
++ # python_mod_cleanup instead of distutils_pkg_postrm
++ python_mod_cleanup
+ }
diff --git a/dev-python/bicyclerepair/bicyclerepair-0.9.ebuild b/dev-python/bicyclerepair/bicyclerepair-0.9.ebuild
new file mode 100644
index 0000000..9a43d07
--- /dev/null
+++ b/dev-python/bicyclerepair/bicyclerepair-0.9.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bicyclerepair/bicyclerepair-0.9.ebuild,v 1.8 2008/01/23 21:45:35 opfer Exp $
+
+inherit distutils elisp-common
+
+DESCRIPTION="Bicycle Repair Man is the Python Refactoring Browser"
+HOMEPAGE="http://bicyclerepair.sourceforge.net/"
+SRC_URI="mirror://sourceforge/bicyclerepair/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="emacs"
+
+DEPEND="virtual/python
+ emacs? ( app-emacs/pymacs
+ app-emacs/python-mode )"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # bikeemacs.py contains non-ascii characters in comments
+ sed -i -e '1s/$/\t-*- coding: latin-1 -*-/' ide-integration/bikeemacs.py
+}
+
+src_install() {
+ distutils_src_install
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+ fi
+}
+
+pkg_postinst() {
+ # Enable IDLE integration if Python was compiled with tcltk.
+ PYTHON_VER=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:')
+ config_txt=/usr/lib/python${PYTHON_VER}/tools/idle/config.txt
+ if [ -f "${config_txt}" ];
+ then
+ if [ -z "`grep BicycleRepairMan_Idle ${config_txt}`" ]; then
+ elog "Appending BicycleRepairman to IDLE.."
+ echo "[BicycleRepairMan_Idle]" >> ${config_txt}
+ fi
+ else
+ elog "BicycleRepairMan won't integrate with IDLE included in Python 2.3*"
+ fi
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-python/bicyclerepair/files/50bicyclerepair-gentoo.el b/dev-python/bicyclerepair/files/50bicyclerepair-gentoo.el
new file mode 100644
index 0000000..edad427
--- /dev/null
+++ b/dev-python/bicyclerepair/files/50bicyclerepair-gentoo.el
@@ -0,0 +1,10 @@
+
+;;; bicyclerepair site-lisp configuration
+
+(add-hook
+ 'python-mode-hook
+ (lambda ()
+ (unless (fboundp 'brm-menu)
+ (require 'pymacs)
+ (pymacs-load "bikeemacs" "brm-")
+ (brm-init))))
diff --git a/dev-python/bicyclerepair/files/bicyclerepair-fix-idle.patch b/dev-python/bicyclerepair/files/bicyclerepair-fix-idle.patch
new file mode 100644
index 0000000..ff7e6f8
--- /dev/null
+++ b/dev-python/bicyclerepair/files/bicyclerepair-fix-idle.patch
@@ -0,0 +1,41 @@
+=== modified file 'ide-integration/BicycleRepairMan_Idle.py'
+--- ide-integration/BicycleRepairMan_Idle.py 2008-07-21 20:08:33 +0000
++++ ide-integration/BicycleRepairMan_Idle.py 2008-07-21 20:15:02 +0000
+@@ -300,21 +300,21 @@
+ return 1
+
+
+-    def confirm_buffer_is_saved(self, editwin):
+-        if not editwin.get_saved():
+-            name = (editwin.short_title()or
+-            editwin.long_title()or
+-            "Untitled")
+-            reply = tkMessageBox.askokcancel("Bicycle Repair Man",
+-                "The buffer for %s is not saved.\n\n"%name+
+-                "Save it and continue?",
+-                master = self.editwin.text)
+-          &nbs p; self.editwin.text.focus_set()
+-            if reply:
+-                editwin.io.save(None)
+-            else:
+-                return 0
+-        return 1
++ def confirm_buffer_is_saved(self, editwin):
++ if not editwin.get_saved():
++ name = (editwin.short_title()or
++ editwin.long_title()or
++ "Untitled")
++ reply = tkMessageBox.askokcancel("Bicycle Repair Man",
++ "The buffer for %s is not saved.\n\n"%name+
++ "Save it and continue?",
++ master = self.editwin.text)
++ self.editwin.text.focus_set()
++ if reply:
++ editwin.io.save(None)
++ else:
++ return 0
++ return 1
+
+ def errorbox(self, title, message):
+ tkMessageBox.showerror(title, message, master = self.editwin.text)
+
diff --git a/dev-python/bicyclerepair/files/bicyclerepair-fix-invalid-syntax.patch b/dev-python/bicyclerepair/files/bicyclerepair-fix-invalid-syntax.patch
new file mode 100644
index 0000000..c32fdb6
--- /dev/null
+++ b/dev-python/bicyclerepair/files/bicyclerepair-fix-invalid-syntax.patch
@@ -0,0 +1,11 @@
+=== modified file 'bike/query/getPackageDependencies.py'
+--- bike/query/getPackageDependencies.py 2008-07-21 19:37:44 +0000
++++ bike/query/getPackageDependencies.py 2008-07-21 19:38:11 +0000
+@@ -2,5 +2,5 @@
+
+ # fileInPackage is the filename of a file in the package hierarchy
+ def getPackageDependencies(fileInPackage):
+-
++ pass
+
+
diff --git a/dev-python/bicyclerepair/metadata.xml b/dev-python/bicyclerepair/metadata.xml
new file mode 100644
index 0000000..de483c5
--- /dev/null
+++ b/dev-python/bicyclerepair/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>python</herd>
+</pkgmetadata>