[Python-modules-commits] r6975 - in packages/python-uniconvertor/branches/lenny (14 files)
awen-guest at users.alioth.debian.org
awen-guest at users.alioth.debian.org
Tue Nov 25 23:12:36 UTC 2008
Date: Tuesday, November 25, 2008 @ 23:12:35
Author: awen-guest
Revision: 6975
Updated lenny package to fix crash on import
Added:
packages/python-uniconvertor/branches/lenny/debian/
packages/python-uniconvertor/branches/lenny/debian/changelog
packages/python-uniconvertor/branches/lenny/debian/compat
packages/python-uniconvertor/branches/lenny/debian/control
packages/python-uniconvertor/branches/lenny/debian/copyright
packages/python-uniconvertor/branches/lenny/debian/patches/
packages/python-uniconvertor/branches/lenny/debian/patches/00list
packages/python-uniconvertor/branches/lenny/debian/patches/01_rename_uniconv.dpatch
packages/python-uniconvertor/branches/lenny/debian/patches/02_exec_uniconvertor.dpatch
packages/python-uniconvertor/branches/lenny/debian/patches/03_no_exit_on_import.dpatch
packages/python-uniconvertor/branches/lenny/debian/pycompat
packages/python-uniconvertor/branches/lenny/debian/rules
packages/python-uniconvertor/branches/lenny/debian/uniconvertor.pod
packages/python-uniconvertor/branches/lenny/debian/watch
Added: packages/python-uniconvertor/branches/lenny/debian/changelog
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/changelog (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/changelog 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,18 @@
+python-uniconvertor (1.1.2-2) testing; urgency=low
+
+ * Add 04_no_exit_on_import.dpatch to prevent uniconvertor from calling
+ sys.exit() on import exiting the python interpreter. (LP: #300141)
+
+ -- Andreas Wenning <awen at awen.dk> Tue, 25 Nov 2008 23:34:46 +0100
+
+python-uniconvertor (1.1.2-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Andreas Wenning <awen at awen.dk> Tue, 18 Mar 2008 01:37:28 +0100
+
+python-uniconvertor (1.1.1-1) unstable; urgency=low
+
+ * Initial release. (Closes: #457908)
+
+ -- Andreas Wenning <awen at awen.dk> Thu, 13 Mar 2008 23:46:37 +0100
Added: packages/python-uniconvertor/branches/lenny/debian/compat
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/compat (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/compat 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1 @@
+5
Added: packages/python-uniconvertor/branches/lenny/debian/control
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/control (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/control 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,49 @@
+Source: python-uniconvertor
+Section: python
+Priority: optional
+Maintainer: Andreas Wenning <uniconvertor at awen.dk>
+Uploaders: Andreas Wenning <awen at awen.dk>, Luis Uribe <acme at eviled.org>, Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Homepage: http://sk1project.org/modules.php?name=Products&product=uniconvertor
+Build-Depends: python-all-dev (>= 2.4), python-all-dbg (>= 2.4), debhelper (>= 5.0.51), dpatch, python-central (>= 0.6), perl
+XS-Python-Version: all
+Standards-Version: 3.7.3
+
+Package: python-uniconvertor
+Architecture: any
+Depends: ${python:Depends}, ${shlibs:Depends}, python-imaging
+Provides: ${python:Provides}
+Suggests: python-uniconvertor-dbg
+XB-Python-Version: ${python:Versions}
+Description: Universal vector graphics translator
+ UniConvertor is a multiplatform universal vector graphics translator.
+ It uses sK1 engine to convert one format to another.
+ .
+ Import filters:
+ * CorelDRAW ver.7-X3,X4 (CDR/CDT/CCX/CDRX/CMX)
+ * Adobe Illustrator up to 9 ver. (AI postscript based)
+ * Postscript (PS)
+ * Encapsulated Postscript (EPS)
+ * Computer Graphics Metafile (CGM)
+ * Windows Metafile (WMF)
+ * XFIG
+ * Scalable Vector Graphics (SVG)
+ * Skencil/Sketch/sK1 (SK and SK1)
+ * Acorn Draw (AFF)
+ .
+ Export filters:
+ * AI (Postscript based Adobe Illustrator 5.0 format)
+ * SVG (Scalable Vector Graphics)
+ * SK (Sketch/Skencil format)
+ * SK1 (sK1 format)
+ * CGM (Computer Graphics Metafile)
+ * WMF (Windows Metafile)
+
+Package: python-uniconvertor-dbg
+Architecture: any
+Priority: extra
+Depends: python-dbg, ${shlibs:Depends}, python-imaging, python-uniconvertor (= ${binary:Version})
+Description: Universal vector graphics translator (debug extension)
+ UniConvertor is a multiplatform universal vector graphics translator.
+ It uses sK1 engine to convert one format to another.
+ .
+ This package contains the extension built for the Python debug interpreter.
Added: packages/python-uniconvertor/branches/lenny/debian/copyright
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/copyright (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/copyright 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,25 @@
+This package was debianized by Andreas Wenning <awen at awen.dk> on
+Mon, 10 Mar 2008 22:42:50 +0100
+
+It was downloaded from:
+http://sk1project.org/modules.php?name=Products&product=uniconvertor
+
+Copyright (C) 2007 by Igor E. Novikov, Valek Fillipov
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of GNU Library General Public
+License and some files under terms of GNU General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+See the GNU Library General Public License for more details.
+
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL-2 file.
+
+The filters are released under GNU Library General Public
+License, on Debian systems the complete text can be found in
+/usr/share/common-licenses/LGPL-2 file.
Added: packages/python-uniconvertor/branches/lenny/debian/patches/00list
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/patches/00list (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/patches/00list 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,3 @@
+01_rename_uniconv.dpatch
+02_exec_uniconvertor.dpatch
+03_no_exit_on_import.dpatch
Added: packages/python-uniconvertor/branches/lenny/debian/patches/01_rename_uniconv.dpatch
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/patches/01_rename_uniconv.dpatch (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/patches/01_rename_uniconv.dpatch 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_rename_uniconv.dpatch by Andreas Wenning <awen at awen.dk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: The main binary is renamed to uniconvertor. Patching the help text.
+
+ at DPATCH@
+diff -urNad uniconvertor-1.1.1~/src/__init__.py uniconvertor-1.1.1/src/__init__.py
+--- uniconvertor-1.1.1~/src/__init__.py 2008-03-13 00:10:44.000000000 +0100
++++ uniconvertor-1.1.1/src/__init__.py 2008-03-15 11:38:34.000000000 +0100
+@@ -7,7 +7,7 @@
+ # For more info see COPYRIGHTS file in root directory.
+
+ '''
+-USAGE: uniconv [INPUT FILE] [OUTPUT FILE]
++USAGE: uniconvertor [INPUT FILE] [OUTPUT FILE]
+
+ Converts one vector graphics format to another using sK1 engine.
+ sK1 Team (http://sk1project.org), copyright (C) 2007 by Igor E. Novikov, Valek Filippov
+@@ -34,7 +34,7 @@
+ SK - Sketch/Skencil files
+ SK1 - sK1 vector graphics files
+
+-Example: uniconv drawing.cdr drawing.svg\n
++Example: uniconvertor drawing.cdr drawing.svg\n
+ '''
+
+ import sys, os, string
Property changes on: packages/python-uniconvertor/branches/lenny/debian/patches/01_rename_uniconv.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Added: packages/python-uniconvertor/branches/lenny/debian/patches/02_exec_uniconvertor.dpatch
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/patches/02_exec_uniconvertor.dpatch (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/patches/02_exec_uniconvertor.dpatch 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,17 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_exec_uniconvertor.dpatch by Andreas Wenning <awen at awen.dk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Use exec to start uniconvertor.
+
+ at DPATCH@
+diff -urNad python-uniconvertor-1.1.1~/src/uniconv python-uniconvertor-1.1.1/src/uniconv
+--- python-uniconvertor-1.1.1~/src/uniconv 2008-03-13 00:10:44.000000000 +0100
++++ python-uniconvertor-1.1.1/src/uniconv 2008-03-15 15:11:01.000000000 +0100
+@@ -20,4 +20,4 @@
+ #
+
+
+-python -c "import uniconvertor" "$1" "$2"
+\ No newline at end of file
++exec python -c "import uniconvertor" "$1" "$2"
Property changes on: packages/python-uniconvertor/branches/lenny/debian/patches/02_exec_uniconvertor.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Added: packages/python-uniconvertor/branches/lenny/debian/patches/03_no_exit_on_import.dpatch
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/patches/03_no_exit_on_import.dpatch (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/patches/03_no_exit_on_import.dpatch 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,110 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_no_exit_on_import.dpatch by Andreas Wenning <awen at awen.dk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Change the __init__.py to only run when calling the main function
+## DP: this prevents sys.exit() being called when doing an import.
+
+ at DPATCH@
+diff -urNad python-uniconvertor-1.1.2~/src/__init__.py python-uniconvertor-1.1.2/src/__init__.py
+--- python-uniconvertor-1.1.2~/src/__init__.py 2008-11-21 13:53:03.000000000 +0100
++++ python-uniconvertor-1.1.2/src/__init__.py 2008-11-21 13:53:34.000000000 +0100
+@@ -39,43 +39,47 @@
+
+ import sys, os, string
+
+-_pkgdir = __path__[0]
+-app_dir = os.path.join(_pkgdir, 'app')
+-app_ver = string.strip(open(os.path.join(app_dir, 'VERSION')).read())
++def main(argv):
++ _pkgdir = __path__[0]
++ app_dir = os.path.join(_pkgdir, 'app')
++ app_ver = string.strip(open(os.path.join(app_dir, 'VERSION')).read())
+
+-if len(sys.argv)<2 or sys.argv[1]=='--help':
+- print '\nUniConvertor',app_ver
+- print __doc__
+- sys.exit(0)
+-if not os.path.isfile(sys.argv[1]):
+- print '\nERROR: %s file is not found!' % sys.argv[1]
+- print '\nUniConvertor',app_ver
+- print __doc__
+- sys.exit(1)
+-if len(sys.argv) != 3:
+- print '\nERROR: incorrect arguments!'
+- print '\nUniConvertor',app_ver
+- print __doc__
+- sys.exit(1)
++ if len(argv)<2 or argv[1]=='--help':
++ print '\nUniConvertor',app_ver
++ print __doc__
++ sys.exit(0)
++ if not os.path.isfile(argv[1]):
++ print '\nERROR: %s file is not found!' % argv[1]
++ print '\nUniConvertor',app_ver
++ print __doc__
++ sys.exit(1)
++ if len(argv) != 3:
++ print '\nERROR: incorrect arguments!'
++ print '\nUniConvertor',app_ver
++ print __doc__
++ sys.exit(1)
+
+
+-sys.path.insert(1, _pkgdir)
++ sys.path.insert(1, _pkgdir)
+
+-from app.io import load
+-from app.plugins import plugins
+-import app
++ from app.io import load
++ from app.plugins import plugins
++ import app
+
+-app.init_lib()
++ app.init_lib()
+
+-doc = load.load_drawing(sys.argv[1])
+-extension = os.path.splitext(sys.argv[2])[1]
+-plugins.load_plugin_configuration()
+-fileformat = plugins.guess_export_plugin(extension)
+-if fileformat:
+- saver = plugins.find_export_plugin(fileformat)
+- saver(doc, sys.argv[2])
+-else:
+- sys.stderr.write('ERROR: unrecognized extension %s\n' % extension)
+- sys.exit(1)
+-doc.Destroy()
+-sys.exit(0)
++ doc = load.load_drawing(argv[1])
++ extension = os.path.splitext(argv[2])[1]
++ plugins.load_plugin_configuration()
++ fileformat = plugins.guess_export_plugin(extension)
++ if fileformat:
++ saver = plugins.find_export_plugin(fileformat)
++ saver(doc, argv[2])
++ else:
++ sys.stderr.write('ERROR: unrecognized extension %s\n' % extension)
++ sys.exit(1)
++ doc.Destroy()
++ sys.exit(0)
++
++if __name__ == "__main__":
++ main(sys.argv)
+diff -urNad python-uniconvertor-1.1.2~/src/uniconv python-uniconvertor-1.1.2/src/uniconv
+--- python-uniconvertor-1.1.2~/src/uniconv 2008-11-21 13:53:03.000000000 +0100
++++ python-uniconvertor-1.1.2/src/uniconv 2008-11-21 13:53:03.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/bin/python
+ #
+ # Wrapper script to start a UniConvertor application once it is installed
+ #
+@@ -19,5 +19,5 @@
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ #
+
+-
+-exec python -c "import uniconvertor" "$1" "$2"
++import sys, uniconvertor
++uniconvertor.main(sys.argv)
Property changes on: packages/python-uniconvertor/branches/lenny/debian/patches/03_no_exit_on_import.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Added: packages/python-uniconvertor/branches/lenny/debian/pycompat
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/pycompat (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/pycompat 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1 @@
+2
\ No newline at end of file
Added: packages/python-uniconvertor/branches/lenny/debian/rules
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/rules (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/rules 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+include /usr/share/dpatch/dpatch.make
+
+p:=debian/python-uniconvertor
+pd:=debian/python-uniconvertor-dbg
+
+PYVERS := $(shell pyversions -vs)
+PYVER := $(shell pyversions -vd)
+
+build: clean patch-stamp build-stamp
+ pod2man --section=1 --release=$(VERSION) debian/uniconvertor.pod > uniconvertor.1
+ mkdir -p $(p)
+
+build-stamp: $(PYVERS:%=build-python%) $(PYVERS:%=dbg-build-python%)
+
+build-python%:
+ python$* setup.py install --no-compile --root $(p)
+
+dbg-build-python%:
+ python$*-dbg setup.py install --no-compile --root $(pd)
+
+clean: unpatch
+ dh_testdir
+ dh_clean -i -a
+ python setup.py clean
+ rm -rf build
+ rm -f uniconvertor.1
+
+install: build install-python dbg-install-python
+
+install-python:
+ mv $(p)/usr/bin/uniconv $(p)/usr/bin/uniconvertor
+ chmod 755 `find $(p) -wholename "*/uniconvertor/__init__.py"`
+ find $(p) -type f -name 'GNU_*GPL_v2' | xargs rm -f
+ find $(p) -type f -name 'COPYRIGHTS' | xargs rm -f
+
+dbg-install-python:
+ find $(pd) ! -type d ! -name '*_d.so' | xargs rm -f
+ find $(pd) -depth -empty -exec rmdir {} \;
+ dh_link -ppython-uniconvertor-dbg /usr/share/doc/python-uniconvertor /usr/share/doc/python-uniconvertor-dbg
+
+binary-indep:
+ # Nothing to do.
+
+binary-arch: install
+ dh_testdir
+ dh_testroot
+ dh_installman uniconvertor.1
+ dh_installdocs
+ dh_installchangelogs
+ dh_strip -ppython-uniconvertor --dbg-package=python-uniconvertor-dbg
+ dh_compress -a -X.py
+ dh_fixperms -a
+ dh_pycentral -a
+ dh_makeshlibs -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a -- -Z bzip2
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary binary-indep binary-arch install
Property changes on: packages/python-uniconvertor/branches/lenny/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: packages/python-uniconvertor/branches/lenny/debian/uniconvertor.pod
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/uniconvertor.pod (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/uniconvertor.pod 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,51 @@
+=head1 NAME
+
+UniConvertor -- command line tool to convert vector graphic files
+
+=head1 SYNOPSIS
+
+uniconvertor [input file] [output file]
+
+=head1 DESCRIPTION
+
+Converts one vector graphics format to another using sK1 engine.
+
+Allowed input formats:
+ AI - Adobe Illustrator files (postscript based)
+ CDR - CorelDRAW Graphics files (7-X3,X4 versions)
+ CDT - CorelDRAW templates files (7-X3 versions)
+ CCX - Corel Compressed Exchange files
+ CMX - Corel Presentation Exchange files (CMX1 format)
+ SVG - Scalable Vector Graphics files
+ FIG - XFig files
+ CGM - Computer Graphics Metafile files
+ AFF - Draw files
+ WMF - Windows Metafile files
+ SK - Sketch/Skencil files
+ SK1 - sK1 vector graphics files
+
+Allowed output formats:
+ AI - Adobe Illustrator files (postscript based)
+ SVG - Scalable Vector Graphics files
+ CGM - Computer Graphics Metafile files
+ WMF - Windows Metafile files
+ SK - Sketch/Skencil files
+ SK1 - sK1 vector graphics files
+
+=head1 EXAMPLES
+
+B<uniconvertor> drawing.cdr drawing.svg
+
+=head1 AUTHORS
+
+UniConvertor is written by sK1 Team (http://sk1project.org), copyright (C) 2007 by Igor E. Novikov, Valek Filippov.
+
+This manual page was written by Andreas Wenning <awen at awen.dk>, for the Debian project (but may be used by others).
+
+=head1 COPYRIGHT
+
+UniConvertor is released under GNU General Public License; on Debian systems the complete text can be found in /usr/share/common-licenses/GPL-2 file.
+
+The filters are released under GNU Library General Public License; on Debian systems the complete text can be found in /usr/share/common-licenses/LGPL-2 file.
+
+=cut
Added: packages/python-uniconvertor/branches/lenny/debian/watch
===================================================================
--- packages/python-uniconvertor/branches/lenny/debian/watch (rev 0)
+++ packages/python-uniconvertor/branches/lenny/debian/watch 2008-11-25 23:12:35 UTC (rev 6975)
@@ -0,0 +1,2 @@
+version=3
+http://sk1project.org/modules.php?name=Products&product=uniconvertor http://sk1project.org/downloads/uniconvertor/v.*/uniconvertor-(.*)\.tar\.gz
More information about the Python-modules-commits
mailing list