source: trunk/dports/shells/zsh/Portfile @ 126366

Last change on this file since 126366 was 126366, checked in by larryv@…, 6 years ago

zsh: Tweak notes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 126366 2014-10-09 02:07:26Z larryv@macports.org $
3
4PortSystem              1.0
5
6name                    zsh
7version                 5.0.6
8categories              shells
9platforms               darwin
10license                 Permissive
11maintainers             larryv
12
13description             Zsh is a UNIX command interpreter (shell)
14long_description        Zsh is a UNIX command interpreter (shell) which \
15                        of the standard shells most resembles the Korn \
16                        shell (ksh), although it is not completely \
17                        compatible. It includes enhancements of many \
18                        types, notably in the command-line editor, \
19                        options for customising its behaviour, filename \
20                        globbing, features to make C-shell (csh) users \
21                        feel more at home and extra features drawn from \
22                        tcsh (another 'custom' shell).
23homepage                http://www.zsh.org/
24
25depends_build           bin:makeinfo:texinfo
26depends_skip_archcheck-append texinfo
27
28depends_lib             port:gdbm \
29                        port:libiconv \
30                        port:ncurses \
31                        port:pcre
32
33master_sites            sourceforge:project/zsh/zsh/${version}:src \
34                        sourceforge:project/zsh/zsh-doc/${version}:doc \
35                        http://www.zsh.org/pub/:src \
36                        http://www.zsh.org/pub/:doc \
37                        ftp://ftp.zsh.org/pub/:src \
38                        ftp://ftp.zsh.org/pub/:doc \
39                        ftp://ftp.fu-berlin.de/unix/shells/zsh/:src \
40                        ftp://ftp.fu-berlin.de/unix/shells/zsh/:doc \
41                        ftp://ftp.icm.edu.pl/vol/rzm1/zsh/:src \
42                        ftp://ftp.icm.edu.pl/vol/rzm1/zsh/:doc
43
44use_bzip2               yes
45distfiles               ${distname}${extract.suffix}:src \
46                        ${distname}-doc${extract.suffix}:doc
47
48checksums               ${distname}${extract.suffix} \
49                            rmd160  a68ddf630847c8603f1eb6d40c710bd85ec4964d \
50                            sha256  84ca509b141533a3b695e314fbce1200b86ff337ab7dd9e3414da05d86378845 \
51                        ${distname}-doc${extract.suffix} \
52                            rmd160  f39cdc0468e55dd97a460568bc6673de83203371 \
53                            sha256  b273a568682682cc1f00885aba118c7400cacfdbc0ecdf32fd5f9b820b8acfd6
54
55set doc ${prefix}/share/doc/${name}
56
57configure.args          --enable-cap \
58                        --enable-pcre \
59                        --htmldir=${doc}/html \
60                        --with-tcsetpgrp \
61                        DL_EXT=bundle
62
63# NOTE: As of 5.0.6, the zpty tests fail when run with MacPorts but not
64# when run directly from the command line.
65test.run                yes
66test.target             check
67
68destroot.target-append  install.html install.info
69
70post-destroot {
71    # zshall(1) just includes every other zsh manpage, but its .so groff
72    # directives fail because MacPorts gzips manpages.
73    set man ${destroot}${prefix}/share/man
74    system -W ${man} "soelim man1/zshall.1 > zshall.1.soelim"
75    move -force ${man}/zshall.1.soelim ${man}/man1/zshall.1
76
77    # Install any straggling documentation.
78    xinstall -m 0644 -W ${worksrcpath} \
79        ChangeLog FEATURES LICENCE META-FAQ NEWS README ${destroot}${doc}
80    xinstall -d ${destroot}${doc}/pdf
81    xinstall -m 0644 -W ${worksrcpath}/Doc \
82        intro.a4.pdf intro.us.pdf zsh.pdf ${destroot}${doc}/pdf
83}
84
85notes "
86To set MacPorts' ${name} as default login shell, run:
87
88    sudo chpass -s ${prefix}/bin/${name} \$USER
89
90To be able to switch default shells to or from ${name} without superuser\
91privileges, add it to /etc/shells:
92
93    sudo sh -c 'echo ${prefix}/bin/${name} >> /etc/shells'
94"
Note: See TracBrowser for help on using the repository browser.