diff options
author | James Le Cuirot <chewi@gentoo.org> | 2017-04-26 22:35:58 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2017-04-27 22:41:26 +0100 |
commit | a8fd61c1b8896f190a107ae4515a5604433c9108 (patch) | |
tree | e59e75c6b5f2a857f82a224143ac59347712bee5 /games-rpg/comi | |
parent | licenses: Add comi license for The Curse of Monkey Island (diff) | |
download | gentoo-a8fd61c1b8896f190a107ae4515a5604433c9108.tar.gz gentoo-a8fd61c1b8896f190a107ae4515a5604433c9108.tar.bz2 gentoo-a8fd61c1b8896f190a107ae4515a5604433c9108.zip |
games-rpg/comi: New package for The Curse of Monkey Island via ScummVM
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'games-rpg/comi')
-rw-r--r-- | games-rpg/comi/comi-1.ebuild | 66 | ||||
-rw-r--r-- | games-rpg/comi/files/comi.jpg | bin | 0 -> 5320 bytes | |||
-rw-r--r-- | games-rpg/comi/metadata.xml | 8 |
3 files changed, 74 insertions, 0 deletions
diff --git a/games-rpg/comi/comi-1.ebuild b/games-rpg/comi/comi-1.ebuild new file mode 100644 index 000000000000..f53ac11796d4 --- /dev/null +++ b/games-rpg/comi/comi-1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cdrom estack eutils xdg + +DESCRIPTION="The Curse of Monkey Island, the third game in the series" +HOMEPAGE="https://en.wikipedia.org/wiki/The_Curse_of_Monkey_Island" +LICENSE="${PN}" +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 "${FILESDIR}"/${PN}.jpg + make_wrapper ${PN} "scummvm comi" + make_desktop_entry ${PN} "The Curse of Monkey Island" ${PN}.jpg +} diff --git a/games-rpg/comi/files/comi.jpg b/games-rpg/comi/files/comi.jpg Binary files differnew file mode 100644 index 000000000000..941b4a69c893 --- /dev/null +++ b/games-rpg/comi/files/comi.jpg diff --git a/games-rpg/comi/metadata.xml b/games-rpg/comi/metadata.xml new file mode 100644 index 000000000000..26079e608bed --- /dev/null +++ b/games-rpg/comi/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> +</pkgmetadata> |