Ticket #37198: Portfile-zsh-devel.patch
File Portfile-zsh-devel.patch, 6.7 KB (added by collin@…, 12 years ago) |
---|
-
Portfile-zsh-devel
old new 6 6 name zsh-devel 7 7 set my_name [strsed ${name} {s/-.*//}] 8 8 version 5.0.0 9 revision 1 9 10 categories shells 10 11 platforms darwin 11 12 maintainers nomaintainer … … 13 14 description Zsh is a UNIX command interpreter (shell) 14 15 15 16 long_description \ 16 Zsh is a UNIX command interpreter (shell) which of the standard shells most resembles the Korn shell \ 17 (ksh), although it is not completely compatible. It includes enhancements of many types, notably in \ 18 the command-line editor, options for customising its behaviour, filename globbing, features to make \ 19 C-shell (csh) users feel more at home and extra features drawn from tcsh (another `custom' shell). 17 Zsh is a UNIX command interpreter (shell) which of the standard \ 18 shells most resembles the Korn shell (ksh), although it is not \ 19 completely compatible. It includes enhancements of many types, \ 20 notably in the command-line editor, options for customising its \ 21 behaviour, filename globbing, features to make C-shell (csh) users \ 22 feel more at home and extra features drawn from tcsh (another \ 23 `custom' shell). 20 24 21 homepage http://www.zsh.org /25 homepage http://www.zsh.org 22 26 use_bzip2 yes 27 23 28 dist_subdir ${my_name} 24 29 distname ${my_name}-${version} 25 master_sites ${homepage}pub/ \26 ftp://ftp.zsh.org/${my_name} \27 ftp://ftp.sterling.com/${my_name}/ \28 ftp://ftp.rge.com/pub/shells/${my_name}/ \29 ftp://ftp.fu-berlin.de/pub/unix/shells/${my_name}/ \30 ftp://ftp.ips.oz.au/pub/packages/${my_name}/ \31 ftp://ftp.uit.no/pub/unix/shells/${my_name}/ \32 ftp://ftp.iij.ad.jp/pub/misc/${my_name}/ \33 ftp://ftp.icm.edu.pl/vol/wojsyl/${my_name}/ \34 ftp://ftp.sunsite.auc.dk/disk1/${my_name}/ \35 sourceforge:${my_name} \36 http://deb.grml.org/pool/main/z/${my_name}-lovers/:love37 30 38 # Some love for zsh: http://grml.org/zsh/zsh-lovers.html 39 set love_distname zsh-lovers_0.8.3 40 set love_distfile ${love_distname}.tar.gz 41 set worklovedir zsh-lovers 42 set worklovepath ${workpath}/${worklovedir} 31 master_sites sourceforge:project/zsh/zsh/${version} \ 32 http://www.zsh.org/pub/ \ 33 ftp://ftp.zsh.org/zsh/ \ 34 http://mirror.dejanseo.com.au/pub/zsh/ \ 35 http://www.cs.elte.hu/pub/zsh/ \ 36 ftp://ftp.cs.elte.hu/pub/zsh/ 43 37 44 checksums zsh-${version}.tar.bz2\38 checksums ${distname}${extract.suffix} \ 45 39 rmd160 d2aff295e245dd5e805215c6dcca1e76af8b9725 \ 46 sha256 cd014a8e09a3607c68369d1615db96d0fbb7279a125950b32032fd448c44a888 \ 47 zsh-${version}-doc.tar.bz2 \ 48 rmd160 83994a0c5a49db26c9876b27631c2327dda0672b \ 49 sha256 d2219eb3003c108af9d297ff055aa6df3cdb756ccf6b1b2ee3db8a72dbb2ef30 \ 50 ${love_distfile} \ 51 rmd160 f8482d61d700cc79530b4839de5a86aed6783e99 \ 52 sha256 c786724ac9526e2504142c6d607bc6f3703a35b3db804123f0ffe4214b399ea9 40 sha256 cd014a8e09a3607c68369d1615db96d0fbb7279a125950b32032fd448c44a888 53 41 54 42 depends_lib port:libiconv \ 55 43 port:ncurses \ … … 66 54 test.run yes 67 55 test.target check 68 56 69 set docdir ${prefix}/share/doc/${my_name}-${version} 57 set docdir ${prefix}/share/doc/${distname} 58 59 # Some love for zsh: http://grml.org/zsh/zsh-lovers.html 60 set love_distname zsh-lovers_0.8.3 61 set love_distfile ${love_distname}.tar.gz 62 set worklovedir zsh-lovers 63 set worklovepath ${workpath}/${worklovedir} 70 64 71 65 post-patch { 72 66 reinplace "s|/usr/share/zsh|${prefix}/share/zsh|" ${worksrcpath}/Functions/Misc/run-help … … 83 77 84 78 # Install helpfiles for shell builtins (for use by run-help) by 85 79 # extracting them from the zshbuiltins manpage 86 set helpdir ${prefix}/share/ ${my_name}/${version}/help80 set helpdir ${prefix}/share/zsh/${version}/help 87 81 xinstall -d ${destroot}${helpdir} 88 system "cd ${destroot}${helpdir} && nroff -mandoc -Tascii -c ${destroot}${prefix}/share/man/man1/zshbuiltins.1 | colcrt - | perl ${worksrcpath}/Util/helpfiles" 89 82 system "cd ${destroot}${helpdir} && nroff -mandoc -Tascii -c \ 83 ${destroot}${prefix}/share/man/man1/zshbuiltins.1 | colcrt - | \ 84 perl ${worksrcpath}/Util/helpfiles" 85 90 86 xinstall -d ${destroot}${docdir} 91 87 xinstall -m 0644 -W ${worksrcpath} ChangeLog FEATURES LICENCE NEWS README ${destroot}${docdir} 92 88 … … 96 92 } 97 93 98 94 notes " 99 If you want MacPorts' ${my_name}as login shell, you should run:100 % sudo sh -c \"echo '${prefix}/bin/ ${my_name}' >> /etc/shells\"101 % chsh -s ${prefix}/bin/ ${my_name}95 If you want MacPorts' zsh as login shell, you should run: 96 % sudo sh -c \"echo '${prefix}/bin/zsh' >> /etc/shells\" 97 % chsh -s ${prefix}/bin/zsh 102 98 " 103 99 104 100 platform darwin 8 { 105 101 post-configure { 106 102 # poll(2) is broken on Darwin 8. 107 reinplace "s|#define HAVE_POLL 1|#undef HAVE_POLL|" \ 108 ${worksrcpath}/config.h 103 reinplace "s|#define HAVE_POLL 1|#undef HAVE_POLL|" ${worksrcpath}/config.h 109 104 } 110 105 } 111 106 112 variant mp_completion description {In stall port(1) completion file} {107 variant mp_completion description {Include automatic completion of MacPorts commands} { 113 108 post-destroot { 114 set sitedir ${prefix}/share/${my_name}/site-functions 115 xinstall -m 0644 ${filespath}/_port \ 116 ${destroot}${sitedir} 109 set sitedir ${prefix}/share/zsh/site-functions 110 xinstall -m 0644 ${filespath}/_port ${destroot}${sitedir} 117 111 } 118 112 } 119 113 … … 123 117 } 124 118 125 119 variant doc description {Install extra documentation} { 126 distfiles-append [suffix ${distname}-doc] 120 distfiles-append ${distname}-doc${extract.suffix} 121 checksums-append ${distname}-doc${extract.suffix} \ 122 sha1 ea65b463a0b9475ec084ba4f96f390b84b2630a7 \ 123 rmd160 83994a0c5a49db26c9876b27631c2327dda0672b 127 124 128 125 post-build { 129 126 system "${build.cmd} -C ${worksrcpath}/Doc html info" … … 134 131 } 135 132 136 133 variant examples description {Install configuration examples} { 134 master_sites-append http://deb.grml.org/pool/main/z/zsh-lovers/:love 137 135 distfiles-append ${love_distfile}:love 136 checksums-append ${love_distfile} \ 137 rmd160 f8482d61d700cc79530b4839de5a86aed6783e99 \ 138 sha256 c786724ac9526e2504142c6d607bc6f3703a35b3db804123f0ffe4214b399ea9 138 139 extract.only-delete ${love_distfile} 139 140 140 141 post-extract {