games-server/minecraft-server: Java 16 is needed

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2021-06-15 22:39:11 +02:00
parent faa2460518
commit 85c9fde19e
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC

View file

@ -19,7 +19,7 @@ RDEPEND="
acct-group/minecraft
acct-user/minecraft
app-misc/dtach
dev-java/openjdk-bin:11[gentoo-vm]
dev-java/openjdk-bin:16[gentoo-vm]
"
RESTRICT="bindist mirror"
@ -46,6 +46,7 @@ src_install() {
}
pkg_postinst() {
sed -i '$i gjl_vm="openjdk-bin-11"' "${EROOT}/usr/bin/minecraft-server"
sed -i '$i gjl_vm="openjdk-bin-16"' "${EROOT}/usr/bin/minecraft-server"
sed -i '$i GENTOO_VM="${gjl_vm}"' "${EROOT}/usr/bin/minecraft-server"
readme.gentoo_print_elog
}