[46447] trunk/dports/tex/texlive_base/Portfile

devans at macports.org devans at macports.org
Wed Feb 4 19:13:58 PST 2009


Revision: 46447
          http://trac.macports.org/changeset/46447
Author:   devans at macports.org
Date:     2009-02-04 19:13:57 -0800 (Wed, 04 Feb 2009)
Log Message:
-----------
texlive_base: add +no_x11 variant.

Modified Paths:
--------------
    trunk/dports/tex/texlive_base/Portfile

Modified: trunk/dports/tex/texlive_base/Portfile
===================================================================
--- trunk/dports/tex/texlive_base/Portfile	2009-02-05 02:47:11 UTC (rev 46446)
+++ trunk/dports/tex/texlive_base/Portfile	2009-02-05 03:13:57 UTC (rev 46447)
@@ -57,6 +57,14 @@
         ${destroot}${prefix}/share/texmf/web2c/texmf.cnf-dist
     reinplace "s/^TEXMFSYSCONFIG = .*/TEXMFSYSCONFIG = \$TEXMFMAIN/g" \
         ${destroot}${prefix}/share/texmf/web2c/texmf.cnf
+#
+#   if there is no graphics support (no_x11) then only mf is built
+#   not mf-nowin.  if mf-nowin does not exist, make a link to mf named mf-nowin for scripts
+#   that expect to have it
+#
+    if {![file exists ${destroot}${prefix}/bin/mf-nowin]} {
+        file link ${destroot}${prefix}/bin/mf-nowin ${destroot}${prefix}/bin/mf
+    }
 }
 
 post-activate   {
@@ -65,6 +73,11 @@
         system "updmap-sys --syncwithtrees"
 }
 
+variant no_x11 {
+    depends_lib-delete port:xorg-libs
+    configure.args-append --without-x --without-pdfopen
+}
+
 livecheck.check     regex
 livecheck.url       ${homepage}acquire.html
 livecheck.regex     "TeX Live (\[0-9\]+) "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090204/1518ac42/attachment.html>


More information about the macports-changes mailing list