Ticket #53591: Portfile

File Portfile, 1.9 KB (added by 1-61803, 7 years ago)
Line 
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
3PortSystem          1.0
4PortGroup           github 1.0
5PortGroup           python 1.0
6
7github.setup        axiros terminal_markdown_viewer 1.6.3
8
9python.default_version \
10                    27
11
12categories          textproc
13platforms           darwin
14license             BSD-3-Clause
15maintainers         nomaintainer
16
17description         Styled Terminal Markdown Viewer
18long_description    Features: \
19                    - Tons of theme combinations: mdv ships with > 200 luminocity sorted themes, \
20                    converted from html themes tables to ansi \
21                      Those can be combined for code vs regular markdown output \
22                    - Admonitions \
23                    - Tables, incl. wide table handling avoiding "interleaving" \
24                    - Somewhat hackable, all in one (mdv/markdownviewer.py) module \
25                    - Useable as lib as well \
26                    - File change monitor \
27                    - Text wrapping \
28                    - Source code highlighter \
29                    - Little directory change monitor
30
31checksums           rmd160  332776b14685c4e0603c8ddb736e4e2fe7bda391 \
32                    sha256  2f3fc6b7acecd5c234987a8f5e2995cdc8f1560138d6aa9c5133546125b27cae
33
34depends_build-append \
35                    port:py${python.version}-setuptools
36depends_lib-append  port:py${python.version}-docopt \
37                    port:py${python.version}-markdown \
38                    port:py${python.version}-pygments \
39                    port:py${python.version}-yaml
40
41post-destroot {
42    set docdir ${prefix}/share/doc/${subport}
43    xinstall -d ${destroot}${docdir}/samples
44    xinstall -m 644 -W ${worksrcpath} \
45        LICENSE \
46        README.md \
47        ${destroot}${docdir}
48    xinstall -m 644 {*}[glob ${worksrcpath}/samples/*] \
49        ${destroot}${docdir}/samples
50}