diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-rpg/penumbra-collection |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-rpg/penumbra-collection')
-rw-r--r-- | games-rpg/penumbra-collection/Manifest | 5 | ||||
-rw-r--r-- | games-rpg/penumbra-collection/metadata.xml | 8 | ||||
-rw-r--r-- | games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild | 193 |
3 files changed, 206 insertions, 0 deletions
diff --git a/games-rpg/penumbra-collection/Manifest b/games-rpg/penumbra-collection/Manifest new file mode 100644 index 000000000000..06573ceec671 --- /dev/null +++ b/games-rpg/penumbra-collection/Manifest @@ -0,0 +1,5 @@ +DIST PenumbraCollection-1.1.sh 949267761 SHA256 e0fdbdbb7e3766629cabd3903675a2f54f1a5206f67d590dd1553576338f3dab SHA512 9e9f604fffd4efd8ab21bdb56fb4f9dbeeee8e5375b83b88a24521a9bbb45ee7060c467aef47f06d551d51a4fdd0a51be5c5416060a87342ea281026ba24c7ae WHIRLPOOL 553034458f2d7e5584ed97ee4111a65cb789854ae1ff9ecb6651d8b66996198d9a869fa7455eaebf18ab1110973734f6f1e977d8187fb9d796407267253552d7 +EBUILD penumbra-collection-1.1.ebuild 5472 SHA256 bd33f0c485894bf371333ba36d65a0ffedbc3bcf306018df0f6279647f4f0f61 SHA512 534865e7324b4bf55d772c1ce9e17fe38e8d7114dad96049fc85064f09c1c860aef5a7e010a322cc5cea75cc17698b40f6eb8c11f4d7e19078c677e21d00f456 WHIRLPOOL 3339e53b36a07db39c0f01a18b4dfd716c4068c5d76ab34d8073d7956691a5937ace0168701214c71c107621b30513364b000f26daead62088d89ef9c05c4301 +MISC ChangeLog 2853 SHA256 8f175c43965dc642291c92a34ecbc7069e419d538077994e323a3a0c0ee8447a SHA512 125fef90a7d1eaf313aaee6ef1311aab6f71d2e37ff16dc316952b38742e9bccb8e98b18096371582ca946f12e7fa639a992d57020626253bd1ccb91d0c394a9 WHIRLPOOL 0b89509c6c4083266f8434570a1ad6d434c92af979ea9bab02c77a0397545725d48354d40c41581b763e4c87e13e683bbd4e0c4c2b88a23ad35bea505f2bf60b +MISC ChangeLog-2015 1578 SHA256 08bec5faf4653f559981215d792ed811279afd393d94b71a9fdc878c8998f066 SHA512 a976fa461b8421ef1f557a8b6a3a28053dcf39854a73ccc5959dc7cc716879daa2af02a0d7dbd03f59b05a4f5b48f59a281c0d623f6b5e72992f250d92ec8c8c WHIRLPOOL d1ea2b1b8a65015ee306ca39f033d4beb08df8af9eacd847297117019c72f63750e3e0571d7c2c1355b431c858edb155ae2f49b4a66d763be3e1a75d8c826fa9 +MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854 diff --git a/games-rpg/penumbra-collection/metadata.xml b/games-rpg/penumbra-collection/metadata.xml new file mode 100644 index 000000000000..26079e608bed --- /dev/null +++ b/games-rpg/penumbra-collection/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> diff --git a/games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild b/games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild new file mode 100644 index 000000000000..642d9b4d44ed --- /dev/null +++ b/games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild @@ -0,0 +1,193 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker gnome2-utils games + +MY_PN="PenumbraCollection" + +DESCRIPTION="Scary first-person adventure game trilogy which focuses on story, immersion and puzzles" +HOMEPAGE="http://www.penumbragame.com/" +SRC_URI="${MY_PN}-${PV}.sh" + +LICENSE="PENUMBRA-COLLECTION" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="fetch" + +RDEPEND=" + x11-libs/fltk:1 + media-gfx/nvidia-cg-toolkit[abi_x86_32(-)] + >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] + >=media-libs/freealut-1.1.0-r3[abi_x86_32(-)] + >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] + >=media-libs/libogg-1.3.1[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r5[X,sound,video,opengl,abi_x86_32(-)] + >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)] + >=media-libs/sdl-image-1.2.12-r1[gif,jpeg,png,abi_x86_32(-)] + >=media-libs/sdl-ttf-2.0.11-r1[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libXft[abi_x86_32(-)] + x11-libs/libXrender[abi_x86_32(-)]" +DEPEND="app-arch/xz-utils" + +gamedir=${GAMES_PREFIX_OPT}/${MY_PN} +INSTALL_KEY_FILE=${gamedir}/collectionkey + +QA_PREBUILT="${gamedir}/Overture/penumbra.bin + ${gamedir}/BlackPlague/requiem.bin + ${gamedir}/BlackPlague/blackplague.bin" + +if [[ $ARCH == amd64 ]] ; then + QA_PREBUILT="${QA_PREBUILT} + ${gamedir}/BlackPlague/lib/libfltk.so.1.1 + ${gamedir}/BlackPlague/lib/libCgGL.so + ${gamedir}/BlackPlague/lib/libCg.so + ${gamedir}/Overture/lib/libfltk.so.1.1 + ${gamedir}/Overture/lib/libCgGL.so + ${gamedir}/Overture/lib/libCg.so" +fi + +S=${WORKDIR}/${MY_PN} + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" + einfo +} + +src_unpack() { + unpack_makeself + + mv subarch subarch.tar.lzma || die + unpack ./subarch.tar.lzma + + mv instarchive_all instarchive_all.tar.lzma || die + unpack ./instarchive_all.tar.lzma +} + +src_install() { + local destDir episodeDir library directory + # perform instalation for each episode; note that Requiem is extension of + # Black Plague so it has no dedicated directory at this level + for episodeDir in Overture BlackPlague; do + destDir="${gamedir}/${episodeDir}" + + insinto "${destDir}" + + # install every directory recursively except lib + for directory in \ + $(find ${episodeDir}/* -maxdepth 0 -type d ! -name lib); do + doins -r "${directory}" + done + + # amd64 does not provide some libs, use bundled ones + if use amd64 ; then + exeinto "${gamedir}/${episodeDir}/lib" + for library in \ + libfltk.so.1.1 \ + libCgGL.so \ + libCg.so; do + doexe ${episodeDir}/lib/${library} + done + fi + + doins ${episodeDir}/*.cfg + + exeinto "${destDir}" + doexe ${episodeDir}/openurl.sh ${episodeDir}/*.bin + + # make sure that cache files are newer than models otherwise the game + # tries to regenerate them which sometimes causes a crash (as reported + # in bug #278326 comment #6) + touch "${D}/${destDir}"/core/*cache/* + done + + newicon -s 64 Overture/penumbra.png penumbra-overture.png + newicon -s 64 BlackPlague/penumbra.png penumbra-blackplague.png + newicon -s 64 BlackPlague/requiem.png penumbra-requiem.png + + games_make_wrapper penumbra-overture ./penumbra.bin \ + "${gamedir}/Overture" "${gamedir}/Overture/lib" + games_make_wrapper penumbra-blackplague ./blackplague.bin \ + "${gamedir}/BlackPlague" "${gamedir}/BlackPlague/lib" + games_make_wrapper penumbra-requiem ./requiem.bin \ + "${gamedir}/BlackPlague" "${gamedir}/BlackPlague/lib" + + make_desktop_entry penumbra-overture "Penumbra: Overture" \ + penumbra-overture + make_desktop_entry penumbra-blackplague "Penumbra: Black Plague" \ + penumbra-blackplague + make_desktop_entry penumbra-requiem "Penumbra: Requiem" \ + penumbra-requiem + + docinto Overture + dodoc Overture/CHANGELOG.txt Overture/Manual.pdf Overture/README.linux + docinto BlackPlague + dodoc BlackPlague/Manual.pdf BlackPlague/README.linux + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + + if [[ -f "${INSTALL_KEY_FILE}" ]] ; then + einfo "The installation key file already exists: ${INSTALL_KEY_FILE}" + else + ewarn "You MUST run this before playing the game:" + ewarn " emerge --config ${PN}" + ewarn "To enter your installation key." + fi +} + +pkg_postrm() { + gnome2_icon_cache_update + einfo "If you uninstalled ${PN} you might want to remove the keyfile as well in" + einfo " ${INSTALL_KEY_FILE}" +} + +pkg_config() { + local key1 key2 + + ewarn "Your installation key is NOT checked for validity here." + ewarn "Make sure you type it in correctly." + ewarn "If you CTRL+C out of this, the game will not run!" + echo + einfo "The key format is: XXXX-XXXX-XXXX-XXXX" + while true ; do + einfo "Please enter your key:" + read key1 + if [[ -z "${key1}" ]] ; then + echo "You entered a blank key. Try again." + continue + fi + einfo "Please re-enter your key:" + read key2 + if [[ -z "${key2}" ]] ; then + echo "You entered a blank key. Try again." + continue + fi + + if [[ "${key1}" == "${key2}" ]] ; then + echo "${key1}" | tr '[:lower:]' '[:upper:]' > "${INSTALL_KEY_FILE}" + echo -e "// Do not give this file to ANYONE.\n// Frictional Games Support will NEVER ask for this file" \ + >> "${INSTALL_KEY_FILE}" + einfo "Created ${INSTALL_KEY_FILE}" + break + else + eerror "Your installation key entries do not match. Try again." + fi + done +} |