Changeset 128061


Ignore:
Timestamp:
Nov 12, 2014, 8:44:34 PM (5 years ago)
Author:
larryv@…
Message:

getopt: Add modeline, rearrange and reformat, edit description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/getopt/Portfile

    r103250 r128061  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    3 PortSystem                      1.0
     4PortSystem          1.0
    45
    5 name                            getopt
    6 version                         1.1.5
     6name                getopt
     7version             1.1.5
    78revision            1
    8 categories                      sysutils
    9 license                         GPL-2+
    10 installs_libs           no
    11 maintainers                     nomaintainer
    12 description                     Replacement getopt for shell script use
    13 long_description \
    14         Getopt(1) is a program to help shell scripts parse command-line \
    15         parameters.  It can do anything that the GNU getopt(3) routines can do. \
    16         It can cope with spaces and shell metacharacters within arguments. \
    17         It can parse long parameters. \
    18         It can shuffle parameters, so you can mix options and other parameters on \
    19         the command-line. \
    20         It can be easily identified as an enhanced getopt(1) from within shell \
    21         scripts. \
    22         It can report parse errors as coming from the shell script. \
    23         It is fully compatible with other getopt(1) implementations.
     9categories          sysutils
     10platforms           darwin
     11license             GPL-2+
     12maintainers         nomaintainer
    2413
    25 platforms                       darwin
     14description         Parse command-line arguments from shell scripts
     15long_description    Getopt(1) is a program to help shell scripts parse \
     16                    command-line parameters. It is for example included \
     17                    in util-linux (versions up to 2.7.1) for Linux. \
     18                    But, there were some problems with that getopt(1) \
     19                    implementation. I have written an implementation \
     20                    of getopt(1) to solve some of these problems, \
     21                    while still staying (for all practical purposes) \
     22                    completely compatible with other getopt(1) \
     23                    implementations. It has replaced the old util-linux \
     24                    version, but it should be useful for other Unixes too.
     25homepage            http://software.frodo.looijaard.name/getopt/
    2626
    27 homepage                        http://software.frodo.looijaard.name/getopt/
    28 master_sites            http://software.frodo.looijaard.name/getopt/files/
     27depends_lib         port:gettext
     28installs_libs       no
    2929
     30master_sites        http://software.frodo.looijaard.name/getopt/files/
    3031checksums           md5     546acfdb67ba16b8658a45ade9a64d5d \
    3132                    sha1    9090eb46ac92f2fd2749ca4121e81aaad40f325d \
     
    4142}
    4243
    43 patchfiles                      patch-Makefile.diff
     44patchfiles          patch-Makefile.diff
    4445
    45 depends_lib                     port:gettext
    46 
    47 use_configure           no
     46use_configure       no
    4847
    4948variant universal {}
     
    5453}
    5554
    56 build.args                      LIBCGETOPT=0 prefix=${prefix} mandir=${prefix}/share/man CC=${configure.cc}
     55build.args          CC=${configure.cc} \
     56                    LIBCGETOPT=0 \
     57                    mandir=${prefix}/share/man \
     58                    prefix=${prefix}
    5759
    58 destroot.args           ${build.args}
    59 destroot.target         install install_doc
     60destroot.args       ${build.args}
     61destroot.target     install install_doc
    6062
    6163post-destroot {
    6264    set docdir ${prefix}/share/doc/${name}
    63         xinstall -d ${destroot}${docdir}
    64         xinstall -m 644 -W ${worksrcpath} COPYING Changelog README TODO \
    65                 ${destroot}${docdir}
     65    xinstall -d ${destroot}${docdir}
     66    xinstall -m 644 -W ${worksrcpath} COPYING Changelog README TODO \
     67        ${destroot}${docdir}
    6668}
    6769
     
    7072}
    7173
    72 livecheck.type  regex
    73 livecheck.url   ${homepage}download.php
    74 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
    75 
     74livecheck.type      regex
     75livecheck.url       ${homepage}download.php
     76livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracChangeset for help on using the changeset viewer.