summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-01-12 21:26:35 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-01-12 21:26:35 +0000
commit5314bd357b6412b2d3d8c7eb057a8c6ae2bce329 (patch)
tree8058d232cdb39c27498df6aec72fa5895ecc95dd /games-rpg
parentinitial import (diff)
downloadhistorical-5314bd357b6412b2d3d8c7eb057a8c6ae2bce329.tar.gz
historical-5314bd357b6412b2d3d8c7eb057a8c6ae2bce329.tar.bz2
historical-5314bd357b6412b2d3d8c7eb057a8c6ae2bce329.zip
initial import
Package-Manager: portage-2.2.8/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/to-the-moon/Manifest18
-rw-r--r--games-rpg/to-the-moon/metadata.xml12
-rw-r--r--games-rpg/to-the-moon/to-the-moon-0.ebuild97
3 files changed, 125 insertions, 2 deletions
diff --git a/games-rpg/to-the-moon/Manifest b/games-rpg/to-the-moon/Manifest
index ca37849873c7..a91845213a5d 100644
--- a/games-rpg/to-the-moon/Manifest
+++ b/games-rpg/to-the-moon/Manifest
@@ -1,4 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
DIST ToTheMoon_linux_1389114090.sh 75823678 SHA256 8272e4693dcf553f4285de4c46e89e1e2e4d5a59a088396b7ea188f935407970 SHA512 bed844f143ef9c3ff8fe93da186422e84d259229874c331315d8f1c7538fd6c417d6ca1aeecbe6c2a664fad98aff51f4723227d0ef07612acf29f86313f9aa1a WHIRLPOOL a3ebaed2e50636d2692ba1b893001cdb327c650d2b5336e928c6f6b74d3a382ed1c392b748e61d7037aa08f4029a524b5b83933f77da57177a9e1bc968385087
-EBUILD to-the-moon-0.ebuild 2540 SHA256 596311d2c8a3fcd0e5bc818a111f504c7546d7e0773dc00013eb5f87402ec880 SHA512 2de05c9f9a891ef4c5eefe12af5bde899f409aa01b712d0c991a139d5aacf2471776ef2a36977133d51f6ff52b18a557e7d8bdf25aea310e9d6221f01c295808 WHIRLPOOL 6ae23d6ac1e88b9f91cf93acebf2bf3af4bdb17466d821b6fbb74db8fb928f4cbc8944b3092a57340633e8897a3192d286f8ad200951c4fbf87619b9fb3c6d3f
-MISC ChangeLog 261 SHA256 97016ced1b55f6e94846c26823c8dbd6a6077baee2721026e25f4b27b967fb3d SHA512 c2d74773dc3626056cfeb6ebf7c58e3e168cc5fa9bb081c1b12de49304c5d8a070090e46b9405a7a9b0471827f18d4ba9024d53dbf37233d92a3bf55745e2403 WHIRLPOOL 8e9d573d36ee2cdb01835a1b739d22639314efa7a8b8078689351e6db8fb8ad9a1d7f020679ae591c8b11cb15c1d83f3d4e19ea04799a63572e50b59fba20428
+EBUILD to-the-moon-0.ebuild 2646 SHA256 894f90bf4c84b4f79d9aaeb5793f0e9b61eb5060fe892f2c3d31823740cbe062 SHA512 4bfdbc18fdba0da72277976f48083c8d19785db352469acc60d272779bb727b4b77b76aa9b704d18e855aefc33ba88419baae4a3425864b3920f953f10e224b8 WHIRLPOOL d70a45bf166060f741aa0ae2ce0c9408e882d4695a14b5ca54fe7f8a9f81684ffb8b94a5ae45f7f04d20514f5b624b792e12e246e0466669f7b379ad1529ea01
+MISC ChangeLog 356 SHA256 c9bbdce3ea78d81c7553fd6e167647966f2b3a0dbb3b9f27a49800b4c4a18048 SHA512 a9d80fcfaabf2dfa06283a97010b4abf41bce8d42ffc2e0aafb629a28988634c7b15e52e445a717a37ee726926eb14239e1884f8d937bd3f0b088a2cce35b3d7 WHIRLPOOL c9036549f4b29f4976afd44f5c936d70522d9205c8f892cea35aebf3ebe1b7dc9b778d9e3ca926cda88980316d5d9b9a06627401bcee7e6f6e833ce06b2fb709
MISC metadata.xml 326 SHA256 1613682a41738f66451edf0f353a4626274c2f2f3302470948a8d21edc7f0dfc SHA512 6ef7886b749fc900d7d5affe2987630c4157e98c6323be7ddcfaa2e94f5622094922049d04f4dff0514b07d352da6ab756ee653935a05675f912997e747ea4e7 WHIRLPOOL a7224e5bdcb0656b6417c2f42855f2cb1992c38baba1620919b2c5ec9bbcb2348373d9abdf3f7a6c4f215c9b5caeed7a777d50e9aac6d7cfd0449e7e2f3fef0b
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.22 (GNU/Linux)
+
+iQEcBAEBCAAGBQJS0wiMAAoJEFpvPKfnPDWz2tgH/2Jlv41xASO9ao9wt/G+TGf1
+McT3Uws+IbD4e8+p9Sx4StIZCZsWa/3d2oDv90Pujdg5qSQe9cV/0rs29mhYV323
+pD4cdOUfkzueVhGfnnlqeqb6jDfqJ5CSxTX1aMgc+hjZDR4tG56MhK1zmBQwufz2
+rK7Mt0SiPkeLijTWScv3MvG4QqeCzwaJa1h4ipSwpshTH0rlbOMl5MZdnwQUB4xh
+xDTkgFvYUIIXSvyv24R3uwcfQu0ZABffBw3RcO01mMo5vLpBTdpQnfVAOoMtDGRu
+6PIi+tyQjrkw7fjYo9wDn8nGho1/hlSZ2SkSBVFM+4RASppnlZAPaJpUxOlkqO0=
+=0Zt+
+-----END PGP SIGNATURE-----
diff --git a/games-rpg/to-the-moon/metadata.xml b/games-rpg/to-the-moon/metadata.xml
new file mode 100644
index 000000000000..ef31c088e796
--- /dev/null
+++ b/games-rpg/to-the-moon/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <use>
+ <flag name='bundled-libs'>Use bundled libraries</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/to-the-moon/to-the-moon-0.ebuild b/games-rpg/to-the-moon/to-the-moon-0.ebuild
new file mode 100644
index 000000000000..a0fd0b895e20
--- /dev/null
+++ b/games-rpg/to-the-moon/to-the-moon-0.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/to-the-moon/to-the-moon-0.ebuild,v 1.1 2014/01/12 21:26:31 hasufell Exp $
+
+# TODO: unbundling sdl-sound breaks the game
+
+EAPI=5
+
+inherit eutils unpacker gnome2-utils games
+
+MY_PN=ToTheMoon
+DESCRIPTION="Indie Adventure RPG, about two doctors traversing through the memories of a dying man to fulfill his last wish"
+HOMEPAGE="http://freebirdgames.com/games/to-the-moon"
+SRC_URI="${MY_PN}_linux_1389114090.sh"
+
+LICENSE="all-rights-reserved bundled-libs? ( LGPL-2 LGPL-2.1 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bundled-libs"
+RESTRICT="fetch bindist splitdebug"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${MY_PN}.bin*"
+if [[ ${ARCH} == "amd64" ]] ; then
+ QA_PREBUILT="${QA_PREBUILT} ${GAMES_PREFIX_OPT}/${PN}/lib64/*"
+else
+ QA_PREBUILT="${QA_PREBUILT} ${GAMES_PREFIX_OPT}/${PN}/lib/*"
+fi
+
+RDEPEND="
+ !bundled-libs? (
+ dev-libs/libsigc++:2
+ >=media-libs/libsdl2-2.0.1[X,audio,joystick,opengl,threads,video]
+ media-libs/openal
+ media-libs/sdl2-image[png]
+ media-libs/sdl2-ttf
+ )
+ sys-libs/zlib
+ virtual/opengl"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo
+ einfo "Please buy & download \"${SRC_URI}\" from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move/link it to \"${DISTDIR}\""
+ einfo
+}
+
+src_unpack() {
+ # mojo stuff inside makeself archive, unpack_makeself fails
+ local lastline=$(( $(grep -a -h -n -m 1 -F -e "Extra newline, because in very rare cases (OpenSolaris) stub is directly added after script" "${DISTDIR}/${A}" | cut -d':' -f1) + 1 ))
+ [[ ${lastline} ]] || die "no last line"
+ local offset=$(head -n ${lastline} "${DISTDIR}/${A}" | wc -c)
+ [[ ${offset} ]] || die "no offset"
+ dd ibs=${offset} skip=1 if="${DISTDIR}/${A}" of="${T}"/moon.zip || die
+ unpack_zip "${T}"/moon.zip
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+ local libsuffix=$(usex amd64 "64" "")
+ local arch=$(usex amd64 "x86_64" "x86")
+
+ insinto "${dir}"
+ doins -r noarch/{Audio,Data,Fonts,Graphics,Game.ini,mkxp.conf,ToTheMoon.png}
+
+ exeinto "${dir}"
+ doexe ${arch}/${MY_PN}.bin.${arch}
+
+ exeinto "${dir}/lib${libsuffix}"
+ if use bundled-libs ; then
+ doexe ${arch}/lib${libsuffix}/*
+ else
+ doexe ${arch}/lib${libsuffix}/libSDL_sound-1.0.so.1
+ fi
+
+ games_make_wrapper ${PN} "./${MY_PN}.bin.${arch}" "${dir}" "${dir}/lib${libsuffix}"
+ make_desktop_entry ${PN} "To the Moon"
+ newicon -s 32 noarch/${MY_PN}.png ${PN}.png
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}