[75821] trunk/dports/python

ricci at macports.org ricci at macports.org
Wed Feb 9 09:21:59 PST 2011


Revision: 75821
          http://trac.macports.org/changeset/75821
Author:   ricci at macports.org
Date:     2011-02-09 09:21:59 -0800 (Wed, 09 Feb 2011)
Log Message:
-----------
New port, py26-pypdf - python 2.7 version of pypdf

Added Paths:
-----------
    trunk/dports/python/py27-pypdf/
    trunk/dports/python/py27-pypdf/Portfile
    trunk/dports/python/py27-pypdf/files/
    trunk/dports/python/py27-pypdf/files/patch-pyPdf-pdf.py.diff

Added: trunk/dports/python/py27-pypdf/Portfile
===================================================================
--- trunk/dports/python/py27-pypdf/Portfile	                        (rev 0)
+++ trunk/dports/python/py27-pypdf/Portfile	2011-02-09 17:21:59 UTC (rev 75821)
@@ -0,0 +1,30 @@
+# $Id$
+
+PortSystem      1.0
+PortGroup       python27 1.0
+
+name            py27-pypdf
+version         1.13
+revision        0
+categories      python devel
+platforms       darwin
+maintainers     nomaintainer
+description     A Pure-Python PDF toolkit.
+
+long_description \
+		A Pure-Python PDF toolkit. \
+		It is capable of extracting document information (title, author, ...), \
+		splitting documents page by page, merging documents page by page, \
+		cropping pages, merging multiple pages into a single page, \
+		and encrypting and decrypting PDF files.
+
+checksums           md5     7a75ef56f227b78ae62d6e38d4b6b1da \
+                    sha1    ba7aed11cf21a2c218df2e3979be5eb90992dcbe \
+                    rmd160  0669d4a93c20fcd899d15ff42cb1b8b908f28e3b
+
+
+homepage        http://pybrary.net/pyPdf/
+master_sites    ${homepage}
+distname        pyPdf-${version}
+
+patchfiles		patch-pyPdf-pdf.py.diff


Property changes on: trunk/dports/python/py27-pypdf/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py27-pypdf/files/patch-pyPdf-pdf.py.diff
===================================================================
--- trunk/dports/python/py27-pypdf/files/patch-pyPdf-pdf.py.diff	                        (rev 0)
+++ trunk/dports/python/py27-pypdf/files/patch-pyPdf-pdf.py.diff	2011-02-09 17:21:59 UTC (rev 75821)
@@ -0,0 +1,20 @@
+--- pyPdf/pdf.py.orig	2010-12-04 14:49:56.000000000 -0800
++++ pyPdf/pdf.py	2011-02-09 09:17:29.000000000 -0800
+@@ -1386,7 +1386,7 @@
+             if operator == "Tj":
+                 _text = operands[0]
+                 if isinstance(_text, TextStringObject):
+-                    text += _text
++                    text += _text + " "
+             elif operator == "T*":
+                 text += "\n"
+             elif operator == "'":
+@@ -1402,7 +1402,7 @@
+             elif operator == "TJ":
+                 for i in operands[0]:
+                     if isinstance(i, TextStringObject):
+-                        text += i
++                        text += i 
+         return text
+ 
+     ##
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110209/06e9c9c0/attachment.html>


More information about the macports-changes mailing list