source: trunk/dports/textproc/boxes/Portfile

Last change on this file was 123397, checked in by khindenburg@…, 3 years ago

boxes: update to 1.1.1 - add deps

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- 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
2# $Id: Portfile 123397 2014-08-09 01:32:15Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    boxes
7version                 1.1.1
8categories              textproc
9license                 GPL-2+
10platforms               darwin
11maintainers             nomaintainer
12
13description             draws boxes around text
14long_description        boxes is a text filter which can draw various \
15                        ASCII art boxes around its input text. \
16                        Variants: 'emacs' -- installs boxes.el, which \
17                        simplifies using boxes from emacs
18
19homepage                http://boxes.thomasjensen.com
20master_sites            http://boxes.thomasjensen.com/download/
21extract.suffix          .src.tar.gz
22
23checksums               rmd160  0a3a826382b174e0604a32071f5b6510fc4f5343 \
24                        sha256  d8529840281618e75a4adf313f08291b89c8cf83928c2c1f4b0ddcd236fb2420
25
26patchfiles              config.h.patch boxes.c.patch parser.patch regerror.patch \
27                        regexp_Makefile.patch tools.c.patch
28
29depends_build           port:bison port:cctools port:flex
30
31use_configure           no
32
33variant emacs description {Install boxes.el for running inside emacs} {
34    post-destroot {
35        xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name}
36        xinstall -m 644 ${worksrcpath}/doc/boxes.el ${destroot}${prefix}/share/emacs/site-lisp/${name}/
37    }
38}
39
40# Should this be installed in ${prefix}/share/boxes/boxes?
41post-patch { reinplace "s|GLOBALCONF = /usr/share/boxes|GLOBALCONF = ${prefix}/share/boxes|" "${worksrcpath}/Makefile" }
42build.target
43build.args              CC=${configure.cc}
44
45destroot {
46    xinstall -m 755 ${worksrcpath}/src/boxes ${destroot}${prefix}/bin/${name}
47    file copy ${worksrcpath}/boxes-config ${worksrcpath}/boxes
48    xinstall -m 644 ${worksrcpath}/boxes ${destroot}${prefix}/share/${name}
49    xinstall ${worksrcpath}/doc/boxes.1 ${destroot}${prefix}/share/man/man1/
50    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
51    xinstall -m 644 -W ${worksrcpath} COPYING README boxes-config ${destroot}${prefix}/share/doc/${name}
52}
53
54livecheck.type          regex
55livecheck.url           [lindex ${master_sites} 0]
56livecheck.regex         ${name}-(\[0-9.\]+)${extract.suffix}
57
Note: See TracBrowser for help on using the repository browser.