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 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name boxes |
---|
6 | version 1.2 |
---|
7 | categories textproc |
---|
8 | license GPL-2+ |
---|
9 | platforms darwin |
---|
10 | maintainers @StefKKK openmaintainer |
---|
11 | |
---|
12 | description draws boxes around text |
---|
13 | long_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 |
---|
17 | |
---|
18 | homepage http://boxes.thomasjensen.com |
---|
19 | master_sites https://github.com/ascii-boxes/boxes/archive |
---|
20 | extract.suffix .tar.gz |
---|
21 | distfiles v${version}${extract.suffix} |
---|
22 | license GPL-2 |
---|
23 | |
---|
24 | checksums rmd160 f1d52f086bb273d044f3355b414c7186f0e359e1 \ |
---|
25 | sha256 ba237f6d4936bdace133d5f370674fd4c63bf0d767999a104bada6460c5d1913 |
---|
26 | |
---|
27 | depends_build port:bison port:cctools port:flex |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | variant emacs description {Install boxes.el for running inside emacs} { |
---|
32 | post-destroot { |
---|
33 | xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name} |
---|
34 | xinstall -m 644 ${worksrcpath}/doc/boxes.el ${destroot}${prefix}/share/emacs/site-lisp/${name}/ |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | build.target |
---|
39 | build.args CC=${configure.cc} GLOBALCONF=${prefix}/share/boxes |
---|
40 | |
---|
41 | destroot { |
---|
42 | xinstall -m 755 ${worksrcpath}/src/boxes ${destroot}${prefix}/bin/${name} |
---|
43 | file copy ${worksrcpath}/boxes-config ${worksrcpath}/boxes |
---|
44 | xinstall -m 644 ${worksrcpath}/boxes ${destroot}${prefix}/share/${name} |
---|
45 | xinstall ${worksrcpath}/doc/boxes.1 ${destroot}${prefix}/share/man/man1/ |
---|
46 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
47 | xinstall -m 644 -W ${worksrcpath} README.md LICENSE boxes-config ${destroot}${prefix}/share/doc/${name} |
---|
48 | } |
---|
49 | |
---|
50 | livecheck.type regex |
---|
51 | livecheck.url https://github.com/ascii-boxes/boxes/releases |
---|
52 | livecheck.regex [join [list {v([0-9]+(\.[0-9]+)*)} [string map {. \\.} ${extract.suffix}]] ""] |
---|