[100210] trunk/dports/x11/pango-devel/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Dec 3 12:36:39 PST 2012


Revision: 100210
          https://trac.macports.org/changeset/100210
Author:   ryandesign at macports.org
Date:     2012-12-03 12:36:39 -0800 (Mon, 03 Dec 2012)
Log Message:
-----------
pango-devel: update to 1.32.3 for harfbuzz 0.9.7 support; fix pango.modules file

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

Modified: trunk/dports/x11/pango-devel/Portfile
===================================================================
--- trunk/dports/x11/pango-devel/Portfile	2012-12-03 20:15:34 UTC (rev 100209)
+++ trunk/dports/x11/pango-devel/Portfile	2012-12-03 20:36:39 UTC (rev 100210)
@@ -6,8 +6,7 @@
 name                    pango-devel
 conflicts               pango
 set my_name             pango
-version                 1.31.2
-revision                1
+version                 1.32.3
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              x11
 maintainers             ryandesign openmaintainer
@@ -28,8 +27,8 @@
     open-source framework for the layout and rendering \
     of internationalized text.
 
-checksums               rmd160  3aa869637fdce6ed8d94b0bd0fb5dae85853698d \
-                        sha256  e473998006e6b04f6055882d00bc5a84e4fc5232523d79216ebed906353787be
+checksums               rmd160  ead3d372165a7d0be03d62322aaea8365f76bacb \
+                        sha256  19a1a4fa021fcf96261de3cb809295ac06546f2a061c3c623141f2f4989b6a36
 
 depends_build \
     port:pkgconfig
@@ -56,6 +55,13 @@
 }
 
 pre-configure {
+    set harfbuzz_minimum_version 0.9.7
+    set harfbuzz_installed_version [exec ${prefix}/bin/pkg-config harfbuzz --modversion]
+    if {[vercmp ${harfbuzz_installed_version} ${harfbuzz_minimum_version}] < 0} {
+        ui_error "${name} ${version} requires harfbuzz ${harfbuzz_minimum_version} or later but you have harfbuzz ${harfbuzz_installed_version}."
+        return -code error "incompatible harfbuzz version"
+    }
+    
     set glib_minimum_version 2.33.12
     set glib_installed_version [exec ${prefix}/bin/pkg-config glib-2.0 --modversion]
     if {[vercmp ${glib_installed_version} ${glib_minimum_version}] < 0} {
@@ -133,7 +139,7 @@
             ${destroot}${prefix}/etc/pango/pangorc
 
         system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib \
-            ${destroot}${prefix}/bin/pango-querymodules ${destroot}${prefix}/lib/pango/1.6.0/modules/*.so \
+            ${destroot}${prefix}/bin/pango-querymodules ${destroot}${prefix}/lib/pango/*/modules/*.so \
             >${destroot}${prefix}/etc/pango/pango.modules"
         reinplace s|${destroot}||g ${destroot}${prefix}/etc/pango/pango.modules
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121203/f5ee2970/attachment.html>


More information about the macports-changes mailing list