Revision: 74422 http://trac.macports.org/changeset/74422 Author: dports@macports.org Date: 2010-12-16 13:17:51 -0800 (Thu, 16 Dec 2010) Log Message: ----------- zsh-devel: make and install helpfiles for shell built-ins (accessible via run-help builtin) by generating them from the zshbuiltins manpage Modified Paths: -------------- trunk/dports/shells/zsh-devel/Portfile Modified: trunk/dports/shells/zsh-devel/Portfile =================================================================== --- trunk/dports/shells/zsh-devel/Portfile 2010-12-16 21:15:10 UTC (rev 74421) +++ trunk/dports/shells/zsh-devel/Portfile 2010-12-16 21:17:51 UTC (rev 74422) @@ -6,6 +6,7 @@ name zsh-devel set my_name [strsed ${name} {s/-.*//}] version 4.3.10 +revision 1 categories shells platforms darwin maintainers nomaintainer @@ -71,6 +72,10 @@ set docdir ${prefix}/share/doc/${my_name}-${version} +post-patch { + reinplace "s|/usr/share/zsh|${prefix}/share/zsh|" ${worksrcpath}/Functions/Misc/run-help +} + post-destroot { # This manpage only includes every zsh manpage; as manpages are gzipped in MacPorts, # .so groff directives will fail. @@ -80,6 +85,12 @@ ${destroot}${prefix}/share/man/man1/zshall.1.soelim \ ${destroot}${prefix}/share/man/man1/zshall.1 + # Install helpfiles for shell builtins (for use by run-help) by + # extracting them from the zshbuiltins manpage + set helpdir ${prefix}/share/${my_name}/${version}/help + xinstall -d ${destroot}${helpdir} + system "cd ${destroot}${helpdir} && nroff -mandoc -Tascii -c ${destroot}${prefix}/share/man/man1/zshbuiltins.1 | colcrt - | perl ${worksrcpath}/Util/helpfiles" + xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} ChangeLog FEATURES LICENCE NEWS README ${destroot}${docdir}
participants (1)
-
dports@macports.org