# $Id: Portfile 80780 2011-07-17 13:42:19Z jmr@macports.org $ PortSystem 1.0 name popt version 1.16 categories devel license X11 maintainers mac.com:n3npq description A getopt(3) like library with a number of enhancements long_description popt is a command line parsing library. It contains a number of \ enhancements over getopt(3), including being fully reentrant, allowing users to \ alias command line arguments, providing convience functions for parsing strings \ into argv[] style arrays and popt can parse arbitrary argv[] style arrays. platforms darwin freebsd homepage http://rpm5.org/ master_sites ${homepage}files/popt/ depends_lib port:gettext \ port:libiconv post-destroot { if {[file exists ${destroot}${prefix}/share/locale/locale.alias]} { delete ${destroot}${prefix}/share/locale/locale.alias } if {[file exists ${destroot}${prefix}/lib/charset.alias]} { delete ${destroot}${prefix}/lib/charset.alias } set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} ABOUT-NLS CHANGES COPYING README \ ${destroot}${docdir} } test.run yes test.target check checksums md5 3743beefa3dd6247a73f8f7a32c14c33 \ sha1 cfe94a15a2404db85858a81ff8de27c8ff3e235e \ rmd160 9c52bff97259de4010499f69c76d2a6396920342 livecheck.type regex livecheck.url ${master_sites}/?C=M&O=D livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)