[98205] trunk/dports/graphics/djvulibre
nicos at macports.org
nicos at macports.org
Sat Sep 29 00:39:40 PDT 2012
Revision: 98205
http://trac.macports.org//changeset/98205
Author: nicos at macports.org
Date: 2012-09-29 00:39:40 -0700 (Sat, 29 Sep 2012)
Log Message:
-----------
djvulibre: adding patch for handling UTF8 paths (ticket #34827)
Modified Paths:
--------------
trunk/dports/graphics/djvulibre/Portfile
Added Paths:
-----------
trunk/dports/graphics/djvulibre/files/
trunk/dports/graphics/djvulibre/files/patch-ByteStream.diff
Modified: trunk/dports/graphics/djvulibre/Portfile
===================================================================
--- trunk/dports/graphics/djvulibre/Portfile 2012-09-29 07:34:57 UTC (rev 98204)
+++ trunk/dports/graphics/djvulibre/Portfile 2012-09-29 07:39:40 UTC (rev 98205)
@@ -5,7 +5,7 @@
name djvulibre
version 3.5.25
-revision 2
+revision 3
categories graphics www
license GPL-2+
platforms darwin
@@ -22,6 +22,9 @@
master_sites sourceforge:project/djvu/DjVuLibre/${version}
distfiles ${name}-${version}.3${extract.suffix}
+#Upstream patch for handling UTF8 paths on Mac (ticket #34827)
+patchfiles patch-ByteStream.diff
+
checksums rmd160 f91befc4d118cd5426f84abaa4f20ede920a2a2e \
sha256 898d7ed6dd2fa311a521baa95407a91b20a872d80c45e8245442d64f142cb1e0
Added: trunk/dports/graphics/djvulibre/files/patch-ByteStream.diff
===================================================================
--- trunk/dports/graphics/djvulibre/files/patch-ByteStream.diff (rev 0)
+++ trunk/dports/graphics/djvulibre/files/patch-ByteStream.diff 2012-09-29 07:39:40 UTC (rev 98205)
@@ -0,0 +1,32 @@
+--- libdjvu/ByteStream.cpp.orig 2012-05-08 11:56:53.000000000 +0900
++++ libdjvu/ByteStream.cpp 2012-09-29 16:14:17.000000000 +0900
+@@ -648,7 +648,7 @@
+ static FILE *
+ urlfopen(const GURL &url,const char mode[])
+ {
+-#ifdef WIN32
++#if defined(WIN32)
+ FILE *retval=0;
+ const GUTF8String filename(url.UTF8Filename());
+ wchar_t *wfilename;
+@@ -666,6 +666,8 @@
+ }
+ }
+ return retval?retval:fopen((const char *)url.NativeFilename(),mode);
++#elif defined(__APPLE__)
++ return fopen((const char *)url.UTF8Filename(),mode);
+ #else
+ return fopen((const char *)url.NativeFilename(),mode);
+ #endif
+@@ -675,7 +677,11 @@
+ static int
+ urlopen(const GURL &url, const int mode, const int perm)
+ {
++#if defined(__APPLE__)
++ return open((const char *)url.UTF8Filename(),mode,perm);
++#else
+ return open((const char *)url.NativeFilename(),mode,perm);
++#endif
+ }
+ #endif /* UNIX */
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120929/a8e4cbe7/attachment-0001.html>
More information about the macports-changes
mailing list