Ticket #11842: Portfile

File Portfile, 1.9 KB (added by edward@…, 17 years ago)
Line 
1# $Id: Portfile 24206 2007-04-19 05:54:58Z pipping@macports.org $
2
3PortSystem 1.0
4name            zsh-devel
5version         4.3.4
6revision        1
7categories      shells
8maintainers     nomaintainer@macports.org
9description     Zsh is a UNIX command interpreter (shell)
10long_description        Zsh is a UNIX command interpreter (shell) which of \
11                        the standard shells most resembles the Korn shell \
12                        (ksh), although it is not completely compatible. \
13                        It includes enhancements of many types, notably in \
14                        the command-line editor, options for customising its \
15                        behaviour, filename globbing, features to make \
16                        C-shell (csh) users feel more at home and extra \
17                        features drawn from tcsh (another `custom' shell).
18homepage        http://www.zsh.org
19platforms       darwin
20use_bzip2       yes
21master_sites    http://www.zsh.org/pub/ ftp://ftp.zsh.org/zsh/ \
22                ftp://ftp.sterling.com/zsh/ \
23                ftp://ftp.rge.com/pub/shells/zsh/ \
24                ftp://ftp.fu-berlin.de/pub/unix/shells/zsh \
25                ftp://ftp.ips.oz.au/pub/packages/zsh/ \
26                ftp://ftp.uit.no/pub/unix/shells/zsh/ \
27                ftp://ftp.iij.ad.jp/pub/misc/zsh/ \
28                ftp://ftp.icm.edu.pl/vol/wojsyl/zsh/\
29                ftp://ftp.sunsite.auc.dk/disk1/zsh/
30distname        zsh-${version}
31checksums       sha1 6bd905c4bf61bf3df5e5bb78f64be68366ad7517
32livecheck.check regex
33livecheck.url   http://www.zsh.org/pub/
34livecheck.regex zsh-(4.3.\[0-9\]+)\.tar\.gz
35depends_lib     port:libiconv port:ncurses
36configure.args  --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
37                --enable-libs=-liconv --with-curses-terminfo
38
39platform darwin 8 {
40        configure.env-append \
41          CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
42        post-configure {
43                reinplace "s|#define HAVE_POLL 1|#undef HAVE_POLL|" \
44                  ${worksrcpath}/config.h
45        }
46}
47
48variant dp_completion {
49        post-destroot   {
50                file copy -force ${filespath}/_port \
51                  ${destroot}${prefix}/share/zsh/${version}/functions
52        }
53}
54
55variant utf8 { configure.args-append --enable-multibyte }