[153680] trunk/dports/python/py-cairo/Portfile
mmoll at macports.org
mmoll at macports.org
Fri Oct 7 18:49:16 CEST 2016
Revision: 153680
https://trac.macports.org/changeset/153680
Author: mmoll at macports.org
Date: 2016-10-07 09:49:15 -0700 (Fri, 07 Oct 2016)
Log Message:
-----------
py-cairo: print out some warnings about installing cairo without +x11 enabled, partial fix for #51957
Modified Paths:
--------------
trunk/dports/python/py-cairo/Portfile
Modified: trunk/dports/python/py-cairo/Portfile
===================================================================
--- trunk/dports/python/py-cairo/Portfile 2016-10-07 14:29:47 UTC (rev 153679)
+++ trunk/dports/python/py-cairo/Portfile 2016-10-07 16:49:15 UTC (rev 153680)
@@ -3,6 +3,7 @@
PortSystem 1.0
PortGroup python 1.0
+PortGroup active_variants 1.1
name py-cairo
set my_name pycairo
@@ -26,6 +27,25 @@
python.versions 26 27 33 34 35
if {${name} ne ${subport}} {
+ if {![catch {set result [active_variants cairo x11]}]} {
+ if {!$result} {
+ notes "
+The cairo port is installed without the +x11 variant; you will get runtime\
+errors when installing a binary archive of ${subport}. Install ${subport}\
+from source like so:
+
+ sudo port install -s ${subport}
+"
+ }
+ } else {
+ notes "
+Make sure cairo is installed with the +x11 variant when installing the binary\
+version of ${subport} or install ${subport} from source like so:
+
+ sudo port install -s ${subport}
+"
+ }
+
depends_build port:pkgconfig port:py${python.version}-numpy
depends_lib-append path:lib/pkgconfig/cairo.pc:cairo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161007/b1df57dc/attachment-0002.html>
More information about the macports-changes
mailing list