mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-28 09:40:59 +02:00
recaf-bin-2.13.2.ebuild
This commit is contained in:
parent
de549091ee
commit
72f212f88a
2 changed files with 51 additions and 0 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST recaf-bin-2.13.2.jar 27318313 BLAKE2B 2fd106e61a0eb4efbc4b26658acf2b272fb83917ee5ca13ff87f1736e22f8f42a133f1ec66547bf9e75d5d5a2e00a1c5b9fc97adb334689b8b02cde136eda64d SHA512 5115335364454a42c09c41e2ca250f5ee7e2bce508af1a97f3ad9ba72ecadc3666c7f974f72db929d3b5597f75fde7ae088ebc4dbd4a505f6a9109e85f159dad
|
||||
DIST recaf-bin-2.5.0.jar 25775952 BLAKE2B 715fad96915f4d228b4b5b1dd06e991e7feec9c749491ee75f3890d5628fe581fbc3123398eb34046d7b6489fd1028da9243cd06656323bacfc39c5ee3ddc5f3 SHA512 2347ab4872be7ed86c2c431c9b74585d34656cc0f4d4b015b8b1e9a95882d67e16e1296a2d3494f899bc4d1845a75c263eeff839ba79ae65d0b110b0ba0f9da8
|
||||
|
|
|
|||
50
dev-util/recaf-bin/recaf-bin-2.13.2.ebuild
Normal file
50
dev-util/recaf-bin/recaf-bin-2.13.2.ebuild
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# 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
|
||||
}
|
||||
Loading…
Reference in a new issue