ump
This commit is contained in:
2
sci-electronics/digital/Manifest
Normal file
2
sci-electronics/digital/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST digital-0.29.zip 12260853 BLAKE2B c1cf80aa9d12102eb8cbd1160e8fe11123bdd335d7915cf7a5debdf4007406b708400d1d54320277ac56d57c6acc717d70da82d014dcb6c734dd9d04547388a7 SHA512 7d7864bda32fe55e91da156dcdbcd0999aa95d158f272f0d3bd34550ebf8e027e1e7172318733332779ffcaa6b7d520f4449a8ce41a7c3c8817e411f8b82f054
|
||||
EBUILD digital-0.29.ebuild 1829 BLAKE2B 3186d12a105d561b5a02dabd533fdc248beab7029c08a47840a31c201ff96974155179c91d51d7f1e683a080e9383c0728b0ab101602f09cfe846001ca4b6a9e SHA512 9517bed92e9ad08dbb6997b9278bf5027f068c4796a21aacf85b41da4d18758b537f358b5495efcb4d7c1ea243c811f2e4f318b5993cafeadb79765b965403a5
|
||||
75
sci-electronics/digital/digital-0.29.ebuild
Normal file
75
sci-electronics/digital/digital-0.29.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
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
|
||||
|
||||
# Xerces has been patched hope this gets upstream was version 2.9.1
|
||||
# relaxng is a heavely modified version of jing 20030619
|
||||
java-pkg_jarinto "${dir}"
|
||||
java-pkg_dojar Digital.jar
|
||||
#local dep="javahelp,saxon-6.5,saxon-9,xml-commons-resolver"
|
||||
#java-pkg_register-dependency ${dep}
|
||||
|
||||
# put launchers into the xxe/bin dir as expected by the xxe.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
|
||||
}
|
||||
Reference in New Issue
Block a user