source: trunk/dports/shells/zsh/Portfile

Last change on this file was 150996, checked in by larryv@…, 12 months ago

zsh: Refresh mirrors

  • Add ftp.funet.fi (Finland) and sunsite.icm.edu.pl (Poland).
  • Fix URL for ftp.icm.edu.pl.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 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 150996 2016-08-05 07:04:30Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    zsh
7version                 5.2
8categories              shells
9platforms               darwin
10license                 Permissive
11maintainers             larryv
12
13description             The Z shell
14long_description    {*}{Zsh is a shell designed for interactive use,
15                        although it is also a powerful scripting
16                        language. Many of the useful features of bash,
17                        ksh, and tcsh were incorporated into zsh;
18                        many original features were added.}
19homepage                http://www.zsh.org
20
21depends_lib             port:gdbm \
22                        port:libiconv \
23                        port:ncurses \
24                        port:pcre
25
26master_sites            sourceforge:project/zsh/zsh/${version}:src \
27                        sourceforge:project/zsh/zsh-doc/${version}:doc
28foreach mirror {        http://www.zsh.org/pub
29                        ftp://ftp.zsh.org/pub
30                        ftp://ftp.fu-berlin.de/unix/shells/zsh
31                        ftp://ftp.funet.fi/pub/unix/shells/zsh
32                        ftp://ftp.icm.edu.pl/vol/rzm4/zsh
33                        ftp://sunsite.icm.edu.pl/pub/unix/shells/zsh
34} {
35    master_sites-append ${mirror}:src ${mirror}:doc
36}
37
38use_xz                  yes
39distfiles               ${distname}${extract.suffix}:src \
40                        ${distname}-doc${extract.suffix}:doc
41
42checksums               ${distname}${extract.suffix} \
43                            rmd160  97aa895e0a1b8ba94852b57daadab261ed60c4c3 \
44                            sha256  f17916320ffaa844bbd7ce48ceeb5945fc5f3eff64b149b4229bbfbdf3795a9d \
45                        ${distname}-doc${extract.suffix} \
46                            rmd160  dba15e5560ddf6d61e748765b59acd34a8a1f561 \
47                            sha256  328352cf3d5d0ec4b6e31dcefd25ff5b4c0e6b8077d1fe84448ebb50d6ada52a
48
49patchfiles              prevent-doc-regeneration.patch
50
51set docdir ${prefix}/share/doc/${name}
52
53configure.args          --enable-cap \
54                        --enable-pcre \
55                        --htmldir='${docdir}/html' \
56                        --with-tcsetpgrp \
57                        DL_EXT=bundle
58
59# NOTE: The zpty tests can't open pseudoterminals from "port test".
60test.run                yes
61test.target             check
62
63destroot.target-append  install.html install.info
64
65post-destroot {
66    # zshall(1) includes every other zsh manpage, but its .so groff
67    # directives fail because we compress manpages.
68    set man ${destroot}${prefix}/share/man
69    system -W ${man} "soelim man1/zshall.1 >zshall.1.soelim"
70    move -force ${man}/zshall.1.soelim ${man}/man1/zshall.1
71
72    # Install neglected documentation.
73    xinstall -m 0644 -W ${worksrcpath} \
74        FEATURES LICENCE META-FAQ NEWS README ${destroot}${docdir}
75    xinstall -d ${destroot}${docdir}/pdf
76    xinstall -m 0644 -W ${worksrcpath}/Doc \
77        intro.a4.pdf intro.us.pdf zsh.pdf ${destroot}${docdir}/pdf
78}
79
80notes "
81To set MacPorts' ${name} as default login shell, run:
82
83    sudo chpass -s '${prefix}/bin/${name}' \$USER
84
85To be able to switch default shells to or from ${name} without superuser\
86privileges, add it to /etc/shells:
87
88    sudo sh -c 'echo ${prefix}/bin/${name} >>/etc/shells'
89"
Note: See TracBrowser for help on using the repository browser.