[29520] trunk/dports/devel/git-core/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 26 10:06:11 PDT 2007


Revision: 29520
          http://trac.macosforge.org/projects/macports/changeset/29520
Author:   yves at macports.org
Date:     2007-09-26 10:06:11 -0700 (Wed, 26 Sep 2007)

Log Message:
-----------
Remove cd command and fix invalid perl port dependency

Modified Paths:
--------------
    trunk/dports/devel/git-core/Portfile

Modified: trunk/dports/devel/git-core/Portfile
===================================================================
--- trunk/dports/devel/git-core/Portfile	2007-09-26 16:53:11 UTC (rev 29519)
+++ trunk/dports/devel/git-core/Portfile	2007-09-26 17:06:11 UTC (rev 29520)
@@ -20,7 +20,7 @@
 checksums    git-${version}${extract.suffix} sha1 7e28fd6b0cc2c9c4e6afc9b2dc79c4f804db86f3 \
              git-manpages-${version}${extract.suffix} sha1 26fd2eedd5803afdf7ccc5bedd31306eea05d95e
 
-depends_run  port:curl port:openssh port:rsync port:perl port:p5-error
+depends_run  port:openssh port:rsync port:perl5.8 port:p5-error
 depends_lib  port:curl port:zlib port:openssl port:expat port:libiconv
 
 patchfiles   patch-Makefile patch-http.h patch-git-instaweb.sh
@@ -47,10 +47,9 @@
                   PERL_PATH="/usr/bin/env perl" NO_FINK=1 NO_DARWIN_PORTS=1
 
 post-destroot {
-    cd ${workpath}
     foreach f {1 5 7} {
         xinstall -d ${destroot}${prefix}/share/man/man${f}
-        foreach m [glob man${f}/*.${f}] {
+        foreach m [glob -directory ${workpath} man${f}/*.${f}] {
             xinstall ${m} ${destroot}${prefix}/share/man/man${f}
         }
     }
@@ -60,8 +59,7 @@
     if {[variant_isset doc]} {
         set docdestroot ${destroot}${prefix}/share/doc/${name}
         xinstall -d ${docdestroot}
-        cd ${docdestroot}
-        system "${extract.cmd} ${extract.pre_args} \
+        system "cd ${docdestroot} && ${extract.cmd} ${extract.pre_args} \
             ${distpath}/git-htmldocs-${version}${extract.suffix} \
             ${extract.post_args}"
     }

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


More information about the macports-changes mailing list