Ticket #53542: Portfile

File Portfile, 1.8 KB (added by Schamschula (Marius Schamschula), 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:filetype=tcl:et:sw=4:ts=4:sts=4
2
3PortSystem          1.0
4
5name                highlight
6version             3.34
7categories          textproc devel
8platforms           darwin
9license             GPL-3
10maintainers         nomaintainer
11description         converts source code to formatted text with syntax highlighting
12long_description    ${description}
13
14homepage            http://www.andre-simon.de
15master_sites        ${homepage}/zip/
16use_bzip2           yes
17
18checksums           rmd160  9c3ecb280248f8e7f6c7a6e79f119493dc242bca \
19                    sha256  1ea4ff989d192a0c2538f7b18683f41829596800e9f6fecf58d9d621218664bb
20
21depends_build       port:boost \
22                    port:pkgconfig
23depends_lib         port:lua
24
25patchfiles          patch-makefile.diff \
26                    patch-src-core-rtfgenerator.cpp.diff
27
28use_configure       no
29
30build.target        cli lib
31
32# Yes, this project's makefile uses CFLAGS to compile its C++ code.
33build.args          CXX="${configure.cxx}" \
34                    CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
35                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
36                    PREFIX="${prefix}"
37
38destroot.args       PREFIX="${prefix}"
39
40post-destroot {
41    file rename ${destroot}${prefix}/etc/highlight/filetypes.conf \
42        ${destroot}${prefix}/etc/highlight/filetypes.conf.sample
43}
44
45post-activate {
46    set conffile ${prefix}/etc/highlight/filetypes.conf
47    # copy over the sample conf file if necessary
48    if { ![file exists ${conffile}] } {
49        file copy ${conffile}.sample ${conffile}
50    }
51}
52
53livecheck.type      regex
54livecheck.url       [lindex ${master_sites} 0]download.html
55livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}