summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-06-18 20:11:18 +0000
committerjoerg <joerg@pkgsrc.org>2013-06-18 20:11:18 +0000
commitb1461cddc1ac242fa8bd3dec62772734f8344efb (patch)
tree82111c416b089b7d29d4b53e32669908bf1fc276 /print
parent5dc034fa5d3fd3c9aa4e1ae3f74f1ffd0e64722b (diff)
downloadpkgsrc-b1461cddc1ac242fa8bd3dec62772734f8344efb.tar.gz
Add explicit operator << for Commands taking File arguments as the
use depends on the intermediate conversion to string, which is not valid C++.
Diffstat (limited to 'print')
-rw-r--r--print/pdf2djvu/distinfo4
-rw-r--r--print/pdf2djvu/patches/patch-pdf2djvu.cc18
-rw-r--r--print/pdf2djvu/patches/patch-system.hh13
3 files changed, 34 insertions, 1 deletions
diff --git a/print/pdf2djvu/distinfo b/print/pdf2djvu/distinfo
index deb30c978aa..e95609d4393 100644
--- a/print/pdf2djvu/distinfo
+++ b/print/pdf2djvu/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.4 2012/10/01 15:34:56 ryoon Exp $
+$NetBSD: distinfo,v 1.5 2013/06/18 20:11:18 joerg Exp $
SHA1 (pdf2djvu_0.7.14.tar.gz) = 0023e1719f53452f64b1fffb6e5d20fc29b30308
RMD160 (pdf2djvu_0.7.14.tar.gz) = 5116939c7bc698e3316bf6c86272104cd5040d24
Size (pdf2djvu_0.7.14.tar.gz) = 320705 bytes
+SHA1 (patch-pdf2djvu.cc) = 63118d7207919417dec983582428c23621c301a1
+SHA1 (patch-system.hh) = dcc18be77d5ff0e7d5f70043efd4ae739c54627a
diff --git a/print/pdf2djvu/patches/patch-pdf2djvu.cc b/print/pdf2djvu/patches/patch-pdf2djvu.cc
new file mode 100644
index 00000000000..a05aa287aae
--- /dev/null
+++ b/print/pdf2djvu/patches/patch-pdf2djvu.cc
@@ -0,0 +1,18 @@
+$NetBSD: patch-pdf2djvu.cc,v 1.1 2013/06/18 20:11:18 joerg Exp $
+
+--- pdf2djvu.cc.orig 2013-06-18 19:40:16.000000000 +0000
++++ pdf2djvu.cc
+@@ -210,6 +210,13 @@ public:
+ friend Command &operator <<(Command &, const Component &);
+ };
+
++Command &operator <<(Command &command, const File &arg)
++{
++ const std::string filename(arg);
++ command << filename;
++ return command;
++}
++
+ Command &operator <<(Command &command, const Component &component)
+ {
+ command << *component.file;
diff --git a/print/pdf2djvu/patches/patch-system.hh b/print/pdf2djvu/patches/patch-system.hh
new file mode 100644
index 00000000000..5b3ae64e97f
--- /dev/null
+++ b/print/pdf2djvu/patches/patch-system.hh
@@ -0,0 +1,13 @@
+$NetBSD: patch-system.hh,v 1.1 2013/06/18 20:11:18 joerg Exp $
+
+--- system.hh.orig 2013-06-18 19:44:44.000000000 +0000
++++ system.hh
+@@ -136,6 +136,8 @@ public:
+ friend std::ostream &operator<<(std::ostream &, const File &);
+ };
+
++Command &operator <<(const Command &, const File& arg);
++
+ class TemporaryFile : public File
+ {
+ private: