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

Last change on this file since 56101 was 56101, checked in by ryandesign@…, 11 years ago

boxes: simplify setting the extract suffix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 56101 2009-08-24 07:03:36Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                    boxes
5version                 1.1
6categories              textproc
7platforms               darwin
8maintainers             gmail.com:wgrzemski
9description             draws boxes around text
10long_description        boxes is a text filter which can draw various \
11                        ASCII art boxes around its input text. \
12                        Variants: 'emacs' -- installs boxes.el, which \
13                        simplifies using boxes from emacs
14homepage                http://boxes.thomasjensen.com
15master_sites            http://boxes.thomasjensen.com/download/
16extract.suffix          .src.tar.gz
17checksums               md5 d2ef9fa28a87bf32b3fe0c47ab82fa97
18use_configure           no
19
20variant emacs           {}
21
22pre-build               { reinplace "s|GLOBALCONF = /usr/share/boxes|GLOBALCONF = ${prefix}/share/boxes|" "${worksrcpath}/Makefile" }
23build                   { system "cd $worksrcpath && make" }
24
25destroot {
26                        xinstall -m 755 ${worksrcpath}/src/boxes ${destroot}${prefix}/bin/${name}
27                        file copy ${worksrcpath}/boxes-config ${worksrcpath}/boxes
28                        xinstall -m 644 ${worksrcpath}/boxes ${destroot}${prefix}/share/${name}
29                        xinstall ${worksrcpath}/doc/boxes.1 ${destroot}${prefix}/share/man/man1/
30                        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
31                        xinstall -m 644 -W ${worksrcpath} COPYING README README.Win32.txt boxes-config ${destroot}${prefix}/share/doc/${name}
32
33                        if { [variant_isset emacs] } {
34                                xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name}
35                                xinstall -m 644 ${worksrcpath}/doc/boxes.el ${destroot}${prefix}/share/emacs/site-lisp/${name}/
36                        }
37}
Note: See TracBrowser for help on using the repository browser.