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

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

boxes: put emacs variant code inside the variant itself, and add a description

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 94152 2012-06-10 17:36:22Z 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 description {Install boxes.el for running inside emacs} {
27        post-destroot {
28                xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name}
29                xinstall -m 644 ${worksrcpath}/doc/boxes.el ${destroot}${prefix}/share/emacs/site-lisp/${name}/
30        }
31}
32
33post-patch              { reinplace "s|GLOBALCONF = /usr/share/boxes|GLOBALCONF = ${prefix}/share/boxes|" "${worksrcpath}/Makefile" }
34build.target
35build.args              CC=${configure.cc}
36
37destroot {
38                        xinstall -m 755 ${worksrcpath}/src/boxes ${destroot}${prefix}/bin/${name}
39                        file copy ${worksrcpath}/boxes-config ${worksrcpath}/boxes
40                        xinstall -m 644 ${worksrcpath}/boxes ${destroot}${prefix}/share/${name}
41                        xinstall ${worksrcpath}/doc/boxes.1 ${destroot}${prefix}/share/man/man1/
42                        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
43                        xinstall -m 644 -W ${worksrcpath} COPYING README README.Win32.txt boxes-config ${destroot}${prefix}/share/doc/${name}
44}
Note: See TracBrowser for help on using the repository browser.