[119914] trunk/dports/sysutils
sean at macports.org
sean at macports.org
Fri May 9 15:12:48 PDT 2014
Revision: 119914
https://trac.macports.org/changeset/119914
Author: sean at macports.org
Date: 2014-05-09 15:12:48 -0700 (Fri, 09 May 2014)
Log Message:
-----------
qlcolorcode: add new port for rendering highlighted code in quicklook
Added Paths:
-----------
trunk/dports/sysutils/qlcolorcode/
trunk/dports/sysutils/qlcolorcode/Portfile
Added: trunk/dports/sysutils/qlcolorcode/Portfile
===================================================================
--- trunk/dports/sysutils/qlcolorcode/Portfile (rev 0)
+++ trunk/dports/sysutils/qlcolorcode/Portfile 2014-05-09 22:12:48 UTC (rev 119914)
@@ -0,0 +1,41 @@
+# -*- 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$
+
+PortSystem 1.0
+PortGroup github 1.0
+PortGroup xcode 1.0
+
+github.setup anthonygelibert QLColorCode 3242bf6bc7
+version 2.0.4
+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 e7175b6d4498cedca4e46e47f21905951aa521c9 \
+ sha256 15ac6982a6a816e60092c425dfee412244e7443fc2389517a265a1e1ce859f7c
+
+depends_lib port:highlight
+destroot.violate_mtree yes
+
+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"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140509/4c3ce041/attachment.html>
More information about the macports-changes
mailing list