linamh/sci-electronics/freerouting/freerouting-2.0.1.ebuild

35 lines
953 B
Bash
Raw Normal View History

2022-12-14 13:50:35 +01:00
# 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-12-14 13:50:35 +01:00
2024-12-17 04:55:54 +01:00
inherit java-pkg-2 desktop
2022-12-14 13:50:35 +01:00
DESCRIPTION="popular PCB routing and autorouting program"
HOMEPAGE="http://freerouting.net/"
2024-12-28 18:22:25 +01:00
SRC_URI="https://github.com/freerouting/freerouting/releases/download/v${PV}/freerouting-${PV}.jar
2022-12-14 13:50:35 +01:00
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"
2024-12-28 18:22:25 +01:00
DEPEND=">=virtual/jre-17:*"
2022-12-14 13:50:35 +01:00
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}"
src_unpack() {
mkdir -p "${S}"
2024-12-28 18:22:25 +01:00
cp "${DISTDIR}"/freerouting-${PV}.jar "${S}"/freerouting.jar
2022-12-14 13:50:35 +01:00
}
src_install() {
2024-12-28 18:22:25 +01:00
java-pkg_newjar freerouting.jar ${PN}.jar
java-pkg_dojar freerouting.jar
java-pkg_dolauncher freerouting -jar freerouting.jar
2022-12-14 13:50:35 +01:00
newicon "${DISTDIR}"/system-run.png ${PN}.png
make_desktop_entry ${PN} "FreeRouting" ${PN} "Science;Electricity;ComputerScience"
}