sci-electronics/digital - 0.30 (xarblu-overlay)

Search

Install

Install this version:

emerge -a =sci-electronics/digital-0.30

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sci-electronics/digital-0.30

Or alternatively:

emerge --autounmask-write -a =sci-electronics/digital-0.30

Package Information

Description:
A digital logic designer and circuit simulator
Homepage:
https://github.com/hneemann/Digital
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
0.30 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop

MY_PN="${PN^}"

DESCRIPTION="A digital logic designer and circuit simulator"
HOMEPAGE="https://github.com/hneemann/Digital"
SRC_URI="https://github.com/hneemann/${MY_PN}/releases/download/v${PV}/${MY_PN}.zip -> ${P}.zip"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="
	virtual/jre
"
RDEPEND="${DEPEND}"
BDEPEND=""

S="${WORKDIR}/${MY_PN}"

src_install() {
	# Some setup variables
	INSTALLDIR="/opt/${PN}"
	JAR="${MY_PN}.jar"

	# Setup and install wrapper script
	cp "${FILESDIR}/wrapper.sh" "${S}"
	sed -i -e "s|%%INSTALLDIR%%|${INSTALLDIR}|" "${S}/wrapper.sh" || die "Failed setting up wrapper"
	sed -i -e "s|%%JAR%%|${JAR}|" 				"${S}/wrapper.sh" || die "Failed setting up wrapper"
	newbin "${S}/wrapper.sh" digital

	# Install main files
	insinto "${INSTALLDIR}"
	doins -r ${S}/{docu,examples,lib,${JAR},ReleaseNotes.txt,Version.txt,icon.svg}

	# Setup and install desktop files
	sed -i -e "s|<EXEC_LOCATION>|${PN}|" "${S}/linux/desktop.template" || die "Failed setting up .desktop"
	sed -i -e "s|<ICON_LOCATION>|${PN}|" "${S}/linux/desktop.template" || die "Failed setting up .desktop"
	newmenu "${S}/linux/desktop.template" "${PN}.desktop"
	newicon -s scalable "${S}/icon.svg" "${PN}.svg"
	insinto "/usr/share/mime/packages"
	doins "${S}/linux/digital-simulator.xml"
}

Inherited Eclasses

Dependencies

DEPEND

	virtual/jre

RDEPEND

	virtual/jre

Manifest for 0.30

Type File Size Source URLs
DIST digital-0.30.zip 12331103 bytes https://github.com/hneemann/Digital/releases/download/v0.30/Digital.zip