[101584] trunk/dports/shells/zsh/Portfile

larryv at macports.org larryv at macports.org
Mon Jan 14 01:08:08 PST 2013


Revision: 101584
          https://trac.macports.org/changeset/101584
Author:   larryv at macports.org
Date:     2013-01-14 01:08:08 -0800 (Mon, 14 Jan 2013)
Log Message:
-----------
zsh: Update to 5.0.2; enable PCRE module.

Also:
- Remove hard linebreak from notes.
- Remove poll(2) workaround, which upstream obsoleted 7.5 years ago.[1]
- Remove mp_completion variant, which installs a file that has zero
  versioning relationship to anything else that is installed.
- Fix broken zshall(1) man page.
- Install NEWS and README and the like.

    [1] http://zsh.cvs.sourceforge.net/viewvc/zsh/zsh/Src/system.h?r1=1.21&r2=1.21.2.1

Revision Links:
--------------
    https://trac.macports.org/changeset/1
    https://trac.macports.org/changeset/2

Modified Paths:
--------------
    trunk/dports/shells/zsh/Portfile

Modified: trunk/dports/shells/zsh/Portfile
===================================================================
--- trunk/dports/shells/zsh/Portfile	2013-01-14 07:58:24 UTC (rev 101583)
+++ trunk/dports/shells/zsh/Portfile	2013-01-14 09:08:08 UTC (rev 101584)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                zsh
-version             5.0.0
-revision            0
+version             5.0.2
 categories          shells
 platforms           darwin
 maintainers         larryv
@@ -30,14 +29,16 @@
                     ftp://ftp.fu-berlin.de/unix/shells/zsh/ \
                     ftp://ftp.icm.edu.pl/vol/rzm1/zsh/
 checksums           ${distname}${extract.suffix} \
-                    rmd160  d2aff295e245dd5e805215c6dcca1e76af8b9725 \
-                    sha256  cd014a8e09a3607c68369d1615db96d0fbb7279a125950b32032fd448c44a888
+                    rmd160  eea2328a28e9f022ab9f49583622a9c3bd6114a7 \
+                    sha256  eb220ae5a8076191ec6b4c6a5a2f18122d074a19f25b45f0320b44b8166c5a03
 
 depends_lib         port:libiconv \
                     port:ncurses \
-                    port:gdbm
+                    port:gdbm \
+                    port:pcre
 
 configure.args      --enable-libs="-lncurses" \
+                    --enable-pcre \
                     --with-tcsetpgrp \
                     DL_EXT=bundle
 
@@ -49,34 +50,31 @@
 
     sudo chpass -s ${prefix}/bin/${name} \${USER}
 
-To be able to switch default shells to or from ${name} without superuser
+To be able to switch default shells to or from ${name} without superuser\
 privileges, add it to /etc/shells:
 
     sudo sh -c 'echo ${prefix}/bin/${name} >> /etc/shells'
 "
 
-platform darwin 8 {
-    post-configure {
-        # poll(2) is broken in Tiger
-        reinplace "s|#define HAVE_POLL 1|#undef HAVE_POLL|" ${worksrcpath}/config.h
-    }
-}
+post-destroot {
+    # zshall(1) just includes every other zsh manpage, but its .so groff
+    # directives fail because MacPorts gzips manpages.
+    set man ${destroot}${prefix}/share/man
+    system -W ${man} "soelim man1/zshall.1 > zshall.1.soelim"
+    move -force ${man}/zshall.1.soelim ${man}/man1/zshall.1
 
-variant mp_completion description {Include completion for MacPorts commands} {
-    post-destroot {
-        file copy -force ${filespath}/_port \
-          ${destroot}${prefix}/share/${name}/${version}/functions
-    }
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 0644 -W ${worksrcpath} \
+        ChangeLog FEATURES LICENCE META-FAQ NEWS README \
+        ${destroot}${prefix}/share/doc/${name}
 }
 
 variant doc description {Install extra documentation} {
     distfiles-append    ${distname}-doc${extract.suffix}
     checksums-append    ${distname}-doc${extract.suffix} \
-                        md5     f81aef500fbaaa6739b6a48e14357dca \
-                        sha1    ea65b463a0b9475ec084ba4f96f390b84b2630a7 \
-                        rmd160  83994a0c5a49db26c9876b27631c2327dda0672b
+                        rmd160  a42bd1b85cae98158391d6aa120c6f9d4735ef7b \
+                        sha256  99ee08cfc91935af8714bd98db652f016d6c7a8a71ba7c6d6223910cd0b7fbf1
     post-destroot {
-        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
         eval xinstall -m 644 [glob ${worksrcpath}/Doc/*.html] \
           ${destroot}${prefix}/share/doc/${name}
         eval xinstall -m 644 [glob ${worksrcpath}/Doc/*.pdf] \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130114/6d18e0e1/attachment-0001.html>


More information about the macports-changes mailing list