# -*- 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
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_lib port:gettext \
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 \
checksums md5 3743beefa3dd6247a73f8f7a32c14c33 \
sha1 cfe94a15a2404db85858a81ff8de27c8ff3e235e \
rmd160 9c52bff97259de4010499f69c76d2a6396920342
livecheck.url http://ftp.debian.org/debian/pool/main/p/popt
livecheck.regex ${name}_(\\d+(?:\\.\\d+)*)\\.orig${extract.suffix}