source: trunk/dports/textproc/highlight/Portfile

Last change on this file was 146891, checked in by khindenburg@…, 20 months ago

highlight: update to 3.28 #50700; set nomaintainer #50769

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
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# $Id: Portfile 146891 2016-03-19 17:06:13Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                highlight
7version             3.28
8categories          textproc devel
9platforms           darwin
10license             GPL-3
11maintainers         nomaintainer
12description         converts source code to formatted text with syntax highlighting
13long_description    ${description}
14
15homepage            http://www.andre-simon.de
16master_sites        ${homepage}/zip/
17use_bzip2           yes
18
19checksums           rmd160  93a1bcaa251901a30f5ef44c343847f173a5502b \
20                    sha256  36364b6d906148dac04426a0c892fe2343e5e2c752316666589f8dff741ce7cd
21
22depends_build       port:boost \
23                    port:pkgconfig
24depends_lib         port:lua
25
26patchfiles          patch-makefile.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}
Note: See TracBrowser for help on using the repository browser.