summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-01-12 21:26:31 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-01-12 21:26:31 +0000
commit69f929dcd4f62d76d650a6616de325d89481e4e1 (patch)
treeccb4081538d0805ced0367e2bc142486f42d3489 /games-rpg
parentarm stable, bug #492130 (diff)
downloadgentoo-2-69f929dcd4f62d76d650a6616de325d89481e4e1.tar.gz
gentoo-2-69f929dcd4f62d76d650a6616de325d89481e4e1.tar.bz2
gentoo-2-69f929dcd4f62d76d650a6616de325d89481e4e1.zip
initial import
(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/to-the-moon/ChangeLog10
-rw-r--r--games-rpg/to-the-moon/Manifest4
-rw-r--r--games-rpg/to-the-moon/metadata.xml12
-rw-r--r--games-rpg/to-the-moon/to-the-moon-0.ebuild97
4 files changed, 123 insertions, 0 deletions
diff --git a/games-rpg/to-the-moon/ChangeLog b/games-rpg/to-the-moon/ChangeLog
new file mode 100644
index 000000000000..f32190152c7b
--- /dev/null
+++ b/games-rpg/to-the-moon/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-rpg/to-the-moon
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/to-the-moon/ChangeLog,v 1.1 2014/01/12 21:26:31 hasufell Exp $
+
+*to-the-moon-0 (12 Jan 2014)
+
+ 12 Jan 2014; Julian Ospald <hasufell@gentoo.org> +to-the-moon-0.ebuild,
+ +metadata.xml:
+ initial import
+
diff --git a/games-rpg/to-the-moon/Manifest b/games-rpg/to-the-moon/Manifest
new file mode 100644
index 000000000000..ca37849873c7
--- /dev/null
+++ b/games-rpg/to-the-moon/Manifest
@@ -0,0 +1,4 @@
+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
+MISC metadata.xml 326 SHA256 1613682a41738f66451edf0f353a4626274c2f2f3302470948a8d21edc7f0dfc SHA512 6ef7886b749fc900d7d5affe2987630c4157e98c6323be7ddcfaa2e94f5622094922049d04f4dff0514b07d352da6ab756ee653935a05675f912997e747ea4e7 WHIRLPOOL a7224e5bdcb0656b6417c2f42855f2cb1992c38baba1620919b2c5ec9bbcb2348373d9abdf3f7a6c4f215c9b5caeed7a777d50e9aac6d7cfd0449e7e2f3fef0b
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
+}