Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/text
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv25023

Modified Files:
        dblatex.info dblatex.patch 
Log Message:
Fix dblatex package such that /sw/bin/dblatex properly uses %p/bin/python2.4, 
not /usr/bin/python

Index: dblatex.patch
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/text/dblatex.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- dblatex.patch       5 Jan 2007 17:42:57 -0000       1.1
+++ dblatex.patch       5 Jan 2007 21:06:27 -0000       1.2
@@ -10,3 +10,23 @@
    \def\ElsevierGlyph##1{\csname U##1\endcsname}%
    \def\textpertenthousand{\Pisymbol{ppi031}{33}}
    \let\overrightharpoon\undefined
+diff -ru dblatex-0.2.2/setup.py dblatex-0.2.2-patched/setup.py
+--- dblatex-0.2.2/setup.py     2006-11-23 23:15:14.000000000 +0100
++++ dblatex-0.2.2-patched/setup.py     2007-01-05 20:03:59.000000000 +0100
+@@ -16,15 +16,12 @@
+ #
+ class BuildScripts(build_scripts):
+ 
+-    SHELL_SCRIPT = """#!%(env_executable)s%(env_args)s%(py_executable)s
++    SHELL_SCRIPT = """[EMAIL PROTECTED]@/bin/python2.4
+ import sys
+ import os
+ 
+ package_base = r"%(package_base)s"
+ 
+-%(lib_path)s
+-%(catalogs)s
+-%(style_set)s
+ from %(package_path)s import %(package)s
+ %(package)s.main(base=package_base)
+ """

Index: dblatex.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/text/dblatex.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- dblatex.info        5 Jan 2007 17:42:57 -0000       1.2
+++ dblatex.info        5 Jan 2007 21:06:27 -0000       1.3
@@ -16,7 +16,7 @@
 
 Package: dblatex
 Version: 0.2.2
-Revision: 1
+Revision: 2
 Maintainer: Max Horn <[EMAIL PROTECTED]>
 Depends: <<
   python24 (>= 1:2.4.3-1001),
@@ -26,13 +26,14 @@
 <<
 Source: mirror:sourceforge:%n/%n-%v.tar.bz2
 Source-MD5: 90b6d119d26ab2a047e467f4c3cd9899
-Patch: %n.patch
+PatchScript: sed 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1
 CompileScript: python2.4 setup.py build
-InstallScript: <<
-  python2.4 setup.py install --root=%d
-  perl -pi -e 's,%i,%p,' %i/bin/dblatex
-<<
+InstallScript: python2.4 setup.py install --root=%d
 DocFiles: COPYRIGHT
 Description: DocBook to LaTeX/ConTeXt Publishing
+DescPackaging: <<
+  The setup.py script is fixed to make sure it invokes the correct Python
+  interpreter.
+<<
 License: GPL
 Homepage: http://dblatex.sourceforge.net/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to