Ticket #48335: Portfile

File Portfile, 1.7 KB (added by Raimondi (Israel Chauca Fuentes), 9 years ago)

Updated portfile

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