[20017] trunk/dports/science

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 11 22:21:20 PDT 2006


Revision: 20017
          http://trac.macosforge.org/projects/macports/changeset/20017
Author:   markd at macports.org
Date:     2006-10-11 22:21:18 -0700 (Wed, 11 Oct 2006)

Log Message:
-----------
Closes #9823.  New port.

Added Paths:
-----------
    trunk/dports/science/ncview/
    trunk/dports/science/ncview/Portfile
    trunk/dports/science/ncview/files/
    trunk/dports/science/ncview/files/patch-Makefile.in

Added: trunk/dports/science/ncview/Portfile
===================================================================
--- trunk/dports/science/ncview/Portfile	                        (rev 0)
+++ trunk/dports/science/ncview/Portfile	2006-10-12 05:21:18 UTC (rev 20017)
@@ -0,0 +1,54 @@
+# $Id: Portfile
+
+PortSystem			1.0
+name				ncview
+version				1.93b
+maintainers			m at nnutter.com
+platforms			darwin
+categories			science
+
+description			X windows point'n'click NetCDF viewer.
+long_description	Ncview is a visual browser for NetCDF format \
+					files. Typically you would use ncview to get \
+					a quick and easy, push-button look at your \
+					NetCDF files. You can view simple movies of \
+					the data, view along various dimensions, take \
+					a look at the actual data values, change color \
+					maps, invert the data, etc.
+
+homepage			http://meteora.ucsd.edu/~pierce/ncview_home_page.html
+
+master_sites		ftp://cirrus.ucsd.edu/pub/ncview/
+checksums			md5 48c99b2eda1bbc86d7fbe648977f1844 \
+					sha1 2b4d420b5431ec9e124e5d9472b9fe7cdbc7960f
+
+patchfiles		patch-Makefile.in
+depends_lib		port:netcdf
+
+configure.args		--prefix=${prefix} \
+			--with-netcdf_incdir=${prefix}/include \
+			--with-netcdf_libdir=${prefix}/lib \
+			--with-bindir=${prefix}/bin
+
+post-destroot {
+	xinstall -m 755 -d ${destroot}${prefix}/lib/ncview
+        foreach file { 3gauss.ncmap 3saw.ncmap default.ncmap detail.ncmap hotres.ncmap nc_overlay.earth.lat-lon.p8deg nc_overlay.lat-lon-grid.20x60 nc_overlay.lat-lon-grid.10x30 } {
+
+	xinstall -m 755 ${worksrcpath}/${file} ${destroot}${prefix}/lib/ncview
+}
+	xinstall -m 755 -d ${destroot}${prefix}/share/doc/ncview
+	xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/ncview
+}
+
+post-activate {
+ui_msg "\n
+The MacPorts X11 app-defaults directory is located at:
+
+	${prefix}/lib/X11/app-defaults
+
+Therefore, you must set the XFILESEARCHPATH environment variable to your ~/.profile for
+your X11 environment to find the MacPorts app-defaults directory:
+
+	export XFILESEARCHPATH=/usr/X11R6/lib/X11/app-defaults/%N:${prefix}/lib/X11/app-defaults/%N
+\n"
+}

Added: trunk/dports/science/ncview/files/patch-Makefile.in
===================================================================
--- trunk/dports/science/ncview/files/patch-Makefile.in	                        (rev 0)
+++ trunk/dports/science/ncview/files/patch-Makefile.in	2006-10-12 05:21:18 UTC (rev 20017)
@@ -0,0 +1,19 @@
+--- Makefile.in.org	2006-10-09 22:53:19.000000000 -0700
++++ Makefile.in	2006-10-09 23:07:35.000000000 -0700
+@@ -127,13 +127,13 @@
+ 	@echo "----------------------------------------------------"
+ 	@echo "Installing binary in directory $(BINDIR)"
+ 	@echo "----------------------------------------------------"
+-	if test ! -d $(BINDIR); then  mkdir -p $(BINDIR); fi; $(INSTALL) $(INSTBINFLAGS) ncview   $(BINDIR)/ncview
++	mkdir -p $(DESTDIR)$(BINDIR) && $(INSTALL) $(INSTBINFLAGS) ncview   $(DESTDIR)$(BINDIR)/ncview
+ 	@echo "--------------------------------------------------------"
+ 	@echo "Installing manual in directory $(MANDIR)"
+ 	@echo "--------------------------------------------------------"
+-	if test ! -d $(MANDIR); then mkdir -p $(MANDIR); fi; $(INSTALL) $(INSTMANFLAGS) ncview.1 $(MANDIR)/ncview.1
++	mkdir -p $(DESTDIR)$(MANDIR) && $(INSTALL) $(INSTMANFLAGS) ncview.1 $(DESTDIR)$(MANDIR)/ncview.1
+ 	@echo "------------------------------------"
+ 	@echo "Installing application defaults file"
+ 	@echo "------------------------------------"
+-	/bin/sh ./install-appdef "$(INSTALL) $(INSTMANFLAGS)"
++	mkdir -p $(DESTDIR)@prefix@/lib/X11/app-defaults; $(INSTALL) Ncview $(DESTDIR)@prefix@/lib/X11/app-defaults
+ 

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


More information about the macports-changes mailing list