source: trunk/dports/sysutils/qlcolorcode/Portfile

Last change on this file was 153883, checked in by sean@…, 13 months ago

qlcolorcode: upgrade to 2.0.8

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# -*- 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
2# $Id: Portfile 153883 2016-10-14 21:34:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           xcode 1.0
7
8github.setup        anthonygelibert QLColorCode 2.0.8 release-
9categories          sysutils
10
11platforms           darwin
12license             GPL-2
13maintainers         sean openmaintainer
14
15description         Quick Look plugin that renders source code with syntax highlighting
16long_description    ${description}
17
18checksums           rmd160  0cbbfcd13c259fb48a91d4a110de9fe9f1c6df98 \
19                    sha256  eafbc4b6d458854ad52e71f6fe62576ce5a08c79463a17af90e32ea24b51dd8e
20
21depends_lib         port:highlight
22destroot.violate_mtree  yes
23
24# remove build phase that copies to the user's home directory
25patchfiles-append   patch-xcode.diff
26
27post-extract {
28    reinplace -W ${worksrcpath} "s,open \$PROJECT_DIR/release,," QLColorCode.xcodeproj/project.pbxproj
29}
30
31destroot {
32    xinstall -d ${destroot}/Library/QuickLook
33    file copy ${worksrcpath}/build/Release/${name}.qlgenerator ${destroot}/Library/QuickLook
34}
35
36# force quicklook to reload plugins
37post-activate {
38    system "qlmanage -r"
39}
40
41post-deactivate {
42    system "qlmanage -r"
43}
44
45livecheck.regex     archive/[join ${github.tag_prefix} ""](\[^"b\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.