[113815] trunk/dports/graphics/pdf2djvu

nicos at macports.org nicos at macports.org
Sun Nov 24 00:57:53 PST 2013


Revision: 113815
          https://trac.macports.org/changeset/113815
Author:   nicos at macports.org
Date:     2013-11-24 00:57:52 -0800 (Sun, 24 Nov 2013)
Log Message:
-----------
pdf2djvu: add patch to compile on Mavericks (ticket #41298)

Modified Paths:
--------------
    trunk/dports/graphics/pdf2djvu/Portfile

Added Paths:
-----------
    trunk/dports/graphics/pdf2djvu/files/patch-system-operator.diff

Modified: trunk/dports/graphics/pdf2djvu/Portfile
===================================================================
--- trunk/dports/graphics/pdf2djvu/Portfile	2013-11-24 04:24:24 UTC (rev 113814)
+++ trunk/dports/graphics/pdf2djvu/Portfile	2013-11-24 08:57:52 UTC (rev 113815)
@@ -5,7 +5,7 @@
 
 name                pdf2djvu
 version             0.7.17
-revision            1
+revision            2
 categories          graphics textproc
 platforms           darwin
 license             GPL-2
@@ -35,7 +35,8 @@
 
 patchfiles          patch-configure.diff \
                     patch-i18n.hh.diff \
-                    patch-tools-xml2c.diff
+                    patch-tools-xml2c.diff \
+                    patch-system-operator.diff
 
 #Openmp is anyway not detected with llvm-gcc or clang, and breaks compilation with
 #gcc42 on SL (ticket #38184)

Added: trunk/dports/graphics/pdf2djvu/files/patch-system-operator.diff
===================================================================
--- trunk/dports/graphics/pdf2djvu/files/patch-system-operator.diff	                        (rev 0)
+++ trunk/dports/graphics/pdf2djvu/files/patch-system-operator.diff	2013-11-24 08:57:52 UTC (rev 113815)
@@ -0,0 +1,37 @@
+Only in .: .DS_Store
+diff -ru ../pdf2djvu-0.7.17.orig/system.cc ./system.cc
+--- ../pdf2djvu-0.7.17.orig/system.cc	2013-05-31 05:22:26.000000000 +0900
++++ ./system.cc	2013-11-24 12:26:27.000000000 +0900
+@@ -275,6 +275,12 @@
+   return *this;
+ }
+ 
++Command &Command::operator <<(const File& arg)
++{
++  this->argv.push_back(arg);
++  return *this;
++}
++
+ Command &Command::operator <<(int i)
+ {
+   std::ostringstream stream;
+diff -ru ../pdf2djvu-0.7.17.orig/system.hh ./system.hh
+--- ../pdf2djvu-0.7.17.orig/system.hh	2013-05-31 05:22:26.000000000 +0900
++++ ./system.hh	2013-11-24 12:26:27.000000000 +0900
+@@ -61,6 +61,8 @@
+   { };
+ };
+ 
++class File;
++
+ class Command
+ {
+ protected:
+@@ -81,6 +83,7 @@
+   };
+   explicit Command(const std::string& command);
+   Command &operator <<(const std::string& arg);
++  Command &operator <<(const File& arg);
+   Command &operator <<(int i);
+   void operator()(std::ostream &my_stdout, bool quiet = false);
+   void operator()(bool quiet = false);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131124/17b59891/attachment.html>


More information about the macports-changes mailing list