# -*- 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        whomwah qlstephen 1.5.1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                QLStephen
categories          sysutils

license             public-domain
maintainers         nomaintainer

description         A QuickLook plugin that lets you view plain text \
                    files without a file extension
long_description    {*}${description}

checksums           rmd160  14401c57852093917fc9814c0572745fba706547 \
                    sha256  84d795f713764647d6cb2d2ac1713ed4cd2a0769f7641ca7ff9745600d8b1958 \
                    size    22137

worksrcdir          ${distname}/QuickLookStephenProject

destroot.violate_mtree  yes

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"
}
