# -*- 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

github.setup        csknns csv2strings 1.1.2
github.tarball_from archive
revision            0

description         Apple's strings file convertor
long_description    \
    Parse & convert Apple's strings file to and from a csv file, with first \
    column the translation key, second column the translation value, and the \
    third the comments.

categories          devel
license             GLP-3.0
maintainers         {@csknns gmail.com:christos.koninis} openmaintainer

checksums           rmd160  bf1d396e8d953462f2388333c67829af395011c6 \
                    sha256  1ea7ba5fcace0b330462b4e27156253050acb21dba8a56064c34649838abfa50 \
                    size    37806

use_configure       no
use_xcode           yes

# Clearing CPATH because ncurses is also supplied by MacOSX13.sdk and leads to conflicts
compiler.cpath

build.cmd           swift
build.target        build
build.args          --configuration release --disable-sandbox

test.run            yes
test.cmd            swift
test.target         test
test.args           --disable-sandbox

set builtproductdir ${worksrcpath}/.build/release

destroot {
    xinstall -m 0755 ${builtproductdir}/${name} ${destroot}${prefix}/bin/
}
