[46168] trunk/dports/graphics/shapelib/Portfile

blb at macports.org blb at macports.org
Fri Jan 30 13:00:31 PST 2009


Revision: 46168
          http://trac.macports.org/changeset/46168
Author:   blb at macports.org
Date:     2009-01-30 13:00:30 -0800 (Fri, 30 Jan 2009)
Log Message:
-----------
graphics/shapelib - remove use of cd, ticket #18275

Modified Paths:
--------------
    trunk/dports/graphics/shapelib/Portfile

Modified: trunk/dports/graphics/shapelib/Portfile
===================================================================
--- trunk/dports/graphics/shapelib/Portfile	2009-01-30 20:52:34 UTC (rev 46167)
+++ trunk/dports/graphics/shapelib/Portfile	2009-01-30 21:00:30 UTC (rev 46168)
@@ -19,8 +19,8 @@
 
 destroot.destdir
 
-post-build	{ cd ${worksrcpath}
-		  system "cc -dynamiclib -all_load \
+post-build	{
+		  system "cd ${worksrcpath} && cc -dynamiclib -all_load \
 		  -install_name ${prefix}/lib/libshp.${version}.dylib \
 		  -compatibility_version ${version} \
 		  -o libshp.${version}.dylib shpopen.o shptree.o \
@@ -30,17 +30,15 @@
 
 destroot.target   {}
 
-post-destroot	{ cd ${worksrcpath}
-		  system "install -m 755 -d \
-		    ${destroot}${prefix}/include"
-		  system "install -m 755 -d \
-		    ${destroot}${prefix}/lib"
-		  system "install -m 644 -c \
-		    shapefil.h ${destroot}${prefix}/include"
-		  system "install -m 644 -c \
-		    shapefil.h ${destroot}${prefix}/include"
-		  system "install -m 644 -c \
-		    libshp.${version}.dylib ${destroot}${prefix}/lib"
+post-destroot	{
+		  xinstall -m 755 -d \
+		    ${destroot}${prefix}/include
+		  xinstall -m 755 -d \
+		    ${destroot}${prefix}/lib
+		  xinstall -m 644 -c -W ${worksrcpath} \
+		    shapefil.h ${destroot}${prefix}/include
+		  xinstall -m 644 -c -W ${worksrcpath} \
+		    libshp.${version}.dylib ${destroot}${prefix}/lib
 		  system "ln -sf libshp.${version}.dylib \
 		    ${destroot}/${prefix}/lib/libshp.${libver}.dylib"
 		  system "ln -sf libshp.${version}.dylib \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090130/922c3790/attachment.html>


More information about the macports-changes mailing list