[27586] trunk/dports/shells/zsh-devel

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 9 05:55:32 PDT 2007


Revision: 27586
          http://trac.macosforge.org/projects/macports/changeset/27586
Author:   nox at macports.org
Date:     2007-08-09 05:55:32 -0700 (Thu, 09 Aug 2007)

Log Message:
-----------
zsh-devel:
* Fixed zshall(1) manpage.
* Added examples variant.
* Little fix in _port completion file.

Modified Paths:
--------------
    trunk/dports/shells/zsh-devel/Portfile
    trunk/dports/shells/zsh-devel/files/_port

Modified: trunk/dports/shells/zsh-devel/Portfile
===================================================================
--- trunk/dports/shells/zsh-devel/Portfile	2007-08-09 11:39:42 UTC (rev 27585)
+++ trunk/dports/shells/zsh-devel/Portfile	2007-08-09 12:55:32 UTC (rev 27586)
@@ -29,10 +29,15 @@
                 ftp://ftp.iij.ad.jp/pub/misc/${my_name}/ \
                 ftp://ftp.icm.edu.pl/vol/wojsyl/${my_name}/ \
                 ftp://ftp.sunsite.auc.dk/disk1/${my_name}/ \
-                sourceforge:${my_name}
+                sourceforge:${my_name} \
+                http://deb.grml.org/pool/main/z/${my_name}-lovers/:love
 
 dist_subdir     ${my_name}
 distname        ${my_name}-${version}
+set love_distname   zsh-lovers_0.6-5
+set love_distfile	${love_distname}.tar.gz
+set worklovedir     [strsed [strsed ${love_distname} {s/-[0-9][0-9]*$//}] {g/_/-/}]
+set worklovepath    ${workpath}/${worklovedir}
 
 checksums       [suffix ${distname}] \
                     md5 8410a30e4f5c6160790bc3afc096424f \
@@ -41,7 +46,11 @@
                 [suffix ${distname}-doc] \
                     md5 1a4ab09a9d75c5ae8585ad645406f27d \
                     sha1 83d1a38112f305892393cb036058248ebbf6168e \
-                    rmd160 768ce8ca2860139428d27a0fedf5c0724967e444
+                    rmd160 768ce8ca2860139428d27a0fedf5c0724967e444 \
+                ${love_distfile} \
+                    md5 6a450ea9c0e2b4b7aa61dc387413cae1 \
+                    sha1 4520215404f324d229482d19affd97ff7ebbcdc0 \
+                    rmd160 485d430fa31d3451258f42e8e188e00eeb72ae6a
 
 depends_lib	port:libiconv port:ncurses
 configure.args	--mandir=${prefix}/share/man --infodir=${prefix}/share/info \
@@ -55,11 +64,17 @@
 
 post-destroot {
     # This manpage only includes every zsh manpage; as manpages are gzipped in MacPorts,
-    # includes fail, so this one is useless.
-    delete ${destroot}${prefix}/share/man/man1/zshall.1
+    # .so groff directives will fail.
+    cd ${destroot}${prefix}/share/man/man1
+    system "soelim -I.. zshall.1 > zshall.1.soelim"
+    file rename -force zshall.1.soelim zshall.1
 
     xinstall -m 0755 -d ${destroot}${docdir}
     xinstall -m 0644 -W ${worksrcpath} ChangeLog FEATURES LICENCE NEWS README ${destroot}${docdir}
+
+    if {[variant_isset doc] || [variant_isset examples]} {
+        xinstall -m 0755 -d ${destroot}${docdir}/pdf
+    }
 }
 
 post-install {
@@ -103,10 +118,40 @@
     distfiles-append        [suffix ${distname}-doc]
 
     post-destroot {
-        foreach {dir} {dvi html pdf} {
-            xinstall -m 0755 -d ${destroot}${docdir}/${dir}
-            eval xinstall -m 0644 [glob ${worksrcpath}/Doc/*.${dir}] ${destroot}${docdir}/${dir}
+        cd ${worksrcpath}/Doc
+
+        xinstall -m 0644 zsh.pdf ${destroot}${docdir}/pdf
+
+        xinstall -m 0755 -d ${destroot}${docdir}/html
+        eval xinstall -m 0644 [glob *.html] ${destroot}${docdir}/html
+    }
+}
+
+variant examples description {Install configuration examples} {
+    distfiles-append        ${love_distfile}:love
+    extract.only-delete     ${love_distfile}
+
+    post-extract {
+        system "tar xzf ${distpath}/${love_distfile} -C ${workpath}"
+    }
+
+    post-destroot {
+        proc xinstall_dir {dir destdir} {
+            xinstall -m 0755 -d ${destdir}
+
+            foreach {file} [glob ${dir}/*] {
+                if {[file isdirectory ${file}]} {
+                    xinstall_dir ${file} [file join ${destdir} [file tail ${file}]]
+                } else {
+                    xinstall -m 0644 ${file} ${destdir}
+                }
+            }
         }
+
+        cd ${worklovepath}
+
+        xinstall -m 0644 refcard.pdf ${destroot}${docdir}/pdf
+        xinstall_dir zsh_people ${destroot}${docdir}/examples
     }
 }
 

Modified: trunk/dports/shells/zsh-devel/files/_port
===================================================================
--- trunk/dports/shells/zsh-devel/files/_port	2007-08-09 11:39:42 UTC (rev 27585)
+++ trunk/dports/shells/zsh-devel/files/_port	2007-08-09 12:55:32 UTC (rev 27586)
@@ -5,7 +5,7 @@
 # we cache the list of ports
 # we shall use some cache policy to avoid problems with new ports
 if (( ! $+portlist )); then
-	portlist=($(port list | awk '{print $1}'))
+	portlist=($(port echo all))
 fi
 
 subcmds=(

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070809/e7569e28/attachment.html


More information about the macports-changes mailing list