[74422] trunk/dports/shells/zsh-devel/Portfile
dports at macports.org
dports at macports.org
Thu Dec 16 13:18:06 PST 2010
Revision: 74422
http://trac.macports.org/changeset/74422
Author: dports at 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}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101216/7514a5e6/attachment.html>
More information about the macports-changes
mailing list