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 | # $Id: Portfile 134857 2015-04-08 22:34:36Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup fish-shell fish-shell 2.2.0 |
---|
8 | name fish |
---|
9 | license GPL-2 |
---|
10 | categories shells |
---|
11 | platforms darwin |
---|
12 | maintainers nomaintainer |
---|
13 | |
---|
14 | description A command line shell for the 90s |
---|
15 | long_description fish is a smart and user-friendly command line shell for OS X, Linux, and the rest of the family |
---|
16 | |
---|
17 | homepage http://fishshell.com/ |
---|
18 | github.tarball_from releases |
---|
19 | distname ${name}-${version} |
---|
20 | |
---|
21 | checksums rmd160 1dd2103707fded8a3933de4b06fdd8c78f6a5197 \ |
---|
22 | sha256 a76339fd14ce2ec229283c53e805faac48c3e99d9e3ede9d82c0554acfc7b77a |
---|
23 | |
---|
24 | depends_build port:doxygen \ |
---|
25 | path:bin/dot:graphviz |
---|
26 | depends_lib port:libiconv \ |
---|
27 | port:ncurses \ |
---|
28 | port:gettext |
---|
29 | |
---|
30 | patchfiles patch-share_config_fish.diff |
---|
31 | |
---|
32 | post-patch { |
---|
33 | reinplace "s|@@PREFIX@@|${prefix}/bin|g" "${worksrcpath}/share/config.fish" |
---|
34 | reinplace "s|DEF_VER=2.0.GIT|DEF_VER=${version}|" ${worksrcpath}/build_tools/git_version_gen.sh |
---|
35 | } |
---|
36 | |
---|
37 | notes " |
---|
38 | To set MacPorts' ${name} as default login shell, run: |
---|
39 | |
---|
40 | sudo chpass -s ${prefix}/bin/${name} \${USER} |
---|
41 | |
---|
42 | To be able to switch default shells to or from ${name} without superuser\ |
---|
43 | privileges, add it to /etc/shells: |
---|
44 | |
---|
45 | sudo sh -c 'echo ${prefix}/bin/${name} >> /etc/shells' |
---|
46 | |
---|
47 | For X clipboard integration, install the xsel port: |
---|
48 | |
---|
49 | sudo port install xsel |
---|
50 | " |
---|