[30017] trunk/dports/devel/openssl/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 18 01:16:28 PDT 2007


Revision: 30017
          http://trac.macosforge.org/projects/macports/changeset/30017
Author:   mww at macports.org
Date:     2007-10-18 01:16:28 -0700 (Thu, 18 Oct 2007)

Log Message:
-----------
remove 'cd' command (#12903)

Modified Paths:
--------------
    trunk/dports/devel/openssl/Portfile

Modified: trunk/dports/devel/openssl/Portfile
===================================================================
--- trunk/dports/devel/openssl/Portfile	2007-10-18 07:39:15 UTC (rev 30016)
+++ trunk/dports/devel/openssl/Portfile	2007-10-18 08:16:28 UTC (rev 30017)
@@ -60,19 +60,16 @@
 # i386
     # configure
     pre-configure {
-        cd ${worksrcpath}
-        system "./Configure darwin-i386-cc ${configure.pre_args} ${configure.args}"
-        system "patch < ${filespath}/patch-Makefiles-universal-i386"
-        reinplace "s|^PROCESSOR=.*|PROCESSOR=|" Makefile
+        system "./Configure darwin-i386-cc ${configure.pre_args} ${configure.args} && \
+		patch < ${filespath}/patch-Makefiles-universal-i386"
+        reinplace "s|^PROCESSOR=.*|PROCESSOR=|" ${worksrcpath}/Makefile
     }
     # build
     configure {
-        cd ${worksrcpath}
         system "make"
     }
     # backup, clean up
     post-configure {
-        cd ${worksrcpath}
         # get list of files to be backed up - only needs to be done once
         fs-traverse file . {
           if {![string equal [string range [file tail $file] end-1 end] .o]} {
@@ -91,18 +88,15 @@
 # ppc
     # configure
     pre-build {
-        cd ${worksrcpath}
-        system "./Configure darwin-ppc-cc ${configure.pre_args} ${configure.args}"
-        system "patch < ${filespath}/patch-Makefiles-universal-ppc"
+        system "./Configure darwin-ppc-cc ${configure.pre_args} ${configure.args} && \
+		patch < ${filespath}/patch-Makefiles-universal-ppc"
     }
     # build
     build {
-        cd ${worksrcpath}
         system "make"
     }
     # backup
     post-build {
-        cd ${worksrcpath}
         # there's already a list of files to be backed up
 
         global fileList
@@ -114,7 +108,6 @@
 
 # universal
     pre-destroot {
-        cd ${worksrcpath}
         global fileList
         system "make openssl.pc libssl.pc libcrypto.pc"
         lipo

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


More information about the macports-changes mailing list