[71726] trunk/dports/graphics/pdf2djvu

ryandesign at macports.org ryandesign at macports.org
Tue Sep 21 00:39:13 PDT 2010


Revision: 71726
          http://trac.macports.org/changeset/71726
Author:   ryandesign at macports.org
Date:     2010-09-21 00:39:11 -0700 (Tue, 21 Sep 2010)
Log Message:
-----------
pdf2djvu: fix build with gettext 0.18; see #25633

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

Added Paths:
-----------
    trunk/dports/graphics/pdf2djvu/files/patch-i18n.hh.orig

Modified: trunk/dports/graphics/pdf2djvu/Portfile
===================================================================
--- trunk/dports/graphics/pdf2djvu/Portfile	2010-09-21 07:33:59 UTC (rev 71725)
+++ trunk/dports/graphics/pdf2djvu/Portfile	2010-09-21 07:39:11 UTC (rev 71726)
@@ -3,7 +3,7 @@
 PortSystem          1.0
 name                pdf2djvu
 version             0.7.4
-revision            1
+revision            2
 categories          graphics textproc
 maintainers         nomaintainer
 description         Convert PDF to DjVu
@@ -27,10 +27,10 @@
 
 depends_lib         port:djvulibre port:poppler port:libiconv port:GraphicsMagick
 
-patchfiles          patch-configure.diff patch-tools-xml2c.diff
+patchfiles          patch-configure.diff \
+                    patch-i18n.hh.orig \
+                    patch-tools-xml2c.diff
 
-configure.args-append --disable-nls
-
 configure.universal_args-delete --disable-dependency-tracking
 
 post-destroot {

Added: trunk/dports/graphics/pdf2djvu/files/patch-i18n.hh.orig
===================================================================
--- trunk/dports/graphics/pdf2djvu/files/patch-i18n.hh.orig	                        (rev 0)
+++ trunk/dports/graphics/pdf2djvu/files/patch-i18n.hh.orig	2010-09-21 07:39:11 UTC (rev 71726)
@@ -0,0 +1,13 @@
+--- i18n.hh.orig	2010-06-12 15:20:36.000000000 -0500
++++ i18n.hh	2010-09-21 02:34:55.000000000 -0500
+@@ -26,6 +26,10 @@
+ 
+ #include <libintl.h>
+ 
++#ifdef setlocale
++#undef setlocale
++#endif
++
+ static inline const char * _(const char *message_id)
+ {
+   return gettext(message_id);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100921/8c2a02a8/attachment.html>


More information about the macports-changes mailing list