# $Id: Portfile 113004 2013-11-06 19:01:32Z ryandesign@macports.org $ PortSystem 1.0 name highlight version 3.16.1 set branch [join [lrange [split ${version} .] 0 1] .] categories textproc devel platforms darwin license GPL-3 maintainers groovie.org:pjenvey 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 worksrcdir ${name}-${branch} checksums rmd160 e9cfc8cf676aa4af575e20eec2719a66c633fea5 \ sha256 994e8da0b86549fb16c4590769731315d01db68e973c44d43931fcc628e79d77 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}