recaf-bin-2.5.0.ebuild

This commit is contained in:
blshkv 2020-08-28 17:50:24 +08:00
parent bdecc15292
commit f991367f1b
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 1 additions and 52 deletions

View file

@ -1,2 +1 @@
DIST recaf-bin-2.3.2.jar 25632199 BLAKE2B 6021656759cb5640cb497652e1faab878d4206a1f332ff4eff2a24633a937f17fd7a9db1a1491fff8454b959aac3fa70e06d0d2a1aee817a4d4c8cbe872761eb SHA512 fdf49f3f1293068fe2bd97fcdcbcefcfd9abbb179811d0115564653fca737a47bd930f8399d8d31c8109f7f741029a9023b1f6b5d6093000b979208dfa7951d5
DIST recaf-bin-2.3.7.jar 25755568 BLAKE2B 24835449cb1120ba50b4175224164e4b261190ef20baa72fc66d24d48559c2998fbe1dd66ddc3a157ce2bdc10403c16c00179006716d94cef29a2b6d4a5b712b SHA512 3f92fc68b3fa08f815b6ceee0d6d73214b2c8290969a5276fb5f9ab2a7e6fbda1e58d57fb989784255756500798cb125c3a985a1d55a0ac41e6ba5361175b49a
DIST recaf-bin-2.5.0.jar 25775952 BLAKE2B 715fad96915f4d228b4b5b1dd06e991e7feec9c749491ee75f3890d5628fe581fbc3123398eb34046d7b6489fd1028da9243cd06656323bacfc39c5ee3ddc5f3 SHA512 2347ab4872be7ed86c2c431c9b74585d34656cc0f4d4b015b8b1e9a95882d67e16e1296a2d3494f899bc4d1845a75c263eeff839ba79ae65d0b110b0ba0f9da8

View file

@ -1,50 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="recaf"
#MY_PV="$(ver_cut 1-3)-redesign.$(ver_cut 5)"
DESCRIPTION="A modern Java bytecode editor"
HOMEPAGE="https://col-e.github.io/Recaf/"
SRC_URI="https://github.com/Col-E/Recaf/releases/download/${PV}/recaf-${PV}-J8-jar-with-dependencies.jar -> ${P}.jar"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="system-openjfx"
RDEPEND="system-openjfx? ( dev-java/openjfx )
virtual/jre:*"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
src_unpack() {
dodir "${S}"
cp -L "${DISTDIR}/${A}" "${S}/${MY_PN}.jar" || die
}
src_install() {
insinto "/opt/${MY_PN}/"
doins "${MY_PN}.jar"
newbin - ${MY_PN} <<-EOF
#!/bin/sh
FXLIB_PATH="/usr/lib64/openjfx-11/lib"
FXLIBS="\$FXLIB_PATH/javafx.base.jar:\$FXLIB_PATH/javafx.controls.jar:\
\$FXLIB_PATH/javafx.graphics.jar:\
/opt/${MY_PN}/recaf.jar"
java -cp \$FXLIBS me.coley.recaf.Recaf "--noupdate" "\$@"
EOF
}
pkg_postinst() {
if ! use system-openjfx; then
einfo "The tool is installed without system-openjfx use flag"
einfo "It will download openjfx during runtime into a home diretory"
fi
}