[33914] trunk/dports/devel/boost/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Feb 7 00:04:47 PST 2008


Revision: 33914
          http://trac.macosforge.org/projects/macports/changeset/33914
Author:   ryandesign at macports.org
Date:     2008-02-07 00:04:43 -0800 (Thu, 07 Feb 2008)

Log Message:
-----------
boost: no longer use deprecated 'cd' command; see #13684

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

Modified: trunk/dports/devel/boost/Portfile
===================================================================
--- trunk/dports/devel/boost/Portfile	2008-02-07 07:28:52 UTC (rev 33913)
+++ trunk/dports/devel/boost/Portfile	2008-02-07 08:04:43 UTC (rev 33914)
@@ -27,7 +27,6 @@
 
 platform darwin {
 	post-destroot {
-		cd ${destroot}${prefix}/lib
 
 		# get the library version as it shows up in the library names:
 		# eg. 1_34_1
@@ -36,14 +35,14 @@
 		# ensure the identification name of the dynamic libraries agree
 		# with their final destination path (not the destroot path that
 		# they've just been installed to)
-		foreach lib [glob *-${libver}.dylib] {
+		foreach lib [glob -directory ${destroot}${prefix}/lib/ *-${libver}.dylib] {
 			system "install_name_tool -id ${prefix}/lib/${lib} ${lib}"
 		}
 
 		# create relative symbolic links to the versioned libraries (.dylib only;
 		# .a were built with unversioned extensions that are duplicate files of the
 		# versioned extensions... handled next)
-		foreach lib [glob *-${libver}.dylib] {
+		foreach lib [glob -directory ${destroot}${prefix}/lib/ *-${libver}.dylib] {
 			set libname [join [lrange [split [file rootname ${lib}] {-}] 0 end-1] {-}]
 			set libext [file extension ${lib}]
 			set liblink "${libname}${libext}"
@@ -52,12 +51,12 @@
 					file delete -force ${liblink}
 				}
 			}
-			system "ln -s ${lib} ${liblink}"
+			system "cd  ${destroot}${prefix}/lib;ln -s ${lib} ${liblink}"
 		}
 
 		# change the duplicated non-version-named .a libraries to
 		# symbolic links to the version-named .a libraries
-		foreach lib [glob *-${libver}.a] {
+		foreach lib [glob -directory ${destroot}${prefix}/lib/ *-${libver}.a] {
 			set libname [join [lrange [split [file rootname ${lib}] {-}] 0 end-1] {-}]
 			set libext [file extension ${lib}]
 			set liblink "${libname}${libext}"
@@ -66,12 +65,12 @@
 				file delete -force ${liblink}
 			}
 			# add a symbolic link instead
-			system "ln -s ${lib} ${liblink}"
+			system "cd  ${destroot}${prefix}/lib; ln -s ${lib} ${liblink}"
 		}
 		
 		# create a symbolic link in the include directory pointing to the current
 		# version of the boost include directory (e.g. boost-1_34_1/boost -> include/boost)
-		system "ln -fs boost-${libver}/boost ${destroot}${prefix}/include/boost"
+		system "cd  ${destroot}${prefix}/lib; ln -fs boost-${libver}/boost ${destroot}${prefix}/include/boost"
 	}
 }
 

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


More information about the macports-changes mailing list