PortSystem 1.0

name			gdsreader
version			0.3
categories		graphics cad
license			GPL-2+
maintainers		nomaintainer
description		Calma (GDSii) reader/parser/print tool
long_description	gdsreader is a Calma (GDSii) reader/parser/print \
					tool. It is meant as a fast tool to get info about \
					Calma files contents and to print it to PostScript \
					and HPGL-2 formats.
homepage		http://home.netcom.com/~serbanp
master_sites	${homepage}
distname		GDSreader.${version}
checksums		md5 9b3f495bdf984f554013a713076910e8
platforms		darwin freebsd

patchfiles		patch-GDSboundary.c \
				patch-GDSpath.c \
				patch-GDSmain.c

use_configure	no

build.target	${name}

test.run		yes
test.cmd		./gdsreader
test.pre_args	-c layers.config -i test.gds -s Bandgap
test.post_args	-p test.ps -H test.hpgl > test.stdout

destroot {
	xinstall -d -m 0755 ${destroot}${prefix}/bin
	xinstall -m 0755 -W ${worksrcpath} gdsreader ${destroot}${prefix}/bin
	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
	xinstall -m 0644 -W ${worksrcpath} ChangeLog README layers.config test.gds \
		${destroot}${prefix}/share/doc/${name}
}
