[68970] trunk/dports/tex/texlive/Portfile

dports at macports.org dports at macports.org
Fri Jun 18 15:23:20 PDT 2010


Revision: 68970
          http://trac.macports.org/changeset/68970
Author:   dports at macports.org
Date:     2010-06-18 15:23:19 -0700 (Fri, 18 Jun 2010)
Log Message:
-----------
texlive: 
 * move dummy documentation file to $prefix/share/doc/texlive/
 * remove dependencies on texlive-documentation-* if -doc variant
   requested (#25329)

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

Modified: trunk/dports/tex/texlive/Portfile
===================================================================
--- trunk/dports/tex/texlive/Portfile	2010-06-18 22:20:58 UTC (rev 68969)
+++ trunk/dports/tex/texlive/Portfile	2010-06-18 22:23:19 UTC (rev 68970)
@@ -2,9 +2,11 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       texlive 1.0
 
 name            texlive
 version         2009
+revision        1
 
 categories      tex
 maintainers     dports
@@ -29,8 +31,13 @@
 
 destroot        {
     # Create a dummy file so the port can be successfully activated
-    xinstall -d ${destroot}${prefix}/share/doc
-    system "echo ${long_description} > ${destroot}${prefix}/share/doc/README.${name}.txt"
+    xinstall -d ${destroot}${prefix}/share/doc/texlive
+    set docfile [open ${destroot}${prefix}/share/doc/texlive/README.${name}.txt "w"]
+    puts $docfile "TeX Live ${version} (MacPorts revision ${version}_${revision})"
+    puts $docfile "\n${long_description}"
+    puts $docfile "\nThe other files in this directory list the versions and "
+    puts $docfile "contents of each TeX Live port installed."
+    close $docfile
 }
 
 variant minimal \
@@ -71,6 +78,10 @@
                 port:texlive-xetex \
                 port:texlive-luatex \
                 port:texlive-generic-recommended
+
+    if {![variant_isset "doc"]} {
+        texlive.removedocdepends
+    }
 }
 
 variant full \
@@ -157,6 +168,10 @@
                 port:texlive-publishers \
                 port:texlive-science \
                 port:texlive-xetex
+
+    if {![variant_isset "doc"]} {
+        texlive.removedocdepends
+    }
 }
 
 variant letter description {Set paper format to letter} {
@@ -165,8 +180,8 @@
     }
 }
 
-# These variants are for the underlying texmf ports; list them here so
-# they get shown in 'port variants texlive'
+# These variants are mainly for the underlying texmf ports; list them
+# here so they get shown in 'port variants texlive'
 variant doc description {Install documentation} { }
 variant src description {Install TeX source} { }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100618/ea62119c/attachment.html>


More information about the macports-changes mailing list