Files
Austin ZieglerandRenee Otten 37c6cfee01 feat: Add fish documentation
With the upgrade to Fish 4, `help string` and `string -h` stopped
working because the documentation was no longer built as it requires
py-sphinx.

This makes it the `+docs` variant which is a default, making it easier
for people to opt out of this.
2026-07-02 22:31:42 -04:00

65 lines
2.2 KiB
Tcl

# -*- 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.8.0
revision 1
checksums rmd160 60c03b296d71d88770a46865a16df69f9109143c \
sha256 33af62c7df2fa553e0e84fa81f6ea48acf98c2bfc50036eaacc70ac8ba63e707 \
size 2615364
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_INSTALL_SYSCONFDIR=${prefix}/etc \
-DCMAKE_BUILD_TYPE=Release
variant docs description {Installs fish man pages and documentation} {
depends_build-append port:py314-sphinx
configure.args-append -DSPHINX_EXECUTABLE=${prefix}/bin/sphinx-build-3.14
}
default_variants +docs
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
"