# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 149493 2016-06-22 22:57:29Z sean@macports.org $ PortSystem 1.0 PortGroup github 1.0 PortGroup xcode 1.0 github.setup anthonygelibert QLColorCode 2.0.7 release- categories sysutils platforms darwin license GPL-2 maintainers sean openmaintainer description Quick Look plugin that renders source code with syntax highlighting long_description ${description} checksums rmd160 10c7a4bd3519373054125caf89d36d4ea4380ebc \ sha256 674489689ff18ffd6da0f6f3ec4bb195f35bdcb1721a66a1b93ad8b8ea49f0a9 depends_lib port:highlight destroot.violate_mtree yes # remove build phase that copies to the user's home directory patchfiles-append patch-xcode.diff post-extract { reinplace -W ${worksrcpath} "s,open \$PROJECT_DIR/release,," QLColorCode.xcodeproj/project.pbxproj } destroot { xinstall -d ${destroot}/Library/QuickLook file copy ${worksrcpath}/build/Release/${name}.qlgenerator ${destroot}/Library/QuickLook } # force quicklook to reload plugins post-activate { system "qlmanage -r" } post-deactivate { system "qlmanage -r" } livecheck.regex archive/[join ${github.tag_prefix} ""](\[^"b\]+)${extract.suffix}