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

github.setup            fish-shell fish-shell 4.7.1
revision                0

checksums               rmd160  20a3a6735bda09a74795771f8540dd7b72e34bb2 \
                        sha256  6f4d5b438a6338e3f5dcda19a28261e2ece7a9b7ff97686685e6abdc31dbb7df \
                        size    2608824

name                    fish
conflicts               fish3
license                 GPL-2
categories              shells
maintainers             {@akierig fastmail.de:akierig} openmaintainer

description             The friendly interactive shell: a command line shell for the 90s
long_description        fish is a smart and user-friendly command line shell for OS X, Linux, and the rest of the family

homepage                https://fishshell.com/
github.tarball_from     releases
distname                ${name}-${version}
use_xz                  yes

depends_build-append    port:gettext \
                        port:rust \
                        port:cargo \
                        path:bin/pkg-config:pkgconfig

depends_lib-append      port:gettext-runtime \
                        port:libiconv \
                        port:ncurses \
                        port:pcre2

configure.args-append   -DFISH_USE_SYSTEM_PCRE2=ON \
                        -DMAC_CODESIGN_ID=OFF \
                        -DCMAKE_BUILD_TYPE=Release

notes "
To set MacPorts' ${name} as default login shell, run:

    sudo chpass -s ${prefix}/bin/${name} \${USER}

To be able to switch default shells to or from ${name} without superuser\
privileges, add it to /etc/shells:

    sudo sh -c 'echo ${prefix}/bin/${name} >> /etc/shells'

For X clipboard integration, install the xsel port:

    sudo port install xsel
"
