# -*- 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
PortGroup legacysupport 1.0
github.setup fish-shell fish-shell 3.0.2
description 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}
checksums rmd160 3c89a5ae33514390a3acda559ffa7fe6becceaf5 \
sha256 14728ccc6b8e053d01526ebbd0822ca4eb0235e6487e832ec1d0d22f1395430e \
depends_lib port:libiconv \
# remove unguarded-availability flag, accepted only on new clangs
# set pipefail only if the bash version is sufficiently new to accept it
patchfiles patch-remove-unguarded-availability.diff \
patch-share_config_fish.diff \
patch-tests-bash-check.diff
reinplace "s|@@PREFIX@@|${prefix}/bin|g" "${worksrcpath}/share/config.fish"
compiler.cxx_standard 2011
# doxygen appears to only regenerate html files and is not needed to install man pages
configure.args-append -DBUILD_DOCS=OFF
#/opt/local/var/macports/build/_opt_myports_shells_fish/fish/work/fish-3.0.2/src/env.cpp:436:31: error: invalid conversion from 'char*' to 'int'
configure.cxxflags-append -D__DARWIN_UNIX03
depends_test-append port:bash
test.env-append SHELL=${prefix}/bin/bash
depends_test-append port:expect
test.env-append TERM=nsterm #other possible options are ansi, dtterm, rxvt, vt52, vt100, vt102, xterm
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: