[63394] trunk/dports/tex/rubber

raimue at macports.org raimue at macports.org
Wed Feb 3 15:01:28 PST 2010


Revision: 63394
          http://trac.macports.org/changeset/63394
Author:   raimue at macports.org
Date:     2010-02-03 15:01:27 -0800 (Wed, 03 Feb 2010)
Log Message:
-----------
tex/rubber:
Fixes "rubber fails with spaces in file path"
Reference: https://bugs.launchpad.net/ubuntu/+source/rubber/+bug/122489

Modified Paths:
--------------
    trunk/dports/tex/rubber/Portfile

Added Paths:
-----------
    trunk/dports/tex/rubber/files/patch-spaces_in_path.diff

Modified: trunk/dports/tex/rubber/Portfile
===================================================================
--- trunk/dports/tex/rubber/Portfile	2010-02-03 22:54:48 UTC (rev 63393)
+++ trunk/dports/tex/rubber/Portfile	2010-02-03 23:01:27 UTC (rev 63394)
@@ -5,7 +5,7 @@
 name            rubber
 version         1.1
 revision        5
-patchfiles      patch-ab patch-ac patch-src_util.py.diff
+patchfiles      patch-ab patch-ac patch-src_util.py.diff patch-spaces_in_path.diff
 categories      tex print
 maintainers     milosh openmaintainer
 description     An automated system for building LaTeX documents

Added: trunk/dports/tex/rubber/files/patch-spaces_in_path.diff
===================================================================
--- trunk/dports/tex/rubber/files/patch-spaces_in_path.diff	                        (rev 0)
+++ trunk/dports/tex/rubber/files/patch-spaces_in_path.diff	2010-02-03 23:01:27 UTC (rev 63394)
@@ -0,0 +1,13 @@
+patch from Wouter Bolsterlee -- https://bugs.launchpad.net/ubuntu/+source/rubber/+bug/122489/comments/1
+--- src/rules/latex/__init__.py.old  2007-03-12 00:01:34.000000000 +0100
++++ src/rules/latex/__init__.py      2007-03-12 00:00:52.000000000 +0100
+@@ -1107,7 +1107,8 @@
+ 		
+ 		file = self.source()
+ 		cmd = [self.vars["program"]]
+-		cmd += map(lambda x: x.replace("%s",file), self.cmdline)
++		quoted_file = '"%s"' % file
++		cmd += map(lambda x: x.replace("%s", quoted_file), self.cmdline)
+ 		inputs = string.join(self.env.path, ":")
+ 		if inputs == "":
+ 			env = {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100203/0f202816/attachment.html>


More information about the macports-changes mailing list