linamh/sci-electronics/logisim-evolution/logisim-evolution-3.7.2.ebuild

36 lines
1.1 KiB
Bash
Raw Normal View History

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
2023-07-20 20:28:34 +02:00
EAPI=8
2022-03-20 18:42:52 +01:00
2023-07-20 20:28:34 +02:00
inherit java-pkg-2 java-ant-2 desktop
2022-03-20 18:42:52 +01:00
DESCRIPTION="Digital logic designer and simulator."
HOMEPAGE="https://github.com/logisim-evolution/logisim-evolution"
#SRC_URI="https://github.com/logisim-evolution/logisim-evolution/archive/v${PV}.tar.gz"
SRC_URI="https://github.com/logisim-evolution/logisim-evolution/releases/download/v${PV}/logisim-evolution-${PV}-all.jar
https://github.com/logisim-evolution/logisim-evolution/blob/master/artwork/logisim-evolution-icon.svg"
LICENSE="GPL-3"
2022-03-20 18:42:52 +01:00
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="java nls"
DEPEND=">=virtual/jre-11:*"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}"
src_unpack() {
mkdir -p "${S}"
cp "${DISTDIR}"/logisim-evolution-${PV}-all.jar "${S}"/logisim-evolution.jar
2022-03-20 18:42:52 +01:00
}
src_install() {
java-pkg_newjar logisim-evolution.jar ${PN}.jar
java-pkg_dojar logisim-evolution.jar
java-pkg_dolauncher logisim-evolution -jar logisim-evolution.jar
newicon "${DISTDIR}"/logisim-evolution-icon.svg ${PN}.svg
2022-03-20 18:42:52 +01:00
make_desktop_entry ${PN} "Logisim Evolution" ${PN} "Science;Electricity;ComputerScience"
}