linamh/sci-electronics/freerouting/freerouting-2.0.1.ebuild
Mario Fetka fe3136a5ce Bump
2024-12-28 21:20:08 +01:00

35 lines
953 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2 desktop
DESCRIPTION="popular PCB routing and autorouting program"
HOMEPAGE="http://freerouting.net/"
SRC_URI="https://github.com/freerouting/freerouting/releases/download/v${PV}/freerouting-${PV}.jar
https://raw.githubusercontent.com/rbuj/FreeRouting/master/src/main/resources/icons/32/actions/system-run.png"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="java nls"
DEPEND=">=virtual/jre-21:*"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}"
src_unpack() {
mkdir -p "${S}"
cp "${DISTDIR}"/freerouting-${PV}.jar "${S}"/freerouting.jar
}
src_install() {
java-pkg_newjar freerouting.jar ${PN}.jar
java-pkg_dojar freerouting.jar
java-pkg_dolauncher freerouting -jar freerouting.jar
newicon "${DISTDIR}"/system-run.png ${PN}.png
make_desktop_entry ${PN} "FreeRouting" ${PN} "Science;Electricity;ComputerScience"
}