# -*- 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 PortSystem 1.0 PortGroup boost 1.0 PortGroup lua 1.0 PortGroup makefile 1.0 name highlight version 4.11 revision 0 checksums rmd160 200226fffd1536e8fa785fe53f9cf6c1f1edd4b1 \ sha256 080bdbc26342f11aaf78747e4a4db86ffedbaf2f053d4aad2d84d271f6647dcf \ size 1502154 categories textproc devel license GPL-3 maintainers {i0ntempest @i0ntempest} openmaintainer 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 boost.depends_type build depends_build port:cctools \ port:pkgconfig post-patch { reinplace "s|/etc/highlight/|${prefix}/etc/highlight/|g" ${worksrcpath}/man/highlight.1 reinplace "s|/usr/share/|${prefix}/share/|g" ${worksrcpath}/man/highlight.1 } build.target cli lib compiler.cxx_standard 2011 configure.cxxflags-append -std=c++11 # Yes, this project's makefile uses CFLAGS to compile its C++ code. build.args CFLAGS="\$CPPFLAGS \$CXXFLAGS" \ LDFLAGS="\$LDFLAGS \$CXXFLAGS" \ LUA_PKG_NAME=lua${lua.version} makefile.override 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}