From 574c7c9d9f699d7f5b8065fe67754a8a1b64f435 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 9 Jun 2024 12:38:36 +0100 Subject: games-rpg/comi: EAPI 8 Admittedly untested, but other similar packages seem fine. Signed-off-by: James Le Cuirot --- games-rpg/comi/comi-1-r1.ebuild | 68 +++++++++++++++++++++++++++++++++++++++++ games-rpg/comi/comi-1.ebuild | 68 ----------------------------------------- 2 files changed, 68 insertions(+), 68 deletions(-) create mode 100644 games-rpg/comi/comi-1-r1.ebuild delete mode 100644 games-rpg/comi/comi-1.ebuild (limited to 'games-rpg') diff --git a/games-rpg/comi/comi-1-r1.ebuild b/games-rpg/comi/comi-1-r1.ebuild new file mode 100644 index 000000000000..88c20642fb15 --- /dev/null +++ b/games-rpg/comi/comi-1-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cdrom estack desktop wrapper xdg + +DESCRIPTION="The Curse of Monkey Island, the third game in the series" +HOMEPAGE="https://en.wikipedia.org/wiki/The_Curse_of_Monkey_Island" +SRC_URI="https://dev.gentoo.org/~chewi/distfiles/${PN}.jpg" + +LICENSE="comi" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" +RESTRICT="bindist" + +RDEPEND=">=games-engines/scummvm-0.4.0" + +S="${WORKDIR}" + +dotar() { + cd "${CDROM_ABSMATCH%/*}" || die + eshopts_push -s nocaseglob nullglob + + # Lowercase + # Documentation into doc + # Remainder into data + # Avoid copying files twice + + tar c \ + --mode=u+w \ + --ignore-case \ + --xform='s:^[^a-z]+$:\L\0:x' \ + --xform='s:.*:data/\0:x' \ + --xform='s:.*\.(pdf|txt)$:doc/\0:x' \ + --xform='s:^doc/data/:doc/:x' \ + --exclude="$(use doc || echo '*.pdf')" \ + --exclude-from=<(find "${WORKDIR}"/data -type f -printf "%P\n" 2>/dev/null) \ + *.{txt,pdf} *.la[0-9] resource*/ \ + | tar x -C "${WORKDIR}" + + assert "tar failed" + eshopts_pop + + # Don't prevent CD ejection. + cd "${WORKDIR}" || die +} + +src_unpack() { + cdrom_get_cds comi.la1 comi.la2 + dotar + + cdrom_load_next_cd + dotar +} + +src_install() { + insinto /usr/share/games/scummvm/games/comi + doins -r data/* + + # Documentation may be missing. + [[ -d doc ]] && dodoc doc/* + + doicon "${DISTDIR}"/${PN}.jpg + make_wrapper ${PN} "scummvm comi" + make_desktop_entry ${PN} "The Curse of Monkey Island" ${PN}.jpg +} diff --git a/games-rpg/comi/comi-1.ebuild b/games-rpg/comi/comi-1.ebuild deleted file mode 100644 index 010c9faf988d..000000000000 --- a/games-rpg/comi/comi-1.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cdrom estack desktop wrapper xdg - -DESCRIPTION="The Curse of Monkey Island, the third game in the series" -HOMEPAGE="https://en.wikipedia.org/wiki/The_Curse_of_Monkey_Island" -SRC_URI="https://dev.gentoo.org/~chewi/distfiles/${PN}.jpg" - -LICENSE="comi" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc" -RESTRICT="bindist" - -RDEPEND=">=games-engines/scummvm-0.4.0" - -S="${WORKDIR}" - -dotar() { - cd "${CDROM_ABSMATCH%/*}" || die - eshopts_push -s nocaseglob nullglob - - # Lowercase - # Documentation into doc - # Remainder into data - # Avoid copying files twice - - tar c \ - --mode=u+w \ - --ignore-case \ - --xform='s:^[^a-z]+$:\L\0:x' \ - --xform='s:.*:data/\0:x' \ - --xform='s:.*\.(pdf|txt)$:doc/\0:x' \ - --xform='s:^doc/data/:doc/:x' \ - --exclude="$(use doc || echo '*.pdf')" \ - --exclude-from=<(find "${WORKDIR}"/data -type f -printf "%P\n" 2>/dev/null) \ - *.{txt,pdf} *.la[0-9] resource*/ \ - | tar x -C "${WORKDIR}" - - assert "tar failed" - eshopts_pop - - # Don't prevent CD ejection. - cd "${WORKDIR}" || die -} - -src_unpack() { - cdrom_get_cds comi.la1 comi.la2 - dotar - - cdrom_load_next_cd - dotar -} - -src_install() { - insinto /usr/share/games/scummvm/games/comi - doins -r data/* - - # Documentation may be missing. - [[ -d doc ]] && dodoc doc/* - - doicon "${DISTDIR}"/${PN}.jpg - make_wrapper ${PN} "scummvm comi" - make_desktop_entry ${PN} "The Curse of Monkey Island" ${PN}.jpg -} -- cgit v1.2.3-65-gdbad