# -*- 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               cmake 1.1
PortGroup               github 1.0

name                    cjsh
github.setup            CadenFinley CJsShell 1.3.3 v
revision                0
# https://github.com/CadenFinley/CJsShell/issues/25
epoch                   1
categories              shells sysutils
maintainers             {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license                 MIT
description             CJ’s Shell (cjsh) is a shell with out of the box power and speed
long_description        {*}${description}. Modern shell features without modern shell bloat.
homepage                https://cadenfinley.github.io/CJsShell
checksums               rmd160  c2838461618c0ce3e5529207726153a3f0bb8169 \
                        sha256  de22613a7974c8cdbdd39d71433ffa5e5e739ae0d429aa9ffc6b875121801a37 \
                        size    1168432
github.tarball_from     archive

installs_libs           no

compiler.c_standard     2011
# Disable to allow new C++ ABI:
# compiler.cxx_standard   2017

# https://github.com/CadenFinley/CJsShell/issues/29
if {[string match *gcc* ${configure.compiler}] && ${configure.build_arch} in [list arm i386 ppc]} {
    configure.ldflags-append \
                    -latomic
}
