# -*- 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: Portfile 134066 2015-03-17 22:24:57Z devans@macports.org $ PortSystem 1.0 name getopt version 1.1.6 categories sysutils platforms darwin license GPL-2+ maintainers nomaintainer 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://frodo.looijaard.name/project/getopt depends_lib port:gettext installs_libs no master_sites http://frodo.looijaard.name/system/files/software/getopt checksums rmd160 6ef3666d386450fa5ce249e7748805df5c8482c9 \ sha256 d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe patchfiles patch-Makefile.diff post-patch { reinplace -E "/^CFLAGS/s|\$| [get_canonical_archflags cc]|" ${worksrcpath}/Makefile reinplace -E "/^LDFLAGS/s|\$| [get_canonical_archflags ld]|" ${worksrcpath}/Makefile } use_configure no variant universal {} build.args CC=${configure.cc} \ LIBCGETOPT=0 \ mandir=${prefix}/share/man \ prefix=${prefix} 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} } platform darwin 8 powerpc { configure.universal_ldflags-append -liconv } livecheck.type regex livecheck.url ${homepage} livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)