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

Last change on this file since 94151 was 94151, checked in by jmr@…, 8 years ago

boxes: silence compile warnings

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