1 | # $Id: Portfile 113004 2013-11-06 19:01:32Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name highlight |
---|
6 | version 3.23 |
---|
7 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
8 | categories textproc devel |
---|
9 | platforms darwin |
---|
10 | license GPL-3 |
---|
11 | maintainers groovie.org:pjenvey |
---|
12 | description converts source code to formatted text with syntax highlighting |
---|
13 | long_description ${description} |
---|
14 | |
---|
15 | homepage http://www.andre-simon.de |
---|
16 | master_sites ${homepage}/zip/ |
---|
17 | use_bzip2 yes |
---|
18 | worksrcdir ${name}-${branch} |
---|
19 | |
---|
20 | checksums rmd160 4daa53953d5bcb831661982ec330169b82c25e9d \ |
---|
21 | sha256 bcc7a4e12aa8fc20cc4bf0bd550992f41f0c22f9e81bb0cd1f58abea8ce272b1 |
---|
22 | |
---|
23 | depends_build port:boost \ |
---|
24 | port:pkgconfig |
---|
25 | depends_lib port:lua |
---|
26 | |
---|
27 | patchfiles patch-makefile.diff |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | build.target cli lib |
---|
32 | |
---|
33 | # Yes, this project's makefile uses CFLAGS to compile its C++ code. |
---|
34 | build.args CXX="${configure.cxx}" \ |
---|
35 | CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \ |
---|
36 | LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \ |
---|
37 | PREFIX="${prefix}" |
---|
38 | |
---|
39 | destroot.args PREFIX="${prefix}" |
---|
40 | |
---|
41 | post-destroot { |
---|
42 | file rename ${destroot}${prefix}/etc/highlight/filetypes.conf \ |
---|
43 | ${destroot}${prefix}/etc/highlight/filetypes.conf.sample |
---|
44 | } |
---|
45 | |
---|
46 | post-activate { |
---|
47 | set conffile ${prefix}/etc/highlight/filetypes.conf |
---|
48 | # copy over the sample conf file if necessary |
---|
49 | if { ![file exists ${conffile}] } { |
---|
50 | file copy ${conffile}.sample ${conffile} |
---|
51 | } |
---|
52 | } |
---|
53 | |
---|
54 | livecheck.type regex |
---|
55 | livecheck.url [lindex ${master_sites} 0]download.html |
---|
56 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
---|