[102022] trunk/dports/shells/zsh/Portfile
larryv at macports.org
larryv at macports.org
Thu Jan 24 13:10:31 PST 2013
Revision: 102022
https://trac.macports.org/changeset/102022
Author: larryv at macports.org
Date: 2013-01-24 13:10:31 -0800 (Thu, 24 Jan 2013)
Log Message:
-----------
zsh: Generate run-help help files; add build dependency on Perl.
Modified Paths:
--------------
trunk/dports/shells/zsh/Portfile
Modified: trunk/dports/shells/zsh/Portfile
===================================================================
--- trunk/dports/shells/zsh/Portfile 2013-01-24 21:00:27 UTC (rev 102021)
+++ trunk/dports/shells/zsh/Portfile 2013-01-24 21:10:31 UTC (rev 102022)
@@ -5,7 +5,7 @@
name zsh
version 5.0.2
-revision 2
+revision 3
categories shells
platforms darwin
maintainers larryv
@@ -37,12 +37,21 @@
rmd160 a42bd1b85cae98158391d6aa120c6f9d4735ef7b \
sha256 99ee08cfc91935af8714bd98db652f016d6c7a8a71ba7c6d6223910cd0b7fbf1
+set help ${prefix}/share/${name}/${version}/help
+set doc ${prefix}/share/doc/${name}
+
+post-patch {
+ reinplace -E "s|{HELPDIR:-.+}|{HELPDIR:-${help}}|" \
+ ${worksrcpath}/Functions/Misc/run-help
+}
+
+# Perl is only needed in post-destroot.
+depends_build bin:perl:perl5
depends_lib port:libiconv \
port:ncurses \
port:gdbm \
port:pcre
-set doc ${prefix}/share/doc/${name}
configure.args --htmldir=${doc}/html \
--enable-libs="-lncurses" \
--enable-pcre \
@@ -61,11 +70,14 @@
system -W ${man} "soelim man1/zshall.1 > zshall.1.soelim"
move -force ${man}/zshall.1.soelim ${man}/man1/zshall.1
- # .../share/doc/zsh is created by "make install.html"
+ # Generate run-help help files; see zshcontrib(1).
+ xinstall -d ${destroot}${help}
+ system -W ${destroot}${help} "man ${man}/man1/zshbuiltins.1 | colcrt - | \
+ perl ${worksrcpath}/Util/helpfiles"
+
+ # Install any straggling documentation.
xinstall -m 0644 -W ${worksrcpath} \
ChangeLog FEATURES LICENCE META-FAQ NEWS README ${destroot}${doc}
-
- # There doesn't seem to be a make target for installing the PDFs.
xinstall -d ${destroot}${doc}/pdf
eval xinstall -m 0644 [glob ${worksrcpath}/Doc/*.pdf] ${destroot}${doc}/pdf
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130124/9fb4cded/attachment.html>
More information about the macports-changes
mailing list