From 7db080109a663167c94118644244fc5712ce9d00 Mon Sep 17 00:00:00 2001 From: "Volkmar W. Pogatzki" Date: Sun, 5 May 2024 07:54:22 +0200 Subject: games-board/domination: drop unneeded dependencies, update EAPI 7 -> 8 Closes: https://bugs.gentoo.org/881843 Signed-off-by: Volkmar W. Pogatzki Closes: https://github.com/gentoo/gentoo/pull/36555 Signed-off-by: James Le Cuirot --- .../domination/domination-1.1.1.6-r2.ebuild | 45 ---------------------- .../domination/domination-1.1.1.6-r3.ebuild | 35 +++++++++++++++++ 2 files changed, 35 insertions(+), 45 deletions(-) delete mode 100644 games-board/domination/domination-1.1.1.6-r2.ebuild create mode 100644 games-board/domination/domination-1.1.1.6-r3.ebuild (limited to 'games-board') diff --git a/games-board/domination/domination-1.1.1.6-r2.ebuild b/games-board/domination/domination-1.1.1.6-r2.ebuild deleted file mode 100644 index 4bb6f973b28e..000000000000 --- a/games-board/domination/domination-1.1.1.6-r2.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -EANT_BUILD_TARGET="game" -inherit desktop java-pkg-2 java-ant-2 - -DESCRIPTION="The well-known board game, written in java" -HOMEPAGE="https://domination.sourceforge.net" -SRC_URI="https://downloads.sourceforge.net/domination/Domination_${PV}.zip" -S="${WORKDIR}"/Domination - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=">=virtual/jre-1.8:*" -DEPEND=">=virtual/jdk-1.8:*" -BDEPEND="app-arch/unzip" - -pkg_setup() { - java-pkg-2_pkg_setup -} - -src_compile() { - java-pkg-2_src_compile -} - -src_install() { - newbin "${S}"/FlashGUI.sh ${PN} - sed -i \ - -e "s|cd.*|cd \"/usr/share\"/${PN}|" \ - "${ED}"/usr/bin/${PN} \ - || die - chmod +x "${ED}"/usr/bin/${PN} || die - - insinto /usr/share/${PN} - doins -r "${S}"/* - rm -f "${ED}"/usr/share/${PN}/*.cmd || die - java-pkg_regjar "${ED}"/usr/share/${PN}/*.jar - - newicon resources/icon.png ${PN}.png - make_desktop_entry ${PN} "Domination" -} diff --git a/games-board/domination/domination-1.1.1.6-r3.ebuild b/games-board/domination/domination-1.1.1.6-r3.ebuild new file mode 100644 index 000000000000..fb08295a1aec --- /dev/null +++ b/games-board/domination/domination-1.1.1.6-r3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop java-pkg-2 + +DESCRIPTION="The well-known board game, written in java" +HOMEPAGE="https://domination.sourceforge.io/" +SRC_URI="https://downloads.sourceforge.net/project/domination/Domination/${PV}/Domination_${PV}.zip" +S="${WORKDIR}"/Domination + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="app-arch/unzip" +RDEPEND=">=virtual/jre-1.8:*" + +src_install() { + newbin "${S}"/FlashGUI.sh ${PN} + sed -i \ + -e "s|cd.*|cd \"/usr/share\"/${PN}|" \ + "${ED}"/usr/bin/${PN} \ + || die + chmod +x "${ED}"/usr/bin/${PN} || die + + insinto /usr/share/${PN} + doins -r "${S}"/* + rm -f "${ED}"/usr/share/${PN}/*.cmd || die + java-pkg_regjar "${ED}"/usr/share/${PN}/*.jar + + newicon resources/icon.png ${PN}.png + make_desktop_entry ${PN} "Domination" +} -- cgit v1.2.3-65-gdbad