Changeset 70455 for trunk/dports/tex


Ignore:
Timestamp:
Aug 10, 2010, 12:05:53 AM (9 years ago)
Author:
dports@…
Message:

texlive metaport: add name and description of scheme variant in notes
and in README file in $prefix/share/doc/texlive

File:
1 edited

Legend:

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

    r69876 r70455  
    77name            texlive
    88version         2009
    9 revision        2
     9revision        3
    1010
    1111categories      tex
     
    3030build           {}
    3131
    32 destroot        {
     32set scheme ""
     33set scheme_desc ""
     34
     35proc add_notes {} {
     36    global scheme scheme_desc
     37   
     38    notes "The \"${scheme}\" installation of TeX Live was selected. ${scheme_desc}\n"
     39   
     40    if {$scheme != "full"} {
     41        notes-append " \n"
     42        notes-append "Additional TeX Live packages are available. To see a list, use 'port list texlive-* and not installed'. If you want a full installation (very large), reinstall this metaport with the +full variant."
     43    }
     44}
     45destroot {
    3346    # Create a dummy file so the port can be successfully activated
    3447    xinstall -d ${destroot}${prefix}/share/doc/texlive
    3548    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."
     49    puts $docfile "TeX Live ${version} (MacPorts revision ${version}_${revision})\n"
     50    puts $docfile "${long_description}\n"
     51    puts $docfile "\nThe \"${scheme}\" scheme was installed. ${scheme_desc}\n"
     52    puts $docfile "The other files in this directory list the versions and contents of each TeX Live port installed."
    4053    close $docfile
    4154}
     
    4457    description "Minimal installation scheme (plain TeX only; no LaTeX)" \
    4558    conflicts basic medium full {
     59        set scheme "minimal"
     60        set scheme_desc "This installation provides the bare minimum support for plain TeX; it does not include LaTeX or any add-on packages."
     61        add_notes
     62
    4663        depends_lib port:texlive-basic
    4764    }
     
    5067    description "Basic installation scheme for plain TeX or LaTeX documents" \
    5168    conflicts minimal medium full {
     69        set scheme "basic"
     70        set scheme_desc "This installation provides support for plain TeX and LaTeX, but no add-on packages."
     71        add_notes
     72
    5273        depends_lib port:texlive-basic \
    53                     port:texlive-latex
     74            port:texlive-latex
    5475    }
    5576
     
    5778    description "Medium installation scheme: plain, latex, recommended packages, some languages" \
    5879    conflicts minimal basic full {
     80        set scheme "medium"
     81        set scheme_desc "This is the standard installation containing basic and recommended packages for TeX, LaTeX, and ConTeXt, as well as support files for several common European languages."
     82        add_notes
     83       
    5984        depends_lib port:texlive-basic \
    6085                    port:texlive-bin-extra \
     
    88113    description "Full installation scheme (very large!)" \
    89114    conflicts minimal basic medium {
     115        set scheme "full"
     116        set scheme_desc "This is a full installation of all TeX Live packages, including all languages and their associated documentation."
     117        add_notes
     118
    90119        depends_lib port:texlive-basic \
    91120                    port:texlive-bibtex-extra \
Note: See TracChangeset for help on using the changeset viewer.