[112515] trunk/dports/print/ghostscript/Portfile

takanori at macports.org takanori at macports.org
Thu Oct 24 23:06:09 PDT 2013


Revision: 112515
          https://trac.macports.org/changeset/112515
Author:   takanori at macports.org
Date:     2013-10-24 23:06:08 -0700 (Thu, 24 Oct 2013)
Log Message:
-----------
ghostscript:
 - variant '+no_x11' should be changed to -x11 (Ticket #39383, #38777)
 - fixed a dependency on perl5 (depends_lib -> depends_run)

Modified Paths:
--------------
    trunk/dports/print/ghostscript/Portfile

Modified: trunk/dports/print/ghostscript/Portfile
===================================================================
--- trunk/dports/print/ghostscript/Portfile	2013-10-25 04:14:14 UTC (rev 112514)
+++ trunk/dports/print/ghostscript/Portfile	2013-10-25 06:06:08 UTC (rev 112515)
@@ -5,6 +5,7 @@
 
 name            ghostscript
 version         9.10
+revision        1
 categories      print
 license         AGPL-3
 maintainers     takanori openmaintainer
@@ -52,15 +53,13 @@
                 port:libidn \
                 port:libpaper \
                 port:libpng \
-                port:perl5 \
                 port:tiff \
-                port:xorg-libXext \
-                port:xorg-libXt \
                 port:zlib
 #               port:lcms2
 #               port:ijs
 
 depends_build   port:pkgconfig
+depends_run     port:perl5
 
 post-extract {
 #   MacPorts's lcms2 is 2.4 and it doesn't support cmsPluginTHR() yet.
@@ -94,7 +93,9 @@
 
 configure.args  --disable-compile-inits \
                 --disable-cups \
+                --disable-dbus \
                 --disable-gtk \
+                --without-x \
                 --without-luratech \
                 --with-system-libtiff
 
@@ -117,12 +118,21 @@
 
 configure.universal_args-delete --disable-dependency-tracking
 
-variant no_x11 {
-    depends_lib-delete port:xorg-libXext
-    depends_lib-delete port:xorg-libXt
-    configure.args-append --without-x
+if {[variant_isset no_x11]} {
+    default_variants    -x11
+} else { 
+    default_variants    +x11
 }
 
+variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
+
+variant x11 {
+    depends_lib-append port:xorg-libXext
+    depends_lib-append port:xorg-libXt
+    configure.args-delete --without-x
+    configure.args-append --with-x
+}
+
 variant cups description {Enable CUPS driver} {
     configure.args-delete --disable-cups
     configure.args-append --enable-cups
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131024/3888135e/attachment.html>


More information about the macports-changes mailing list