PortSystem			1.0
PortGroup           java 1.0
PortGroup			app 1.0

name				electric
version				9.07
categories			graphics electronics science
maintainers			nomaintainer
supported_archs		noarch
license				GPL-3+

description			CAD system for VLSI circuit design
long_description \
	Electric designs MOS and bipolar integrated circuits, printed-circuit \
	boards, or any type of circuit you choose. It has many editing styles \
	including layout, schematics, artwork, and architectural specifications.

platforms			any

homepage			https://www.staticfreesoft.com/
master_sites		gnu
set jar				electricBinary-${version}.jar
distfiles			${jar}
extract.only

checksums           rmd160  aac9bda4c233bd11775a837b266097e34f535a3d \
                    sha256  3e383f673183265700e0c13a5f7b1d3348247465c3d8817c845d62e4c92d86ce

java.version        1.6+
java.fallback       openjdk11

use_configure		no

build				{}

destroot {
	set javadir ${prefix}/share/java
	xinstall -d ${destroot}${javadir}
	xinstall -m 644 ${distpath}/${jar} ${destroot}${javadir}/${name}.jar
	xinstall ${filespath}/${name} ${destroot}${prefix}/bin
	reinplace "s|@JAR@|${javadir}/${name}.jar|g" ${destroot}${prefix}/bin/${name}
}
