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