Ticket #60082: fish-3.1.0_portfile

File fish-3.1.0_portfile, 2.5 KB (added by akierig (akierig), 5 years ago)
Line 
1# -*- 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
2
3PortSystem              1.0
4PortGroup               github 1.0
5PortGroup               cmake 1.1
6PortGroup               legacysupport 1.0
7
8github.setup            fish-shell fish-shell 3.1.0
9revision                1
10name                    fish
11license                 GPL-2
12categories              shells
13platforms               darwin
14maintainers             nomaintainer
15
16description             A command line shell for the 90s
17long_description        fish is a smart and user-friendly command line shell for OS X, Linux, and the rest of the family
18
19homepage                https://fishshell.com/
20github.tarball_from     releases
21distname                ${name}-${version}
22
23checksums               rmd160  75fbb9270035b6f172d3b1d7781430eb1e638c83 \
24                        sha256  e5db1e6839685c56f172e1000c138e290add4aa521f187df4cd79d4eab294368 \
25                        size    6810953
26
27depends_lib             port:libiconv \
28                        port:ncurses \
29                        port:gettext
30
31# remove unguarded-availability flag, accepted only on new clangs
32# set pipefail only if the bash version is sufficiently new to accept it
33patchfiles              patch-remove-unguarded-availability.diff \
34                        patch-share_config_fish.diff \
35                        patch-tests-bash-check.diff
36post-patch {
37    reinplace "s|@@PREFIX@@|${prefix}/bin|g"     "${worksrcpath}/share/config.fish"
38}
39
40compiler.cxx_standard   2011
41
42# doxygen appears to only regenerate html files and is not needed to install man pages
43configure.args-append   -DBUILD_DOCS=OFF
44
45platform darwin 8 {
46    #/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'
47    configure.cxxflags-append -D__DARWIN_UNIX03
48
49    depends_test-append port:bash
50    test.env-append     SHELL=${prefix}/bin/bash
51}
52
53depends_test-append     port:expect
54test.env-append         TERM=nsterm  #other possible options are ansi, dtterm, rxvt, vt52, vt100, vt102, xterm
55test.run                yes
56test.target             test
57
58notes "
59To set MacPorts' ${name} as default login shell, run:
60
61    sudo chpass -s ${prefix}/bin/${name} \${USER}
62
63To be able to switch default shells to or from ${name} without superuser\
64privileges, add it to /etc/shells:
65
66    sudo sh -c 'echo ${prefix}/bin/${name} >> /etc/shells'
67
68For X clipboard integration, install the xsel port:
69
70    sudo port install xsel
71"