aboutsummaryrefslogtreecommitdiffstats
path: root/editors/pdfedit
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2009-03-01 04:22:16 +0800
committeralepulver <alepulver@FreeBSD.org>2009-03-01 04:22:16 +0800
commit691b8a2b8a75cbdbea2cf867a79296384ee38678 (patch)
tree801d2866adcefa00ea626c50994294a46bde4a05 /editors/pdfedit
parentbee3f1f8f2726ed60ab222057a4edf101a66fb32 (diff)
downloadfreebsd-ports-gnome-691b8a2b8a75cbdbea2cf867a79296384ee38678.tar.gz
freebsd-ports-gnome-691b8a2b8a75cbdbea2cf867a79296384ee38678.tar.zst
freebsd-ports-gnome-691b8a2b8a75cbdbea2cf867a79296384ee38678.zip
- Fix for upcoming Boost 1.37 update.
PR: ports/132186 Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru>
Diffstat (limited to 'editors/pdfedit')
-rw-r--r--editors/pdfedit/Makefile2
-rw-r--r--editors/pdfedit/files/patch-src-kernel-cpdf.cc29
2 files changed, 30 insertions, 1 deletions
diff --git a/editors/pdfedit/Makefile b/editors/pdfedit/Makefile
index 61d3868ceed2..190284d5cbc3 100644
--- a/editors/pdfedit/Makefile
+++ b/editors/pdfedit/Makefile
@@ -7,7 +7,7 @@
PORTNAME= pdfedit
PORTVERSION= 0.4.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= editors
MASTER_SITES= SF
diff --git a/editors/pdfedit/files/patch-src-kernel-cpdf.cc b/editors/pdfedit/files/patch-src-kernel-cpdf.cc
new file mode 100644
index 000000000000..e1229d55d18b
--- /dev/null
+++ b/editors/pdfedit/files/patch-src-kernel-cpdf.cc
@@ -0,0 +1,29 @@
+--- src/kernel/cpdf.cc.orig 2008-02-22 11:42:07.000000000 +0300
++++ src/kernel/cpdf.cc 2009-02-28 05:38:20.000000000 +0300
+@@ -2347,7 +2347,7 @@
+ instance->file = file;
+ kernelPrintDbg(debug::DBG_INFO, "Instance created successfully openMode=" << openMode);
+ return instance;
+- }catch(exception &e)
++ }catch(std::exception &e)
+ {
+ kernelPrintDbg(DBG_CRIT, "Pdf instance creation failed. cause="<<e.what());
+ string what=string("CPdf open failed. reason=")+e.what();
+@@ -2631,7 +2631,7 @@
+ try
+ {
+ minPos = getNodePosition(*this, newValue, &nodeCountCache);
+- }catch(exception &e)
++ }catch(std::exception &e)
+ {
+ // position can't be determined
+ // no special handling is needed, minPos keeps its value
+@@ -2690,7 +2690,7 @@
+ kernelPrintDbg(DBG_WARN, "page with original position="<<i->first<<" is ambiguous. Invalidating.");
+ // page position is ambiguous and so it has to be invalidate
+ i->second->invalidate();
+- }catch(exception & e)
++ }catch(std::exception & e)
+ {
+ kernelPrintDbg(DBG_CRIT, "Unexpected error. cause="<<e.what());
+ assert(!"Possibly bug.");