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