[128061] trunk/dports/sysutils/getopt/Portfile
larryv at macports.org
larryv at macports.org
Wed Nov 12 12:44:34 PST 2014
Revision: 128061
https://trac.macports.org/changeset/128061
Author: larryv at macports.org
Date: 2014-11-12 12:44:34 -0800 (Wed, 12 Nov 2014)
Log Message:
-----------
getopt: Add modeline, rearrange and reformat, edit description
Modified Paths:
--------------
trunk/dports/sysutils/getopt/Portfile
Modified: trunk/dports/sysutils/getopt/Portfile
===================================================================
--- trunk/dports/sysutils/getopt/Portfile 2014-11-12 20:30:25 UTC (rev 128060)
+++ trunk/dports/sysutils/getopt/Portfile 2014-11-12 20:44:34 UTC (rev 128061)
@@ -1,32 +1,33 @@
+# -*- 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
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name getopt
-version 1.1.5
+name getopt
+version 1.1.5
revision 1
-categories sysutils
-license GPL-2+
-installs_libs no
-maintainers nomaintainer
-description Replacement getopt for shell script use
-long_description \
- Getopt(1) is a program to help shell scripts parse command-line \
- parameters. It can do anything that the GNU getopt(3) routines can do. \
- It can cope with spaces and shell metacharacters within arguments. \
- It can parse long parameters. \
- It can shuffle parameters, so you can mix options and other parameters on \
- the command-line. \
- It can be easily identified as an enhanced getopt(1) from within shell \
- scripts. \
- It can report parse errors as coming from the shell script. \
- It is fully compatible with other getopt(1) implementations.
+categories sysutils
+platforms darwin
+license GPL-2+
+maintainers nomaintainer
-platforms darwin
+description Parse command-line arguments from shell scripts
+long_description Getopt(1) is a program to help shell scripts parse \
+ command-line parameters. It is for example included \
+ in util-linux (versions up to 2.7.1) for Linux. \
+ But, there were some problems with that getopt(1) \
+ implementation. I have written an implementation \
+ of getopt(1) to solve some of these problems, \
+ while still staying (for all practical purposes) \
+ completely compatible with other getopt(1) \
+ implementations. It has replaced the old util-linux \
+ version, but it should be useful for other Unixes too.
+homepage http://software.frodo.looijaard.name/getopt/
-homepage http://software.frodo.looijaard.name/getopt/
-master_sites http://software.frodo.looijaard.name/getopt/files/
+depends_lib port:gettext
+installs_libs no
+master_sites http://software.frodo.looijaard.name/getopt/files/
checksums md5 546acfdb67ba16b8658a45ade9a64d5d \
sha1 9090eb46ac92f2fd2749ca4121e81aaad40f325d \
rmd160 5cdef902ada45ba5e8a66a1357be8189b0cc634f
@@ -40,12 +41,10 @@
}
}
-patchfiles patch-Makefile.diff
+patchfiles patch-Makefile.diff
-depends_lib port:gettext
+use_configure no
-use_configure no
-
variant universal {}
post-patch {
@@ -53,23 +52,25 @@
reinplace -E "/^LDFLAGS/s|\$| [get_canonical_archflags ld]|" ${worksrcpath}/Makefile
}
-build.args LIBCGETOPT=0 prefix=${prefix} mandir=${prefix}/share/man CC=${configure.cc}
+build.args CC=${configure.cc} \
+ LIBCGETOPT=0 \
+ mandir=${prefix}/share/man \
+ prefix=${prefix}
-destroot.args ${build.args}
-destroot.target install install_doc
+destroot.args ${build.args}
+destroot.target install install_doc
post-destroot {
set docdir ${prefix}/share/doc/${name}
- xinstall -d ${destroot}${docdir}
- xinstall -m 644 -W ${worksrcpath} COPYING Changelog README TODO \
- ${destroot}${docdir}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} COPYING Changelog README TODO \
+ ${destroot}${docdir}
}
platform darwin 8 powerpc {
configure.universal_ldflags-append -liconv
}
-livecheck.type regex
-livecheck.url ${homepage}download.php
-livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
-
+livecheck.type regex
+livecheck.url ${homepage}download.php
+livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141112/64e69594/attachment.html>
More information about the macports-changes
mailing list