Ignore:
Timestamp:
May 25, 2007, 9:11:32 PM (12 years ago)
Author:
nox@…
Message:

Fixed html documentation install directory.
Changed negative no_{wrap,spell} variants to positive ones.
Added variant descriptions.
Removed largefile variant as it's useless.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/editors/nano/Portfile

    r24574 r25597  
    44name             nano
    55version          2.0.6
     6revision         1
    67categories       editors
    7 maintainers      n.oxyde@gmail.com
     8maintainers      nox
    89description      Nano's ANOther editor - enhanced free Pico Clone
    910long_description \
     
    2627                 --disable-wrapping-as-root \
    2728                 --disable-mouse \
    28                  --disable-largefile \
     29                 --disable-wrapping \
     30                 --disable-speller \
    2931                 --disable-utf8
    3032
    3133destroot.target  install-strip
    3234
     35set docdir       ${prefix}/share/doc/${name}-${version}
     36
    3337post-destroot {
    34     xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}/docs
     38    xinstall -m 0755 -d ${destroot}${docdir}/html
    3539    xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog INSTALL NEWS \
    36         README THANKS TODO doc/faq.html doc/nanorc.sample doc/texinfo/nano.html \
    37         ${destroot}${prefix}/share/doc/${name}
     40        README THANKS TODO doc/nanorc.sample ${destroot}${docdir}
     41    xinstall -m 0644 -W ${worksrcpath}/doc faq.html texinfo/nano.html ${destroot}${docdir}/html
    3842}
    3943
    4044post-install {
    41     ui_msg "A sample configuration file is available at ${prefix}/share/doc/${name}/nanorc.sample ."
    42 
    43     if {! [variant_isset no_spell]} {
    44         ui_msg "Spell-checking support is enabled. To use it, you need a spellchecker e.g. aspell, ispell..."
    45     }
     45    ui_msg "A sample configuration file is available at ${docdir}/nanorc.sample ."
    4646}
    4747
    48 variant nls {
     48variant nls description {Add NLS support} {
    4949    configure.args-delete   --disable-nls
    5050    depends_lib-append      port:gettext \
     
    5252}
    5353
    54 variant utf8 {
     54variant utf8 description {Add UTF-8 support} {
    5555    configure.args-append   --enable-utf8
    5656    configure.args-delete   --disable-utf8
     
    5959}
    6060
    61 variant no_wrap {
    62     configure.args-append   --disable-wrapping
     61variant wrap description \
     62    {Enable wrapping (lines will be splitted to fit into the terminal width)} {
     63    configure.args-delete   --disable-wrapping
    6364}
    6465
    65 variant no_spell {
    66     configure.args-append   --disable-speller
     66variant spell description \
     67    {Add spell-checking support (needs a spellchecker (e.g. aspell, ispell...)} {
     68    configure.args-delete   --disable-speller
    6769}
    6870
    69 variant mouse {
     71variant mouse description {Add mouse support} {
    7072    configure.args-delete   --disable-mouse
    7173
     
    7577}
    7678
    77 variant multibuffer {
     79variant multibuffer description \
     80    {Add multibuffer support (allow multiple files to be opened in a single nano instance)} {
    7881    configure.args-append   --enable-multibuffer
    7982}
    8083
    81 variant color {
     84variant color description {Enable color syntax highlighting} {
    8285    configure.args-append   --enable-color
    8386
    8487    post-install {
    85         ui_msg "Color syntax is enabled. You should take a look at the syntax definitions in ${prefix}/share/${name} ."
     88        ui_msg "Color syntax is enabled."
     89        ui_msg "You should take a look at the syntax definitions in ${prefix}/share/${name} ."
    8690    }
    87 }
    88 
    89 variant largefile {
    90     configure.args-delete   --disable-largefile
    9191}
    9292
Note: See TracChangeset for help on using the changeset viewer.