--- pythoncard-0.8.2.orig/configuration.py +++ pythoncard-0.8.2/configuration.py @@ -29,7 +29,9 @@ # KEA 2003-06-04 # the config dir was named .pythoncard in release 0.7 # but this caused problems on Windows and the Mac OS X Finder -PYTHONCARD_CONFIG_DIR = "pythoncard_config" +# KJP 2004-12-19 Changed for Debian back to .pythoncard to be more consistent +# PYTHONCARD_CONFIG_DIR = "pythoncard_config" +PYTHONCARD_CONFIG_DIR = ".pythoncard" PYTHONCARD_CONFIG_FILE = 'pythoncard_config.txt' @@ -64,7 +66,9 @@ default_homedir = sys.path[0] homedir = default_homedir else: - default_homedir = os.path.dirname(os.path.abspath(__file__)) + # KJP 2004-12-19 Changed for Debian to put shared data in a more "correct" place + #default_homedir = os.path.dirname(os.path.abspath(__file__)) + default_homedir = "/usr/share/pythoncard" #print "default_homedir", default_homedir for evar in ('HOME', 'USERPROFILE', 'TMP'): try: --- pythoncard-0.8.2.orig/flatfileDatabase.py +++ pythoncard-0.8.2/flatfileDatabase.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.26 $" __date__ = "$Date: 2005/01/24 10:28:20 $" --- pythoncard-0.8.2.orig/STCStyleEditor.py +++ pythoncard-0.8.2/STCStyleEditor.py @@ -1323,7 +1323,7 @@ home = os.environ.get('HOME') if home: - home = os.path.join(home, 'pythoncard_config') + home = os.path.join(home, '.pythoncard') if not os.path.exists(home): home = '.' else: --- pythoncard-0.8.2.orig/gadflyDatabase.py +++ pythoncard-0.8.2/gadflyDatabase.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - __version__ = "$Revision: 1.11 $" __date__ = "$Date: 2004/08/12 19:40:39 $" --- pythoncard-0.8.2.orig/setup.py +++ pythoncard-0.8.2/setup.py @@ -55,9 +55,10 @@ # This should all be replaced by calls to os.path.walk, but later listX=[startDir] for fyle in os.listdir(startDir): - file=os.path.join(startDir,fyle) - if os.path.isdir(file): - listX.extend(recurseDir(file)) + if fyle != "debian": + file=os.path.join(startDir,fyle) + if os.path.isdir(file): + listX.extend(recurseDir(file)) return listX def makeDataDirs(rootDir=APPLICATION_NAME, dataDirs=['.', 'docs','samples', 'tools']): @@ -94,7 +95,8 @@ platforms = "Mac OS X, Windows, Linux", packages=[APPLICATION_NAME, APPLICATION_NAME + ".components", APPLICATION_NAME + ".templates", APPLICATION_NAME + ".templates.dialogs"], package_dir={APPLICATION_NAME: '.'}, - scripts=["install-pythoncard.py"], + #Removed for Debian + #scripts=["install-pythoncard.py"], license="BSD", cmdclass = { 'install_data': smart_install_data}, data_files=makeDataDirs(), --- pythoncard-0.8.2.orig/tests/runTimeTest.py +++ pythoncard-0.8.2/tests/runTimeTest.py @@ -64,4 +64,5 @@ Path example: myPanel.myMenu """ pass - \ No newline at end of file + + --- pythoncard-0.8.2.orig/tests/__init__.py.debdiff +++ pythoncard-0.8.2/tests/__init__.py.debdiff @@ -0,0 +1 @@ +# Just keep lintian happy --- pythoncard-0.8.2.orig/templates/htmlpreview.py +++ pythoncard-0.8.2/templates/htmlpreview.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/07/26 15:54:31 $" --- pythoncard-0.8.2.orig/tools/codeEditor/restEditor.py +++ pythoncard-0.8.2/tools/codeEditor/restEditor.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python """ __version__ = "$Revision: 1.7 $" __date__ = "$Date: 2004/08/27 02:03:25 $" --- pythoncard-0.8.2.orig/tools/codeEditor/codeEditorR.py +++ pythoncard-0.8.2/tools/codeEditor/codeEditorR.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python """ __version__ = "$Revision: 1.14 $" __date__ = "$Date: 2004/09/16 21:11:33 $" --- pythoncard-0.8.2.orig/tools/codeEditor/codeEditor.py +++ pythoncard-0.8.2/tools/codeEditor/codeEditor.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python """ __version__ = "$Revision: 1.126 $" __date__ = "$Date: 2005/12/19 23:18:04 $" --- pythoncard-0.8.2.orig/tools/textEditor/textEditor.pyw +++ pythoncard-0.8.2/tools/textEditor/textEditor.pyw @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.76 $" __date__ = "$Date: 2004/09/30 23:59:06 $" --- pythoncard-0.8.2.orig/tools/oneEditor/codePage.py +++ pythoncard-0.8.2/tools/oneEditor/codePage.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python """ __version__ = "$Revision: 1.5 $" __date__ = "$Date: 2005/12/29 02:48:25 $" --- pythoncard-0.8.2.orig/tools/oneEditor/tabcodeEditor.py +++ pythoncard-0.8.2/tools/oneEditor/tabcodeEditor.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python """ __version__ = "$Revision: 1.15 $" __date__ = "$Date: 2005/12/29 02:48:25 $" --- pythoncard-0.8.2.orig/tools/oneEditor/restEditor.py +++ pythoncard-0.8.2/tools/oneEditor/restEditor.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/10/03 23:58:01 $" --- pythoncard-0.8.2.orig/tools/oneEditor/resourceEditor.py +++ pythoncard-0.8.2/tools/oneEditor/resourceEditor.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/10/03 23:58:01 $" --- pythoncard-0.8.2.orig/tools/oneEditor/templates/template.py +++ pythoncard-0.8.2/tools/oneEditor/templates/template.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/10/03 23:58:02 $" --- pythoncard-0.8.2.orig/tools/oneEditor/templates/templateNoMenus.py +++ pythoncard-0.8.2/tools/oneEditor/templates/templateNoMenus.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/10/03 23:58:02 $" --- pythoncard-0.8.2.orig/tools/oneEditor/templates/templateFullMenus.py +++ pythoncard-0.8.2/tools/oneEditor/templates/templateFullMenus.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/10/03 23:58:02 $" --- pythoncard-0.8.2.orig/tools/oneEditor/modules/propertyEditor.py +++ pythoncard-0.8.2/tools/oneEditor/modules/propertyEditor.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/10/03 23:58:01 $" --- pythoncard-0.8.2.orig/tools/resourceEditor/resourceEditor.py +++ pythoncard-0.8.2/tools/resourceEditor/resourceEditor.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.225 $" __date__ = "$Date: 2005/12/24 04:45:57 $" --- pythoncard-0.8.2.orig/tools/resourceEditor/templates/template.py +++ pythoncard-0.8.2/tools/resourceEditor/templates/template.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.5 $" __date__ = "$Date: 2004/04/30 16:26:12 $" --- pythoncard-0.8.2.orig/tools/resourceEditor/templates/templateNoMenus.py +++ pythoncard-0.8.2/tools/resourceEditor/templates/templateNoMenus.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.3 $" __date__ = "$Date: 2004/04/14 02:38:47 $" --- pythoncard-0.8.2.orig/tools/resourceEditor/templates/templateFullMenus.py +++ pythoncard-0.8.2/tools/resourceEditor/templates/templateFullMenus.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.10 $" __date__ = "$Date: 2004/08/12 19:14:23 $" --- pythoncard-0.8.2.orig/tools/resourceEditor/modules/propertyEditor.py +++ pythoncard-0.8.2/tools/resourceEditor/modules/propertyEditor.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ __version__ = "$Revision: 1.56 $" __date__ = "$Date: 2004/10/03 19:21:34 $" --- pythoncard-0.8.2.orig/tools/findfiles/findfiles.py +++ pythoncard-0.8.2/tools/findfiles/findfiles.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ KEA notes to myself --- pythoncard-0.8.2.orig/samples/textIndexer/textIndexer.py +++ pythoncard-0.8.2/samples/textIndexer/textIndexer.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python """ __version__ = "$Revision: 1.28 $" __date__ = "$Date: 2005/09/18 03:59:22 $" --- pythoncard-0.8.2.orig/samples/textRouter/wordwrap.py +++ pythoncard-0.8.2/samples/textRouter/wordwrap.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python -# # word_wrap.py # # this was originally based on some code I found on the net, but I --- pythoncard-0.8.2.orig/samples/webgrabber/webchecker.py +++ pythoncard-0.8.2/samples/webgrabber/webchecker.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python - # Original code by Guido van Rossum; extensive changes by Sam Bayer, # including code to check URL fragments. --- pythoncard-0.8.2.orig/samples/webgrabber/websucker.py +++ pythoncard-0.8.2/samples/webgrabber/websucker.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python - """A variant on webchecker that creates a mirror copy of a remote site.""" __version__ = "$Revision: 1.1 $" --- pythoncard-0.8.2.orig/debian/compat +++ pythoncard-0.8.2/debian/compat @@ -0,0 +1 @@ +5 --- pythoncard-0.8.2.orig/debian/pythoncard-tools.docs +++ pythoncard-0.8.2/debian/pythoncard-tools.docs @@ -0,0 +1,2 @@ +README.txt +debian/README.Debian --- pythoncard-0.8.2.orig/debian/codeEditor +++ pythoncard-0.8.2/debian/codeEditor @@ -0,0 +1,13 @@ +#!/bin/sh + +# A simple command-line wrapper for PythonCard's codeEditor tool. +# Copyright (c) Kenneth J. Pronovici ; use as you wish. + +dir=`python -c "import os, PythonCard.tools.codeEditor.codeEditor as c; print os.path.dirname(c.__file__)"` + +if [ -d $dir ]; then + exec /usr/bin/python $dir/codeEditor.py "$@" +else + echo "Unable to find PythonCard installation." +fi + --- pythoncard-0.8.2.orig/debian/pythoncard-tools.manpages +++ pythoncard-0.8.2/debian/pythoncard-tools.manpages @@ -0,0 +1,3 @@ +debian/codeEditor.1 +debian/resourceEditor.1 +debian/findfiles.1 --- pythoncard-0.8.2.orig/debian/findfiles.1 +++ pythoncard-0.8.2/debian/findfiles.1 @@ -0,0 +1,96 @@ +.\" vim: set ft=nroff .\" +.TH findfiles "1" "August 2003" "PythonCard GUI Framework" "PythonCard Developers" +.SH NAME +findfiles \- Utility to locate files containing specific content +.SH SYNOPSIS +.B findfiles +[\fIswitches\fR] +.SH DESCRIPTION +.PP +Very often when you are programming in any programming or scripting language, +you want to find out how a particular function works or whether a particular +property is settable, or any of a number of other questions. In many cases, you +can find the answers to your questions by looking at the source code of the +application or tool you're using. This is sometimes referred to as "code +shopping," particularly when what you really hope to find is a method that does +exactly what you want to do. The PythonCard findfiles tool is designed to +support you in these efforts. +.PP +Type in a string for which to search, tell findfiles the directories (yes, you +can have more than one) in which to search for files containing that string, +and send findfiles off to locate files with that specific content. Scroll +through the list of files, each with a line reproducing part of the located +line for each occurrence in the file, find the one you think is what you are +looking for, and double-click the line. Voila! The PythonCard codeEditor tool +opens and scrolls instantly to the line you've selected. +.SH SWITCHES +.TP +\fB\-p\fR +Show property editor +.TP +\fB\-m\fR +Show message watcher +.TP +\fB\-l\fR +Enable logging +.TP +\fB\-s\fR +Show shell +.TP +\fB\-m\fR +Show namespace +.TP +\fB\-d\fR +Show debug menu +.SH REGULAR EXPRESSIONS +.PP +The findfiles utility uses classic Unix grep (regular expression) searches. +.PP +The grep utility uses a technique called regular expression matching to locate +information. In regular expressions, some characters have a special meaning. If +you want to search for any of these special characters in the strings you +supply in findfiles, you'll have to escape them by preceding them with a +backward slash (\\) character. +.PP +While there are many such characters in regular expressions, the ones with +which you will need to be most careful are: question mark (?), asterisk (*), +addition/concatenation operator (+), pipe or vertical bar (|), caret (^) and +dollar sign ($). To search for a dollar sign in the target directories, for +example, put "\\$" into the search field. (Putting in a $ by itself will crash +findfiles fairly reliably.) +.PP +On a Debian system, you can see the manpages for grep(1) or regex(7) for more +information on grep and regular expressions. +.SH NOTES +.PP +The findfiles utility also provides additional functionality that is not +discussed in this manpage, because it is somewhat difficult to completely +describe usage of a GUI program in a text-based manpage. For more detailed +usage instructions or for more information on the PythonCard GUI framework in +general, you should install the pythoncard-doc package and take a look at the +various walk-throughs, tutorials and samples included with it. +.PP +Once the pythoncard-doc package is installed, the documentation is installed to +/usr/share/doc/pythoncard-doc, and is also available via Debian's doc-base +infrastructure - find it in the Devel section using dwww(1), doc-central(1) or +dhelp(1). +.PP +If you would rather not install the pythoncard-doc package, you can find +essentially the same information on the PythonCard website: +.PP +\fIhttp://pythoncard.sourceforge.net\fR +.PP +.SH BUGS +.PP +Although it is considered to be stable, this is still development-level +software. +.PP +Please report bugs in this or any PythonCard component to the Debian Bug +Tracking system using reportbug(1). +.SH AUTHOR +This manpage was written by Kenneth J. Pronovici , for use +by the Debian project. Content was based on previously-existing PythonCard +documentation in other forms. +.SH "SEE ALSO" +codeEditor(1), resourceEditor(1), + --- pythoncard-0.8.2.orig/debian/rules +++ pythoncard-0.8.2/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f + +build_dir = build +install_dir = debian/tmp +pyvers := $(shell pyversions -r) + +-include /usr/share/python/python.mk + +binary: binary-indep binary-arch + +binary-arch: ; + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs -A docs/changelog.txt + dh_installmenu + dh_installdocs + dh_installman + dh_install --list-missing --sourcedir $(install_dir) + dh_fixperms + dh_compress -X.py + dh_pysupport + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +install: build + dh_testdir + dh_testroot + dh_installdirs + for py in $(pyvers); do \ + $$py setup.py install --no-compile --root=debian/tmp ${py_setup_install_args}; done + + rm -f $(install_dir)/usr/lib/python*/*-packages/PythonCard/install-pythoncard.py + rm -f $(install_dir)/usr/lib/python*/*-packages/PythonCard/PKG-INFO + rm -f $(install_dir)/usr/lib/python*/*-packages/PythonCard/README.txt + rm -f $(install_dir)/usr/lib/python*/*-packages/PythonCard/LICENSE.txt + rm -f $(install_dir)/usr/lib/python*/*-packages/PythonCard/setup.py + rm -f $(install_dir)/usr/lib/python*/*-packages/PythonCard/__version__.pyc + rm -f $(install_dir)/usr/lib/python*/*-packages/PythonCard/docs/changelog.txt + rm -f $(install_dir)/usr/lib/python*/*-packages/PythonCard/docs/readme.txt + rm -rf $(install_dir)/usr/lib/python*/*-packages/PythonCard/tests + rm -rf $(install_dir)/usr/lib/python*/*-packages/PythonCard/build + + +build: build-stamp +build-stamp: + dh_testdir + set -e; \ + for py in $(pyvers); do \ + $$py setup.py build ; done + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + -for py in $(pyvers); do \ + $$py setup.py clean --all; done + find . -name "*.pyc" | xargs rm -f + find . -name "*.pyo" | xargs rm -f + rm -rf $(build_dir) $(install_dir) + dh_clean + +.PHONY: binary binary-arch binary-indep install build clean --- pythoncard-0.8.2.orig/debian/resourceEditor.1 +++ pythoncard-0.8.2/debian/resourceEditor.1 @@ -0,0 +1,77 @@ +.\" vim: set ft=nroff .\" +.TH resourceEditor "1" "August 2003" "PythonCard GUI Framework" "PythonCard Developers" +.SH NAME +resourceEditor \- Resource editor used as part of the PythonCard GUI framework +.SH SYNOPSIS +.B resourceEditor +[file] +[\fIswitches\fR] +.SH DESCRIPTION +.PP +The resourceEditor is the most common starting point for constructing a +PythonCard application. Using this tool, you can create, position, size, +describe and connect not only your application's windows and all of the +components they contain (buttons, fields, and other controls), but also its +menus and supporting dialogs. A direct-manipulation interface enables you to +create, drag, and size window components in the grand tradition of Integrated +Development Environments (IDEs). The resourceEditor also incorporates a menu +editor and a background editor for managing the non-component portions of your +PythonCard application. +.PP +Scripting is not integrated into the resourceEditor. Instead, you should use +your favorite Python script editor to write the code that gives your +application its intelligence and behavior (for instance, you could use +codeEditor(1), also part of the PythonCard GUI framework). +.SH SWITCHES +Note that switches must come \fIafter\fR any filename in order to be +recognized. +.TP +\fB\-p\fR +Show property editor +.TP +\fB\-m\fR +Show message watcher +.TP +\fB\-l\fR +Enable logging +.TP +\fB\-s\fR +Show shell +.TP +\fB\-m\fR +Show namespace +.TP +\fB\-d\fR +Show debug menu +.SH NOTES +.PP +The resourceEditor utility also provides additional functionality that is not +discussed in this manpage, because it is somewhat difficult to completely +describe usage of a GUI program in a text-based manpage. For more detailed +usage instructions or for more information on the PythonCard GUI framework in +general, you should install the pythoncard-doc package and take a look at the +various walk-throughs, tutorials and samples included with it. +.PP +Once the pythoncard-doc package is installed, the documentation is installed to +/usr/share/doc/pythoncard-doc, and is also available via Debian's doc-base +infrastructure - find it in the Devel section using dwww(1), doc-central(1) or +dhelp(1). +.PP +If you would rather not install the pythoncard-doc package, you can find +essentially the same information on the PythonCard website: +.PP +\fIhttp://pythoncard.sourceforge.net\fR +.SH BUGS +.PP +Although it is considered to be stable, this is still development-level +software. +.PP +Please report bugs in this or any PythonCard component to the Debian Bug +Tracking system using reportbug(1). +.SH AUTHOR +This manpage was written by Kenneth J. Pronovici , for use +by the Debian project. Content was based on previously-existing PythonCard +documentation in other forms. +.SH "SEE ALSO" +codeEditor(1), findfiles(1), + --- pythoncard-0.8.2.orig/debian/control +++ pythoncard-0.8.2/debian/control @@ -0,0 +1,75 @@ +Source: pythoncard +Section: devel +Priority: optional +Build-Depends: debhelper (>= 5.0.37.2), python-all (>= 2.5.4) +Build-Depends-Indep: python-support (>= 1.0.0) +Maintainer: Debian QA Group +Standards-Version: 3.7.2 +XS-Python-Version: all +Homepage: http://pythoncard.sourceforge.net/ + +Package: pythoncard +Architecture: all +Section: devel +Depends: python-pythoncard (= ${source:Version}), pythoncard-tools (= ${source:Version}), pythoncard-doc (= ${source:Version}), ${misc:Depends} +Description: wxPython-based GUI construction framework (meta-package) + PythonCard is a GUI construction framework for building cross-platform desktop + applications on Windows, Mac OS X, and Linux, using the Python language. It + is based on the wxPython bindings for the wxWidgets toolkit (formerly known + as wxWindows). + . + This is a meta-package which is intended to be used by developers who want the + entire upstream distribution available to them. Maintainers of other packages + that rely on PythonCard functionality should consider depending on one or more + of the related packages (python-pythoncard, pythoncard-tools) as needed instead + of this meta-package. + +Package: pythoncard-tools +Architecture: all +Section: devel +Depends: python-pythoncard (= ${source:Version}), ${misc:Depends} +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: wxPython-based GUI construction framework (optional development tools) + PythonCard is a GUI construction framework for building cross-platform desktop + applications on Windows, Mac OS X, and Linux, using the Python language. It + is based on the wxPython bindings for the wxWidgets toolkit (formerly known + as wxWindows). + . + This package takes the tools that are part of the PythonCard distribution + (such as codeEditor and resourceEditor) and makes them available to be called + from the command-line and from the standard Debian menus. It has been split + out as a separate package since only developers will need access to the tools + directly - packages which depend on PythonCard will just import the tool + modules and use what they need. + +Package: pythoncard-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Description: wxPython-based GUI construction framework (documentation and samples) + PythonCard is a GUI construction framework for building cross-platform desktop + applications on Windows, Mac OS X, and Linux, using the Python language. It + is based on the wxPython bindings for wxWidgets toolkit (formerly known + as wxWindows). + . + This package provides all of the developer documentation and samples + associated with the upstream package. + +Package: python-pythoncard +Architecture: all +Section: python +Depends: ${python:Depends}, python-wxgtk2.8, ${misc:Depends} +Provides: ${python:Provides} +Replaces: python2.3-pythoncard (<< 0.8.1-6) +Conflicts: python2.3-pythoncard (<< 0.8.1-6) +XB-Python-Version: ${python:Versions} +Suggests: pythoncard-tools, pythoncard-doc +Description: wxPython-based GUI construction framework (underlying Python libraries) + PythonCard is a GUI construction framework for building cross-platform desktop + applications on Windows, Mac OS X, and Linux, using the Python language. It + is based on the wxPython bindings for the wxWidgets toolkit (formerly known + as wxWindows). + . + This package includes the PythonCard Python package and all of its associated + Python modules. --- pythoncard-0.8.2.orig/debian/resourceEditor +++ pythoncard-0.8.2/debian/resourceEditor @@ -0,0 +1,13 @@ +#!/bin/sh + +# A simple command-line wrapper for PythonCard's resourceEditor tool. +# Copyright (c) Kenneth J. Pronovici ; use as you wish. + +dir=`python -c "import os, PythonCard.tools.resourceEditor.resourceEditor as r; print os.path.dirname(r.__file__)"` + +if [ -d $dir ]; then + exec /usr/bin/python $dir/resourceEditor.py "$@" +else + echo "Unable to find PythonCard installation." +fi + --- pythoncard-0.8.2.orig/debian/python-pythoncard.docs +++ pythoncard-0.8.2/debian/python-pythoncard.docs @@ -0,0 +1,2 @@ +README.txt +debian/README.Debian --- pythoncard-0.8.2.orig/debian/codeEditor.1 +++ pythoncard-0.8.2/debian/codeEditor.1 @@ -0,0 +1,77 @@ +.\" vim: set ft=nroff .\" +.TH codeEditor "1" "August 2003" "PythonCard GUI Framework" "PythonCard Developers" +.SH NAME +codeEditor \- A Python-aware code editor written using the PythonCard GUI framework +.SH SYNOPSIS +.B codeEditor +[file] +[\fIswitches\fR] +.SH DESCRIPTION +.PP +The codeEditor program is one of the tools included with the PythonCard GUI +framework. It is focused on being a simple to use Python source code editor. +It is not intended to be a generic editor or replace vi(m), Emacs, etc. If you +are already happy with your existing editing environment for Python source +code, there is no particular reason you have to switch. +.PP +codeEditor borrows ideas and code from IDLE as well as Mark Hammond's +Pythonwin, PyCrust (the PythonCard shell) and Robin Dunn's pyshell.py. The core +editor component uses the wxPython wxStyledTextCtrl (wxSTC) which in turn uses +Neil Hodgson's Scintilla. Isn't open source fun? In 15 minutes you can have a +pretty decent editor by standing on the shoulders of others. +.SH SWITCHES +.PP +Note that switches must come \fIafter\fR any filename in order to be +recognized. +.TP +\fB\-p\fR +Show property editor +.TP +\fB\-m\fR +Show message watcher +.TP +\fB\-l\fR +Enable logging +.TP +\fB\-s\fR +Show shell +.TP +\fB\-m\fR +Show namespace +.TP +\fB\-d\fR +Show debug menu +.SH NOTES +.PP +The codeEditor utility also provides additional functionality that is not +discussed in this manpage, because it is somewhat difficult to completely +describe usage of a GUI program in a text-based manpage. For more detailed +usage instructions or for more information on the PythonCard GUI framework in +general, you should install the pythoncard-doc package and take a look at the +various walk-throughs, tutorials and samples included with it. +.PP +Once the pythoncard-doc package is installed, the documentation is installed to +/usr/share/doc/pythoncard-doc, and is also available via Debian's doc-base +infrastructure - find it in the Devel section using dwww(1), doc-central(1) or +dhelp(1). +.PP +If you would rather not install the pythoncard-doc package, you can find +essentially the same information on the PythonCard website: +.PP +\fIhttp://pythoncard.sourceforge.net\fR +.SH BUGS +.PP +Although it is considered to be stable, this is still development-level +software. If you use codeEditor as a real text editor then you may want to +work on backup copies of documents in case there are bugs that might corrupt +your text. +.PP +Please report bugs in this or any PythonCard component to the Debian Bug +Tracking system using reportbug(1). +.SH AUTHOR +This manpage was written by Kenneth J. Pronovici , for use +by the Debian project. Content was based on previously-existing PythonCard +documentation in other forms. +.SH "SEE ALSO" +resourceEditor(1), findfiles(1), + --- pythoncard-0.8.2.orig/debian/changelog +++ pythoncard-0.8.2/debian/changelog @@ -0,0 +1,199 @@ +pythoncard (0.8.2-3) unstable; urgency=low + + * QA upload. + * debian/rules: + - Remove obsolete dh_python call (Closes: #715308). + + -- Luca Falavigna Sat, 13 Jul 2013 15:40:45 +0200 + +pythoncard (0.8.2-2) unstable; urgency=low + + * QA upload. + * debian/control: Update dependency on python-wxgtk2.6 to python-wxgtk2.8. + The code doesn't use the wxversion module to say what version of wx it + needs, so it will already get run with 2.8 if both versions are installed + and the user hasn't changed the alternative setting from the default. + * README.Debian: Remove incorrect statement that the package is built only + for Python 2.3. + + -- Olly Betts Mon, 17 Oct 2011 00:38:19 +0000 + +pythoncard (0.8.2-1) unstable; urgency=low + + * QA upload. + * New upstream release + * debian/control + - set maintainer to QA group + - set Homepage field, removing the URL from packages description + - bump versioned b-d-i on python-support, to properly support Python module + - replace b-d on python-all-dev with python-all, since building only + arch:all packages + - replace Source-Version substvar with source:Version + - add ${misc:Depends} to binary packages Depends + * debian/watch + - updated to use the SourceForge redirector; thanks to Raphael Geissert for + the report and to Dario Minnucci for the patch; Closes: #449904 + * debian/{pythoncard-doc, python-pythoncard}.install + - use wildcards instead of site-packages to fix build with python 2.6; + thanks to Ilya Barygin for the report and patch; Closes: #572332 + * debian/pythoncard-doc.doc-base + - set section to Programmin/Python + * debian/pythoncard-tools.menu + - set menu main section to Applications + * debian/pythoncard-tools.postinst + - removed, needed only to update the menu, but it's now created by debhelper + + -- Sandro Tosi Thu, 04 Mar 2010 23:55:10 +0100 + +pythoncard (0.8.1-8.4) unstable; urgency=low + + * Non-maintainer upload. + * Build-Depend on python-all-dev (>= 2.5.4) for python.mk. + + -- Kumar Appaiah Mon, 19 Oct 2009 17:57:10 -0500 + +pythoncard (0.8.1-8.3) unstable; urgency=low + + * Non-maintainer upload. + * Changes for upcoming Python 2.6 transition (closes: #547840): + + debian/rules: + - Conditionally import /usr/share/python/python.mk file. + - Pass ${py_setup_install_args} to setup.py install call. + - Use wildcards when removing files. + + -- Luca Falavigna Mon, 12 Oct 2009 20:24:08 +0200 + +pythoncard (0.8.1-8.2) unstable; urgency=low + + * Non-maintainer upload. + * debian/findfiles, debian/codeEditor, debian/resourceEditor: + - Do not rely on python-support internals, search for directories + dynamically by looking at module path instead (Closes: #517060). + + -- Luca Falavigna Sat, 12 Sep 2009 17:39:58 +0200 + +pythoncard (0.8.1-8.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix path to findfiles, codeEditor and resourceEditor: + + patch from Ernest ter Kuile . (Closes: #397018) + + -- Mohammed Adnène Trojette Sun, 12 Nov 2006 17:52:13 +0100 + +pythoncard (0.8.1-8) unstable; urgency=low + + * New maintainer (closes: #375610). + + -- Ernesto Nadir Crespo Avila Fri, 28 Jul 2006 22:50:57 -0400 + +pythoncard (0.8.1-7) unstable; urgency=low + + * QA upload. + * Don't depend on removed python2.3-pythoncard. + + -- Luk Claes Thu, 6 Jul 2006 18:32:41 +0200 + +pythoncard (0.8.1-6) unstable; urgency=low + + * QA upload. + * Update Package to the last python policy (Closes: #373370). + * Fix -tools shell script wrappers. + + -- Pierre Habouzit Sat, 1 Jul 2006 13:14:36 +0200 + +pythoncard (0.8.1-5) unstable; urgency=low + + * Orphaning package. + + -- Kenneth J. Pronovici Thu, 15 Jun 2006 20:57:01 -0500 + +pythoncard (0.8.1-4) unstable; urgency=low + + * Removed debian/NEWS, which I was not using properly anyway. + + -- Kenneth J. Pronovici Wed, 1 Feb 2006 21:05:54 -0600 + +pythoncard (0.8.1-3) unstable; urgency=low + + * Rebuild against python-wxgtk2.6 (closes: #313479, closes: #324801). + * Bump Standards-Version to 3.6.2 (no packaging changes). + * Removed obsolete notes about $PYTHONPATH requirements from README.Debian. + * Placed menu files in /usr/share/menu instead of /usr/lib/menu per policy. + + -- Kenneth J. Pronovici Fri, 2 Sep 2005 18:40:46 +0000 + +pythoncard (0.8.1-2) unstable; urgency=low + + * Fix dependency glitches (closes: #298667). + - Interdepencies between binary packages were not tight enough. + - Add (= ${Source-Version}) to force packages to be upgraded together. + + -- Kenneth J. Pronovici Sat, 12 Mar 2005 13:26:24 -0600 + +pythoncard (0.8.1-1) unstable; urgency=low + + * New major upstream release. + - Note that this is no longer considered a "prototype" (see NEWS) + - You must update $PYTHONPATH for this new package to work! (see NEWS) + - Change wxPython dependency to libwxgtk2.5.3-python + - Remove Debian-specific changes in findfiles application + - Rework *.install to match new upstream code + - Remove broken (empty) Depends line for pythoncard-doc + - Now use 'dh_install --fail-missing'; depend on debhelper (>= 4.1.75) + - Removed '#!/usr/bin/env python' from tops of some library files + + -- Kenneth J. Pronovici Sun, 19 Dec 2004 14:50:38 -0600 + +pythoncard (0.7.3.1-1) unstable; urgency=low + + * New upstream release. + * Added debian/NEWS file for release notes. + + -- Kenneth J. Pronovici Sat, 17 Apr 2004 14:41:57 -0500 + +pythoncard (0.7.3-1) unstable; urgency=low + + * New upstream release. + * Changed wxWindows to wxWidgets in debian/control, to match new upstream name. + * Now quote all arguments in debian/pythoncard-tools.menu. + * Now remove __version__.pyc from install directory on build. + * Tweaked README.Debian to remove incorrect description of Debian changes. + * Applied fix from CVS to life.py in samples directory (self.size invalid). + + -- Kenneth J. Pronovici Mon, 5 Apr 2004 19:24:25 -0500 + +pythoncard (0.7.2-2) unstable; urgency=low + + * Bumped standards version to 3.6.1 in debian/control (no packaging changes). + * Clarified package descriptions in debian/control (closes: #214953). + - All descriptions use "GUI construction framework" rather than "kit" + - Short descriptions no longer use PythonCard to describe itself + - Short descriptions now better describe packages and refer to wxPython + - Long descriptions now use "wxWindows" rather than "WxWindows" + + -- Kenneth J. Pronovici Sun, 19 Oct 2003 13:49:45 -0500 + +pythoncard (0.7.2-1) unstable; urgency=low + + * New upstream release. + * First "official" release to the Debian archive (closes: #206807). + * In wrappers, propogate error codes and support arguments with spaces. + * Added versioned dependency (>= 2.4.12) for libwxgtk2.4-python. + * Reorganized *.install to keep directory install pieces together. + * Reworked menu item descriptions; added menu item for findfiles utility. + * Fixed (Linux-specific?) bug in findfiles utility. + + -- Kenneth J. Pronovici Wed, 10 Sep 2003 19:09:17 -0500 + +pythoncard (0.7.1-2) unstable; urgency=low + + * Added debian/watch file. + + -- Kenneth J. Pronovici Mon, 8 Sep 2003 21:08:35 -0500 + +pythoncard (0.7.1-1) unstable; urgency=low + + * Initial package. + + -- Kenneth J. Pronovici Thu, 21 Aug 2003 21:53:14 -0500 + --- pythoncard-0.8.2.orig/debian/README.Debian +++ pythoncard-0.8.2/debian/README.Debian @@ -0,0 +1,28 @@ +If you install the pythoncard-doc package, you can find the PythonCard +documentation (essentially the entire SourceForge website), along with all of +the sample code, in: + + /usr/share/doc/pythoncard-doc + +The HTML documentation is also available through the Debian help system (via +tools such as doc-central, dwww and dhelp) in the Devel section. + +If you have installed the pythoncard-tools package, you should be able to +invoke the codeEditor, resourceEditor and findfiles tools directly from the +command-line, via a set of shell scripts that source the appropriate Python +modules. The pythoncard-tools package also provides Debian menu entries for +the PythonCard tools. The codeEditor and resourceEditor tools should appear +under Apps/Programming, and the findfiles tool will appear under Apps/Tools. + +When a PythonCard app is run for the first time, it copies several files into a +per-user configuration directory. I've changed PythonCard's default behavior +regarding per-user directories in several ways. First, I have changed the +per-user directory to be ~/.pythoncard from the default of ~/pythoncard_config. +I believe this is more consistent with a typical Debian application's behavior. +Second, I have changed the location that the per-user configuration files are +sourced from. Normally, these files would be sourced from the PythonCard +package directory. I don't think that this location is consistent with +Debian's filesystem standards, so I've placed them into /usr/share/pythoncard +instead. These changes required me to update config.py. The changes are +labeled appropriately. + --- pythoncard-0.8.2.orig/debian/findfiles +++ pythoncard-0.8.2/debian/findfiles @@ -0,0 +1,13 @@ +#!/bin/sh + +# A simple command-line wrapper for PythonCard's findfiless tool. +# Copyright (c) Kenneth J. Pronovici ; use as you wish. + +dir=`python -c "import os, PythonCard.tools.findfiles.findfiles as f; print os.path.dirname(f.__file__)"` + +if [ -d $dir ]; then + exec /usr/bin/python $dir/findfiles.py "$@" +else + echo "Unable to find PythonCard installation." +fi + --- pythoncard-0.8.2.orig/debian/python-pythoncard.dirs +++ pythoncard-0.8.2/debian/python-pythoncard.dirs @@ -0,0 +1 @@ +usr/share/pythoncard --- pythoncard-0.8.2.orig/debian/copyright +++ pythoncard-0.8.2/debian/copyright @@ -0,0 +1,61 @@ +This package was debianized by Kenneth J. Pronovici +on 21 Aug 2003 21:53:14 -500. + +It may be downloaded from: http://pythoncard.sourceforge.net/ + +It is currently maintained by +Ernesto Nadir Crespo Avila + +Upstream Author: Kevin Altis, et. al. + +Copyright: + + Copyright (c) 2001-2004 PythonCard developers + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO + EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + The PythonCard developers are; + Kevin Altis (altis@sem-retired.com) + Rowland Smith + Patrick K O'Brien (pobrien@orbtech.com) + Neil Hodgson (neilh@scintilla.org) + Robin Dunn (robin@alldunn.com) + Dan Winkler + Andy Todd (andy47@halfcooked.com) + Simon Kittle + Juergen Rauch + Richard Wolff + Dan Shafer + Randy Lea + Riaan Booysen + David Primmer + Fred Pacquier + Gene Cash + Thomas Heller + Phil Edwards (phil@linux2000.com) + David McNab + Jon Dyte (jon@totient.demon.co.uk) + Roman Suzi (rnd@onego.ru) + William Volkman + --- pythoncard-0.8.2.orig/debian/pythoncard-doc.docs +++ pythoncard-0.8.2/debian/pythoncard-doc.docs @@ -0,0 +1,2 @@ +README.txt +debian/README.Debian --- pythoncard-0.8.2.orig/debian/pythoncard-doc.install +++ pythoncard-0.8.2/debian/pythoncard-doc.install @@ -0,0 +1,3 @@ +usr/lib/python*/*-packages/PythonCard/docs/* usr/share/doc/pythoncard-doc +usr/lib/python*/*-packages/PythonCard/README_StyleEditor.txt usr/share/doc/pythoncard-doc +usr/lib/python*/*-packages/PythonCard/samples usr/share/doc/pythoncard-doc --- pythoncard-0.8.2.orig/debian/pythoncard-tools.dirs +++ pythoncard-0.8.2/debian/pythoncard-tools.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/menu --- pythoncard-0.8.2.orig/debian/pythoncard-doc.doc-base +++ pythoncard-0.8.2/debian/pythoncard-doc.doc-base @@ -0,0 +1,10 @@ +Document: pythoncard +Title: PythonCard GUI Framework Developer Documentation +Author: Kevin Altis, et. al. +Abstract: Information on how to develop with PythonCard. +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/pythoncard-doc/html/index.html +Files: /usr/share/doc/pythoncard-doc/html/*.html + --- pythoncard-0.8.2.orig/debian/python-pythoncard.install +++ pythoncard-0.8.2/debian/python-pythoncard.install @@ -0,0 +1,6 @@ +usr/lib/python*/*-packages/PythonCard/pythoncard_config.txt usr/share/pythoncard +usr/lib/python*/*-packages/PythonCard/stc-styles.cfg usr/share/pythoncard +usr/lib/python*/*-packages/PythonCard/components +usr/lib/python*/*-packages/PythonCard/templates +usr/lib/python*/*-packages/PythonCard/tools +usr/lib/python*/*-packages/PythonCard/*.py --- pythoncard-0.8.2.orig/debian/pythoncard-tools.menu +++ pythoncard-0.8.2/debian/pythoncard-tools.menu @@ -0,0 +1,15 @@ +?package(pythoncard-tools): \ + needs="X11" \ + section="Applications/Programming"\ + title="PythonCard codeEditor" \ + command="/usr/bin/codeEditor" +?package(pythoncard-tools): \ + needs="X11" \ + section="Applications/Programming"\ + title="PythonCard resourceEditor" \ + command="/usr/bin/resourceEditor" +?package(pythoncard-tools): \ + needs="X11" \ + section="Applications/Programming"\ + title="PythonCard findfiles" \ + command="/usr/bin/findfiles" --- pythoncard-0.8.2.orig/debian/watch +++ pythoncard-0.8.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/pythoncard/PythonCard-(.+)\.tar\.gz --- pythoncard-0.8.2.orig/debian/pythoncard.docs +++ pythoncard-0.8.2/debian/pythoncard.docs @@ -0,0 +1,2 @@ +README.txt +debian/README.Debian --- pythoncard-0.8.2.orig/debian/pythoncard-tools.postrm +++ pythoncard-0.8.2/debian/pythoncard-tools.postrm @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +# Update the menu system, if possible +if [ -x /usr/bin/update-menus ]; then + /usr/bin/update-menus +fi + +#DEBHELPER# + --- pythoncard-0.8.2.orig/debian/pythoncard-tools.install +++ pythoncard-0.8.2/debian/pythoncard-tools.install @@ -0,0 +1,3 @@ +../codeEditor usr/bin +../resourceEditor usr/bin +../findfiles usr/bin