[152247] trunk/dports/x11/pango

devans at macports.org devans at macports.org
Thu Sep 1 18:37:06 PDT 2016


Revision: 152247
          https://trac.macports.org/changeset/152247
Author:   devans at macports.org
Date:     2016-09-01 18:37:06 -0700 (Thu, 01 Sep 2016)
Log Message:
-----------
pango: build fix for 10.6 and earlier, initializer element not constant.

Modified Paths:
--------------
    trunk/dports/x11/pango/Portfile

Added Paths:
-----------
    trunk/dports/x11/pango/files/patch-initializer-element-not-constant.diff

Modified: trunk/dports/x11/pango/Portfile
===================================================================
--- trunk/dports/x11/pango/Portfile	2016-09-02 00:59:04 UTC (rev 152246)
+++ trunk/dports/x11/pango/Portfile	2016-09-02 01:37:06 UTC (rev 152247)
@@ -43,7 +43,8 @@
     path:lib/pkgconfig/cairo.pc:cairo \
     port:harfbuzz
 
-patchfiles              patch-ltmain.sh.diff
+patchfiles              patch-ltmain.sh.diff \
+                        patch-initializer-element-not-constant.diff
 
 configure.args          --enable-static \
                         --disable-silent-rules \

Added: trunk/dports/x11/pango/files/patch-initializer-element-not-constant.diff
===================================================================
--- trunk/dports/x11/pango/files/patch-initializer-element-not-constant.diff	                        (rev 0)
+++ trunk/dports/x11/pango/files/patch-initializer-element-not-constant.diff	2016-09-02 01:37:06 UTC (rev 152247)
@@ -0,0 +1,20 @@
+--- pango/pangocoretext-fontmap.c.orig	2016-09-01 18:23:39.000000000 -0700
++++ pango/pangocoretext-fontmap.c	2016-09-01 18:28:09.000000000 -0700
+@@ -119,7 +119,7 @@
+  */
+ 
+ static const PangoCTWeight ct_weight_map[] = {
+-    { ct_weight_min, PANGO_WEIGHT_THIN },
++    { -0.7, PANGO_WEIGHT_THIN },
+     { -0.5, PANGO_WEIGHT_ULTRALIGHT },
+     { -0.23, PANGO_WEIGHT_LIGHT },
+     { -0.115, PANGO_WEIGHT_SEMILIGHT },
+@@ -128,7 +128,7 @@
+     {  0.3, PANGO_WEIGHT_SEMIBOLD },
+     {  0.4, PANGO_WEIGHT_BOLD },
+     {  0.6, PANGO_WEIGHT_ULTRABOLD },
+-    {  ct_weight_max, PANGO_WEIGHT_HEAVY }
++    {  0.8, PANGO_WEIGHT_HEAVY }
+ };
+ 
+ static const char *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160901/70cb726c/attachment.html>


More information about the macports-changes mailing list