# -*- 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 123397 2014-08-09 01:32:15Z khindenburg@macports.org $ PortSystem 1.0 name boxes version 1.1.1 categories textproc license GPL-2+ platforms darwin maintainers nomaintainer description draws boxes around text long_description boxes is a text filter which can draw various \ ASCII art boxes around its input text. \ Variants: 'emacs' -- installs boxes.el, which \ simplifies using boxes from emacs homepage http://boxes.thomasjensen.com master_sites http://boxes.thomasjensen.com/download/ extract.suffix .src.tar.gz checksums rmd160 0a3a826382b174e0604a32071f5b6510fc4f5343 \ sha256 d8529840281618e75a4adf313f08291b89c8cf83928c2c1f4b0ddcd236fb2420 patchfiles config.h.patch boxes.c.patch parser.patch regerror.patch \ regexp_Makefile.patch tools.c.patch depends_build port:bison port:cctools port:flex use_configure no variant emacs description {Install boxes.el for running inside emacs} { post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name} xinstall -m 644 ${worksrcpath}/doc/boxes.el ${destroot}${prefix}/share/emacs/site-lisp/${name}/ } } # Should this be installed in ${prefix}/share/boxes/boxes? post-patch { reinplace "s|GLOBALCONF = /usr/share/boxes|GLOBALCONF = ${prefix}/share/boxes|" "${worksrcpath}/Makefile" } build.target build.args CC=${configure.cc} destroot { xinstall -m 755 ${worksrcpath}/src/boxes ${destroot}${prefix}/bin/${name} file copy ${worksrcpath}/boxes-config ${worksrcpath}/boxes xinstall -m 644 ${worksrcpath}/boxes ${destroot}${prefix}/share/${name} xinstall ${worksrcpath}/doc/boxes.1 ${destroot}${prefix}/share/man/man1/ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} COPYING README boxes-config ${destroot}${prefix}/share/doc/${name} } livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}