[114082] trunk/dports/python/py-Pillow
stromnov at macports.org
stromnov at macports.org
Thu Nov 28 05:15:51 PST 2013
Revision: 114082
https://trac.macports.org/changeset/114082
Author: stromnov at macports.org
Date: 2013-11-28 05:15:51 -0800 (Thu, 28 Nov 2013)
Log Message:
-----------
py-Pillow: fix compiling with FreeType 2.5.1
Modified Paths:
--------------
trunk/dports/python/py-Pillow/Portfile
Added Paths:
-----------
trunk/dports/python/py-Pillow/files/patch-_imagingft.c.diff
Modified: trunk/dports/python/py-Pillow/Portfile
===================================================================
--- trunk/dports/python/py-Pillow/Portfile 2013-11-28 11:02:55 UTC (rev 114081)
+++ trunk/dports/python/py-Pillow/Portfile 2013-11-28 13:15:51 UTC (rev 114082)
@@ -6,7 +6,7 @@
name py-Pillow
version 2.2.1
-revision 0
+revision 1
categories-append devel
platforms darwin
license BSD
@@ -41,7 +41,8 @@
port:webp \
port:freetype
- patchfiles patch-setup.py.diff
+ patchfiles patch-setup.py.diff \
+ patch-_imagingft.c.diff
post-patch {
reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/setup.py
@@ -51,5 +52,5 @@
} else {
livecheck.type regex
livecheck.url ${master_sites}
- livecheck.regex "Pillow-(\\d+(?:\\.\\d+)*)\.\[tz\]"
+ livecheck.regex {Pillow-(\d+(?:\.\d+)*)\.[tz]}
}
Added: trunk/dports/python/py-Pillow/files/patch-_imagingft.c.diff
===================================================================
--- trunk/dports/python/py-Pillow/files/patch-_imagingft.c.diff (rev 0)
+++ trunk/dports/python/py-Pillow/files/patch-_imagingft.c.diff 2013-11-28 13:15:51 UTC (rev 114082)
@@ -0,0 +1,14 @@
+--- _imagingft.c.orig 2013-11-27 16:07:53.000000000 +0400
++++ _imagingft.c 2013-11-27 16:12:01.000000000 +0400
+@@ -70,7 +70,11 @@
+ const char* message;
+ } ft_errors[] =
+
++#if defined(USE_FREETYPE_2_1)
++#include FT_ERRORS_H
++#else
+ #include <freetype/fterrors.h>
++#endif
+
+ /* -------------------------------------------------------------------- */
+ /* font objects */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131128/12898a19/attachment.html>
More information about the macports-changes
mailing list