# -*- 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 144861 2016-01-19 23:42:28Z sean@macports.org $ PortSystem 1.0 PortGroup github 1.0 PortGroup xcode 1.0 github.setup anthonygelibert QLColorCode 2.0.5 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 67cf02c821531eaf0eb4fcf7fa14678752dc92bb \ sha256 1bc0fbcc4ae7209d9d8107dd01f771938253336c9d2d38bcbcb5e6e6afa1b1ec 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" }