This commit is contained in:
Mario Fetka
2024-12-28 11:45:29 +01:00
parent 304a9311f1
commit e119aa44fa
17 changed files with 262 additions and 6 deletions

View File

@@ -1,4 +1,6 @@
DIST digital-0.30.zip 12331103 BLAKE2B 0a14a3a1b2aceb0222caa385354ea9f24026bfc054e49e325be2943708f82894342d32409b630a536272d8c1bbfbc974bee6530164481467b24e8ee90d6c2244 SHA512 2cda237492d6a9be2f726f1ab3d6dbedc3d48bf686574ed680c94eafd3f761d64fdc770a01f68a45033ed13b252f6cc045583ac21ac396f281a87c399515d287
DIST digital-0.31.zip 12689882 BLAKE2B 7a06f98ea1c479dfc9afebf1b16846c5484e85d17057e9c8414e5c826fc1697b22ac51521f3fbe597e6db83e58917383bee7d4aa9948cfdf596d910d138da7b9 SHA512 e3998e92e47d71caaf34b05be51bb623353806ea58c5018046665903771f88839bb5c2c6ada4ace11ec99ffa091328b414941e070aee343a590a3e566620af50
EBUILD digital-0.30.ebuild 1508 BLAKE2B d04a07f243b0a001bfa0361c4f01d39fd8bd55efbafd816d339f1d47e3a499f80f9208ce356391aaedb801c55a99bef64c499d0fc27e1df5f88e5f4fbf26c90d SHA512 52b1430d0d92fef738589faa58bc52e6bbf4907080dc0163313450335d38b755df12772d5edd1bc2cb7e435b59d460c4b757490e8a462aa01bf5ba06e44d1f25
EBUILD digital-0.31.ebuild 1508 BLAKE2B d04a07f243b0a001bfa0361c4f01d39fd8bd55efbafd816d339f1d47e3a499f80f9208ce356391aaedb801c55a99bef64c499d0fc27e1df5f88e5f4fbf26c90d SHA512 52b1430d0d92fef738589faa58bc52e6bbf4907080dc0163313450335d38b755df12772d5edd1bc2cb7e435b59d460c4b757490e8a462aa01bf5ba06e44d1f25
MISC ChangeLog 369 BLAKE2B 88f998ade334b943688e3145b21bab7927b3ebe7404fce3ce6ecf6a303b6e9907a9ea81640363d8830c8658f20dc3a9e4ffcd9a9b909c6c73fac692c52aa682e SHA512 aa6313e12c9c5dd158dcd1012f4c24ce7aceed99d7b9af3a6771abf0b13474633266e5125097eeae91bfd0cce52e438191d36d8c253de28d6bb75c22b66f5605
MISC metadata.xml 411 BLAKE2B 6bd76e3591b8a2d88277f9ebfbd5951a7458a266adf5818533a1d829a770db62e1de41a4cb4f29206ed5eb381c6f4bfdc04973c4c65bd72496b7e31b6c85880f SHA512 df1f54923628bff824dc8835c96902bd07d4462472b9b8f356abb0b9b81875d78fa96e511290739ecc5423eadc8b2579a65b2f31f9c2c6a73c8d3413c0603d98

View File

@@ -0,0 +1,68 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2 xdg-utils
DESCRIPTION="Digital is an easy-to-use digital logic designer and circuit simulator designed for educational purposes."
HOMEPAGE="https://github.com/hneemann/Digital"
SRC_URI="https://github.com/hneemann/Digital/releases/download/v${PV}/Digital.zip -> ${P}.zip"
LICENSE="GPL-3"
RESTRICT=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=virtual/jre-1.6
dev-util/desktop-file-utils
"
S="${WORKDIR}/Digital"
pkg_setup() { :; }
src_compile() { :; }
src_install() {
local dir="/opt/${PN}"
# buggy binary crap also requires the demo dir ??
insinto "${dir}"
doins -r examples lib
java-pkg_jarinto "${dir}"
java-pkg_dojar Digital.jar
into "${dir}"
java-pkg_dolauncher ${PN} \
--main "de.neemann.digital.gui.Main" \
--java_args "-Xss4m -Xmx512m"
# for direct run without creating an env.d file link them
dodir /opt/bin
dosym ${dir}/bin/${PN} /opt/bin/${PN}
dodoc docu/* *.txt *.me
newicon icon.svg ${PN}.svg
sed -e "s,<EXEC_LOCATION>,${dir}/bin/${PN},g" \
-e "s,<ICON_LOCATION>,${PN},g" "${S}/linux/desktop.template" > "${S}/${PN}.desktop"
domenu ${PN}.desktop
# Install mime info (from Ubuntu)
insinto /usr/share/mime/packages/
doins "linux/digital-simulator.xml"
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}