# -*- 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        openvanilla McBopomofo 0.9.11
categories          aqua
platforms           darwin
maintainers         nomaintainer
license             MIT

description         小麥注音輸入法
long_description    OpenVanilla McBopomofo 小麥注音輸入法

homepage            https://mcbopomofo.openvanilla.org/

checksums           rmd160  c201c4c176f0ee205c3587cf93b441128ca241ab \
                    sha256  203c925e72990c41b45bc948214becc20f6410ec00dd8caa6abc0bbcb58e2d7a \
                    size    2868560

patchfiles          patch-no-werror.diff \
                    patch-includes.diff

# Don't build McBopomofoInstaller
xcode.target        Data McBopomofo

destroot.pre_args   -IDECustomDerivedDataLocation=${worksrcpath}/DerivedData \
                    -UseNewBuildSystem=NO

post-destroot {
    xinstall -d "${destroot}/Library/Input Methods"
    move "${destroot}${applications_dir}/McBopomofo.app" \
         "${destroot}/Library/Input Methods/McBopomofo.app"
}
