[71337] trunk/dports/textproc/pdftk

vinc17 at macports.org vinc17 at macports.org
Thu Sep 9 06:22:01 PDT 2010


Revision: 71337
          http://trac.macports.org/changeset/71337
Author:   vinc17 at macports.org
Date:     2010-09-09 06:22:00 -0700 (Thu, 09 Sep 2010)
Log Message:
-----------
pdftk: added patch to avoid CreationDate and ModDate corruption
(maintainer timeout). Closes #22265.

Modified Paths:
--------------
    trunk/dports/textproc/pdftk/Portfile

Added Paths:
-----------
    trunk/dports/textproc/pdftk/files/
    trunk/dports/textproc/pdftk/files/patch-report.cc.diff

Modified: trunk/dports/textproc/pdftk/Portfile
===================================================================
--- trunk/dports/textproc/pdftk/Portfile	2010-09-09 13:11:06 UTC (rev 71336)
+++ trunk/dports/textproc/pdftk/Portfile	2010-09-09 13:22:00 UTC (rev 71337)
@@ -5,7 +5,7 @@
 
 name                    pdftk
 version                 1.41
-revision                1
+revision                2
 categories              textproc graphics pdf
 maintainers             ryandesign
 platforms               darwin
@@ -91,3 +91,7 @@
 if { (![variant_exists with_gcc41] || ![variant_isset with_gcc41]) && ![variant_isset with_gcc42] } {
     default_variants    +with_gcc42
 }
+
+# Patch based on handle_utf8_data_in_update_info from the Debian package pdftk.
+patchfiles      patch-report.cc.diff
+patch.args      -p2

Added: trunk/dports/textproc/pdftk/files/patch-report.cc.diff
===================================================================
--- trunk/dports/textproc/pdftk/files/patch-report.cc.diff	                        (rev 0)
+++ trunk/dports/textproc/pdftk/files/patch-report.cc.diff	2010-09-09 13:22:00 UTC (rev 71337)
@@ -0,0 +1,11 @@
+--- a/pdftk/report.cc
++++ b/pdftk/report.cc
+@@ -1233,7 +1233,7 @@
+ 								string_to_jcharstring( jvs, jvs_size, &jvs_len, it->second );
+ 
+ 								info_p->put( new itext::PdfName( JvNewStringLatin1(it->first.c_str()) ),
+-														 new itext::PdfString( JvNewString(jvs, jvs_len), itext::PdfObject::TEXT_UNICODE ) );
++														 new itext::PdfString( JvNewStringUTF((char* )it->second.c_str()), (strcmp(it->first.c_str(), "ModDate") && strcmp(it->first.c_str(), "CreationDate")) ? itext::PdfObject::TEXT_UNICODE : itext::PdfObject::TEXT_PDFDOCENCODING ) );
+ 							}
+ 						}
+ 				}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100909/a37bc438/attachment.html>


More information about the macports-changes mailing list