# $Id$ PortSystem 1.0 name highlight version 3.9 revision 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/ checksums rmd160 bd48eff6f6bbaff54fec61001e44a9cd2e124437 \ sha256 4ae69795e3ca4ffef47355a7b6dc371e2d781735efd44fa12ff3a1ffc990daef use_bzip2 yes depends_build port:boost depends_lib port:lua patchfiles patch-makefile.diff configure { reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/makefile reinplace "s|@destroot@|${destroot}|g" ${worksrcpath}/makefile } build.args CXX="${configure.cxx}" LDFLAGS="${configure.ldflags}" CXXFLAGS="${configure.cxxflags}" build.target cli lib 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} } }