# -*- 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 PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 name popt version 1.18 revision 1 categories devel platforms darwin freebsd license X11 maintainers nomaintainer 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. # http://rpm5.org/ no longer resolves # use substitute homepage and debian for master_sites homepage https://www.openhub.net/p/${name}/ master_sites debian:p/${name} distname ${name}_${version}.orig worksrcdir ${name}-${version} depends_build port:gettext depends_lib port:gettext-runtime \ port:libiconv # NOTE: No longer necessary, as of 2021-07-31. # needs C11 for alignof(x) #compiler.c_standard 2011 # Clang versions prior to 5 have issues with alignof(x) compiler.blacklist-append \ { clang < 500 } 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} } # NOTE: Tests broken, as of 2021-07-31. (Regardless whether compiled with C11 or not.) test.run yes test.target check checksums rmd160 637fc4bad9c4669a6695ec4c40225e16ee9357c8 \ sha256 5159bc03a20b28ce363aa96765f37df99ea4d8850b1ece17d1e6ad5c24fdc5d1 \ size 580569 livecheck.type regex livecheck.url http://ftp.debian.org/debian/pool/main/p/popt livecheck.regex ${name}_(\\d+(?:\\.\\d+)*)\\.orig${extract.suffix}