jd-gui-bin: restore -bin

This commit is contained in:
Anton Bolshakov 2022-11-23 10:07:52 +08:00
parent dc0e03b1c2
commit 5ba1f511e0
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
4 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST jd-gui-1.6.6.jar 3238491 BLAKE2B 478fa30abd5ae11385f7020ce1ac2e48d1b9e3f175b71660293f41b239c65225a2e2fe130c10a66a1a7446a4ac7d2e7d0fcccec68176b19aec14be729a6e6969 SHA512 ac05eade3bc70ac72fe92d52f178a4a8a028f00430fa709bcbd4e43564589339e731eb2111c9ef64c0bed26f2edbb510afafc73a4891d0bd018e813539ac1227

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Comment=Java Decompiler JD-GUI
Terminal=false
Name=JD-GUI
Exec=java -jar /opt/jd-gui/jd-gui.jar
Type=Application
Icon=jd-gui

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1,48 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="jd-gui"
MY_P="${MY_PN}-${PV}"
inherit desktop
DESCRIPTION="A standalone Java Decompiler GUI"
HOMEPAGE="http://jd.benow.ca/"
SRC_URI="https://github.com/java-decompiler/jd-gui/releases/download/v${PV}/${MY_P}.jar"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="virtual/jre"
DEPEND="${RDEPEND}
!dev-util/jd-gui"
S="${WORKDIR}"
src_unpack() {
dodir "${S}"
cp -L "${DISTDIR}/${A}" "${S}/" || die
}
src_install() {
dodir /opt/"${MY_PN}"
insinto /opt/"${MY_PN}"
doins "${MY_P}.jar"
doicon "${FILESDIR}/jd_icon_128.png"
domenu "${FILESDIR}/jd-gui.desktop"
# echo -e "#!/bin/sh\njava -jar /opt/${MY_PN}/${MY_P}.jar >/dev/null 2>&1 &\n" > "${MY_PN}"
# dobin "${MY_PN}"
newbin - ${PN} <<-EOF
#!/bin/sh
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'
java -jar /opt/${MY_PN}/${MY_P}.jar >/dev/null 2>&1 &
EOF
}