# $Id: Portfile 41808 2008-11-10 23:41:44Z ryandesign@macports.org $

PortSystem 1.0
name		gerris
version		0.9.2
categories	science
platforms	darwin
maintainers	nomaintainer
description	The Gerris Flow Solver
long_description	\
		Gerris is an Open Source Free Software library		\
		for the solution of the partial differential		\
		equations describing fluid flow.

homepage	http://gfs.sourceforge.net/
master_sites	sourceforge:gfs

checksums	md5 94e0fe2089052a3e6c689f85148388bc

depends_lib	path:lib/pkgconfig/glib-2.0.pc:glib2	\
		port:gts

patchfiles	patch-Makefile.in

post-destroot	{ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
		  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/boussinesq
		  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/cylinder
		  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/cylinder/heated
		  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/rt
		  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/shear

		  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/faq
		  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/html
		  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/tutorial

		  xinstall -m 644 ${worksrcpath}/doc/examples/boussinesq/boussinesq.gfs ${destroot}${prefix}/share/doc/${name}/examples/boussinesq/
		  xinstall -m 644 ${worksrcpath}/doc/examples/boussinesq/boussinesq.gfv ${destroot}${prefix}/share/doc/${name}/examples/boussinesq/
		  xinstall -m 644 ${worksrcpath}/doc/examples/boussinesq/cylinder.gts ${destroot}${prefix}/share/doc/${name}/examples/boussinesq/

		  xinstall -m 644 ${worksrcpath}/doc/examples/cylinder/cylinder.gfs ${destroot}${prefix}/share/doc/${name}/examples/cylinder/
		  xinstall -m 644 ${worksrcpath}/doc/examples/cylinder/cylinder.gts ${destroot}${prefix}/share/doc/${name}/examples/cylinder/
		  xinstall -m 644 ${worksrcpath}/doc/examples/cylinder/heated/heated.gfs ${destroot}${prefix}/share/doc/${name}/examples/cylinder/heated/

		  xinstall -m 644 ${worksrcpath}/doc/examples/shear/shear.gfs ${destroot}${prefix}/share/doc/${name}/examples/shear/
		  xinstall -m 644 ${worksrcpath}/doc/examples/shear/circle.gts ${destroot}${prefix}/share/doc/${name}/examples/shear/

		  xinstall -m 644 ${worksrcpath}/doc/examples/rt/rt.gfs ${destroot}${prefix}/share/doc/${name}/examples/rt/
		  xinstall -m 644 ${worksrcpath}/doc/examples/rt/rt.gfv ${destroot}${prefix}/share/doc/${name}/examples/rt/

		  xinstall -m 644 ${worksrcpath}/doc/faq/faq.pdf     ${destroot}${prefix}/share/doc/${name}/faq/

		  foreach fn [ glob ${worksrcpath}/doc/html/* ] {
		  	xinstall -m 644 ${fn} ${destroot}${prefix}/share/doc/${name}/html/
		  }

		  xinstall -m 644 ${worksrcpath}/doc/tutorial/tutorial.pdf ${destroot}${prefix}/share/doc/${name}/tutorial/
		  xinstall -m 644 ${worksrcpath}/doc/tutorial/half-cylinder.gts ${destroot}${prefix}/share/doc/${name}/tutorial/
		  xinstall -m 644 ${worksrcpath}/doc/tutorial/gfs2D.net ${destroot}${prefix}/share/doc/${name}/tutorial/
		}

