You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-electronics/drahnr-oregano/drahnr-oregano-0.84.40.ebuild

60 lines
1.4 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
PYTHON_REQ_USE='threads(+)'
inherit python-any-r1 waf-utils xdg
DESCRIPTION="Application for the schematic capturing and simulation of electrical circuits"
HOMEPAGE="https://github.com/drahnr/oregano"
SRC_URI="https://github.com/drahnr/oregano/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ppc x86"
S="${WORKDIR}/oregano-${PV}"
DEPEND="
dev-libs/glib:2
dev-libs/libxml2:2
x11-libs/goocanvas:2.0
x11-libs/gtk+:3
x11-libs/gtksourceview:3.0"
BDEPEND="${PYTHON_DEPS}
dev-util/glib-utils
virtual/pkgconfig"
RDEPEND="${DEPEND}
|| (
gnome-base/dconf
gnome-base/gconf
)
sci-electronics/electronics-menu"
src_configure() {
waf-utils_src_configure
}
src_install() {
waf-utils_src_install --no-xdg --no-install-gschema
docompress -x /usr/share/doc/${PF}/{dev-docs,sequence}
dodoc -r docs/{dev-docs,sequence,user-docs}
insinto /usr/share/glib-2.0/schemas
doins data/settings/io.ahoi.oregano.gschema.xml
}
pkg_postinst() {
xdg_pkg_postinst
elog "Note: You'll need to emerge your prefered simulation backend"
elog "such as sci-electronics/ngspice (preferred) or sci-electronics/gnucap"
elog "for simulation to work."
elog "As an alternative generate a netlist and use sci-electronics/spice"
elog "from the command line for simulation."
}