mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
commit
23850ff540
1 changed files with 12 additions and 5 deletions
|
|
@ -1,10 +1,11 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PN="recaf"
|
||||
JAVA_SLOT=21
|
||||
JFX_SLOT=11
|
||||
|
||||
DESCRIPTION="A modern Java bytecode editor"
|
||||
HOMEPAGE="https://col-e.github.io/Recaf/"
|
||||
|
|
@ -16,7 +17,9 @@ SLOT="0"
|
|||
KEYWORDS="~amd64"
|
||||
IUSE="system-openjfx"
|
||||
|
||||
RDEPEND="system-openjfx? ( dev-java/openjfx-bin:${JAVA_SLOT} )
|
||||
RDEPEND="
|
||||
system-openjfx? ( dev-java/openjfx:${JFX_SLOT} )
|
||||
!system-openjfx? ( dev-java/openjfx-bin:${JAVA_SLOT} )
|
||||
dev-java/openjdk-bin:${JAVA_SLOT}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
|
|
@ -29,11 +32,15 @@ src_install() {
|
|||
insinto "/opt/${MY_PN}/"
|
||||
doins "${MY_PN}.jar"
|
||||
|
||||
# FXLIB_PATH="/usr/lib64/openjfx-11/lib"
|
||||
if use system-openjfx; then
|
||||
FXLIB_PATH="/usr/lib64/openjfx-${JFX_SLOT}/lib"
|
||||
else
|
||||
FXLIB_PATH="/usr/share/openjfx-bin-${JAVA_SLOT}/lib"
|
||||
fi
|
||||
|
||||
newbin - ${MY_PN} <<-EOF
|
||||
#!/bin/sh
|
||||
FXLIB_PATH="/usr/share/openjfx-bin-${JAVA_SLOT}/lib"
|
||||
|
||||
FXLIB_PATH=${FXLIB_PATH}
|
||||
FXLIBS="\$FXLIB_PATH/javafx.base.jar:\$FXLIB_PATH/javafx.controls.jar:\
|
||||
\$FXLIB_PATH/javafx.graphics.jar:\
|
||||
/opt/${MY_PN}/recaf.jar"
|
||||
|
|
|
|||
Loading…
Reference in a new issue