# -*- 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 # $Id$ PortSystem 1.0 name highlight version 3.28 categories textproc devel platforms darwin license GPL-3 maintainers nomaintainer description converts source code to formatted text with syntax highlighting long_description ${description} homepage http://www.andre-simon.de master_sites ${homepage}/zip/ use_bzip2 yes checksums rmd160 93a1bcaa251901a30f5ef44c343847f173a5502b \ sha256 36364b6d906148dac04426a0c892fe2343e5e2c752316666589f8dff741ce7cd depends_build port:boost \ port:pkgconfig depends_lib port:lua patchfiles patch-makefile.diff use_configure no build.target cli lib # Yes, this project's makefile uses CFLAGS to compile its C++ code. build.args CXX="${configure.cxx}" \ CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \ LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \ PREFIX="${prefix}" destroot.args PREFIX="${prefix}" post-destroot { file rename ${destroot}${prefix}/etc/highlight/filetypes.conf \ ${destroot}${prefix}/etc/highlight/filetypes.conf.sample } post-activate { set conffile ${prefix}/etc/highlight/filetypes.conf # copy over the sample conf file if necessary if { ![file exists ${conffile}] } { file copy ${conffile}.sample ${conffile} } } livecheck.type regex livecheck.url [lindex ${master_sites} 0]download.html livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}