source: trunk/dports/textproc/boxes/Portfile @ 123336

Last change on this file since 123336 was 123336, checked in by khindenburg@…, 6 years ago

boxes: fix livecheck

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