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

38 lines
873 B
Bash
Raw Normal View History

2021-06-30 18:45:43 +02:00
EAPI=6
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="Digital logic designer and simulator."
HOMEPAGE="https://github.com/reds-heig/logisim-evolution"
#SRC_URI="https://github.com/reds-heig/logisim-evolution/archive/v${PV}.tar.gz"
SRC_URI="https://github.com/reds-heig/logisim-evolution/releases/download/v3.4.1/logisim-evolution-${PV}-all.jar"
LICENSE="GPL-3.0"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="java nls"
DEPEND=">=dev-java/openjdk-bin-11"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}"
src_unpack() {
mkdir -p ${S}
cp ${DISTDIR}/${A} ${S}/logisim-evolution.jar
}
#src_compile() {
# Remove ALL .class and .jar files
#gradlew shadowJar
# Build logisim-evolution.jar
#gradlew shadowJar
#}
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
}