Files
Joshua Root 8049860922 sysutils/[D-l]*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-28 22:37:05 +11:00

41 lines
1020 B
Tcl

# -*- 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
PortSystem 1.0
PortGroup github 1.0
PortGroup xcode 1.0
github.setup toland qlmarkdown 1.3.6 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name QLMarkdown
categories sysutils
license BSD
maintainers nomaintainer
description QuickLook generator for Markdown files
long_description {*}${description}
# QLMarkdown uses git submodules
fetch.type git
destroot.violate_mtree yes
post-extract {
system -W ${worksrcpath} "git submodule update --init"
}
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"
}