Ticket #47386: Portfile

File Portfile, 1.8 KB (added by dr@…, 9 years ago)

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