[35018] trunk/dports/science/hdf4/Portfile

takeshi at macports.org takeshi at macports.org
Thu Mar 13 18:54:52 PDT 2008


Revision: 35018
          http://trac.macosforge.org/projects/macports/changeset/35018
Author:   takeshi at macports.org
Date:     2008-03-13 18:54:52 -0700 (Thu, 13 Mar 2008)

Log Message:
-----------
hdf4: removed cd

Modified Paths:
--------------
    trunk/dports/science/hdf4/Portfile

Modified: trunk/dports/science/hdf4/Portfile
===================================================================
--- trunk/dports/science/hdf4/Portfile	2008-03-14 01:42:44 UTC (rev 35017)
+++ trunk/dports/science/hdf4/Portfile	2008-03-14 01:54:52 UTC (rev 35018)
@@ -7,7 +7,7 @@
 version             4.2r3
 platforms           darwin
 categories          science
-maintainers         nomaintainer
+maintainers         takeshi at macports.org
 
 description         file format for storing scientific data and utilities
 long_description    ${description}
@@ -28,15 +28,16 @@
 test.target         check
 
 post-destroot {
-	cd ${destroot}${prefix}
-	file mkdir share/doc/${name}
-	file copy ${worksrcpath}/hdf/util/testfiles share/doc/${name}/samples
+	file mkdir ${destroot}${prefix}/share/doc/${name}
+	file copy ${worksrcpath}/hdf/util/testfiles ${destroot}${prefix}/share/doc/${name}/samples
 	foreach f {COPYING INSTALL README release_notes/HISTORY.txt} {
-		file copy ${worksrcpath}/$f share/doc/${name}/
+		file copy ${worksrcpath}/$f ${destroot}${prefix}/share/doc/${name}/
 	}
-	file delete bin/ncdump bin/ncgen \
-              include/netcdf.h include/netcdf.inc include/netcdf.f90 \
-	            lib/libudport.a share/man/man1/ncgen.1 share/man/man1/ncdump.1
+	foreach f {bin/ncdump bin/ncgen lib/libudport.a                   \
+             include/netcdf.h include/netcdf.inc include/netcdf.f90 \
+             share/man/man1/ncgen.1 share/man/man1/ncdump.1} {
+		file delete ${destroot}${prefix}/$f
+	}
 }
 
 variant szip description {installs szip} {

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


More information about the macports-changes mailing list