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

ryandesign at macports.org ryandesign at macports.org
Wed Aug 27 14:22:12 PDT 2008


Revision: 39647
          http://trac.macosforge.org/projects/macports/changeset/39647
Author:   ryandesign at macports.org
Date:     2008-08-27 14:22:11 -0700 (Wed, 27 Aug 2008)
Log Message:
-----------
pango-devel: pango 1.21.4 requires at least cairo 1.7.1 to build libpangocairo

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

Modified: trunk/dports/x11/pango-devel/Portfile
===================================================================
--- trunk/dports/x11/pango-devel/Portfile	2008-08-27 21:20:14 UTC (rev 39646)
+++ trunk/dports/x11/pango-devel/Portfile	2008-08-27 21:22:11 UTC (rev 39647)
@@ -5,6 +5,7 @@
 name                    pango-devel
 set my_name             pango
 version                 1.21.4
+revision                1
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              x11
 maintainers             ryandesign
@@ -36,7 +37,7 @@
     path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2-devel \
     lib:libX11.6:XFree86 \
     port:Xft2 \
-    port:cairo \
+    path:${prefix}/lib/pkgconfig/cairo.pc:cairo-devel \
     port:fontconfig
 
 patchfiles \
@@ -48,6 +49,12 @@
     if {[rpm-vercomp ${glib_installed_version} ${glib_minimum_version}] < 0} {
         return -code error "pango ${version} requires glib ${glib_minimum_version} or later but you have glib ${glib_installed_version}. Please deactivate glib2 and install glib2-devel, then try again."
     }
+    
+    set cairo_minimum_version 1.7.4
+    set cairo_installed_version [exec pkg-config cairo --modversion]
+    if {[rpm-vercomp ${cairo_installed_version} ${cairo_minimum_version}] < 0} {
+        return -code error "pango ${version} requires cairo ${cairo_minimum_version} or later but you have cairo ${cairo_installed_version}. Please deactivate cairo and install cairo-devel, then try again."
+    }
 }
 
 configure.cppflags-append \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080827/79207640/attachment.html 


More information about the macports-changes mailing list