# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup active_variants 1.1
github.setup drahnr oregano 0.83.2.1 v
maintainers ahoi.io:bernhard openmaintainer
description A graphical software application for schematic capture and simulation of electrical circuits.
long_description ${description} It uses Gtk+ 3.x for the frontend and ngspice or gnucap as backend for crunching numbers. \
File bugs for this port at https://github.com/drahnr/oregano
checksums rmd160 7a5c06c6d7f260143ea0bbd9f92759beacde920d \
sha256 d22ab0dc9f3717759983966ea3f7a8cd266e343fab47236ec4d841660bd72fa1
# be careful not to overwrite build dependencies
# declared by the waf port group
depends_lib port:desktop-file-utils \
depends_run port:adwaita-icon-theme \
# shipped waf does not recognize --nocache
configure.post_args-delete \
# shipped waf requires target debug or release not build
# allow port to build with either gtk3 +x11 or +quartz backend
if {[variant_isset quartz]} {
require_active_variants gtk3 quartz
require_active_variants gtk3 x11
depends_run-append port:yelp \
system "${prefix}/bin/scrollkeeper-update"
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"