Changeset 68970 for trunk/dports/tex


Ignore:
Timestamp:
Jun 18, 2010, 10:23:19 PM (9 years ago)
Author:
dports@…
Message:

texlive:

  • move dummy documentation file to $prefix/share/doc/texlive/
  • remove dependencies on texlive-documentation-* if -doc variant requested (#25329)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/tex/texlive/Portfile

    r68887 r68970  
    33
    44PortSystem      1.0
     5PortGroup       texlive 1.0
    56
    67name            texlive
    78version         2009
     9revision        1
    810
    911categories      tex
     
    3032destroot        {
    3133    # Create a dummy file so the port can be successfully activated
    32     xinstall -d ${destroot}${prefix}/share/doc
    33     system "echo ${long_description} > ${destroot}${prefix}/share/doc/README.${name}.txt"
     34    xinstall -d ${destroot}${prefix}/share/doc/texlive
     35    set docfile [open ${destroot}${prefix}/share/doc/texlive/README.${name}.txt "w"]
     36    puts $docfile "TeX Live ${version} (MacPorts revision ${version}_${revision})"
     37    puts $docfile "\n${long_description}"
     38    puts $docfile "\nThe other files in this directory list the versions and "
     39    puts $docfile "contents of each TeX Live port installed."
     40    close $docfile
    3441}
    3542
     
    7279                port:texlive-luatex \
    7380                port:texlive-generic-recommended
     81
     82    if {![variant_isset "doc"]} {
     83        texlive.removedocdepends
     84    }
    7485}
    7586
     
    158169                port:texlive-science \
    159170                port:texlive-xetex
     171
     172    if {![variant_isset "doc"]} {
     173        texlive.removedocdepends
     174    }
    160175}
    161176
     
    166181}
    167182
    168 # These variants are for the underlying texmf ports; list them here so
    169 # they get shown in 'port variants texlive'
     183# These variants are mainly for the underlying texmf ports; list them
     184# here so they get shown in 'port variants texlive'
    170185variant doc description {Install documentation} { }
    171186variant src description {Install TeX source} { }
Note: See TracChangeset for help on using the changeset viewer.