Ticket #11157: Portfile

File Portfile, 1.9 KB (added by vinc17@…, 18 years ago)

New Portfile for zsh-devel

Line 
1# $Id: Portfile 15393 2006-12-18 15:23:46Z lefevre $
2
3PortSystem 1.0
4name            zsh-devel
5version         4.3.2
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 a6dd50c7578812bdb30f4cb65c8ac280c86dbfc3
32depends_lib     port:libiconv port:ncurses
33configure.env   CPPFLAGS="-I${prefix}/include/ncurses -I${prefix}/include" \
34                LDFLAGS="-L${prefix}/lib"
35configure.args  --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
36                --enable-libs=-liconv --with-curses-terminfo
37patchfiles      patch-configure
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 }