Browse Source

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>
master
Alarig Le Lay 1 year ago
parent
commit
85c9fde19e
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
  1. 5
      games-server/minecraft-server/minecraft-server-1.17.0.ebuild

5
games-server/minecraft-server/minecraft-server-1.17.0.ebuild

@ -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
}

Loading…
Cancel
Save