diff options
Diffstat (limited to 'games-action/solar2')
-rw-r--r-- | games-action/solar2/Manifest | 2 | ||||
-rw-r--r-- | games-action/solar2/metadata.xml | 11 | ||||
-rw-r--r-- | games-action/solar2/solar2-1.10.ebuild | 106 |
3 files changed, 119 insertions, 0 deletions
diff --git a/games-action/solar2/Manifest b/games-action/solar2/Manifest new file mode 100644 index 000000000000..00928ef42962 --- /dev/null +++ b/games-action/solar2/Manifest @@ -0,0 +1,2 @@ +DIST solar2-linux-1.10.tar.gz 106202569 SHA256 33211605946741db730082478c4a408547a89facfc2e3535b124c6706809d8b2 SHA512 68475cfe9220a1f19608cd2dfb575979e231dcf1bc61e12230db5a39856a03afceeb8c3f2b0ea6d958b36a53945bdb2768261f2b0bcc50a88f2b3eeddc48df9d WHIRLPOOL 86d0ed2c7a28e498323949e871f7ba8f1714f39f98ab625f6dddb0249af7c1e653264ebc4b76cc9be5579f99395e2c578363effcd2c97bb27690b05ec4e73a4e +DIST solar2.png 6478 SHA256 ab62168651de322dc68a9094baf1ba92524d2d9e76b1650eef60527cd7e3f611 SHA512 b1110d19d62274ac90391f9611fc8efaa1c2ca70cf62f146969768ed2dd76e013054b1a9dfdb123b56536f5ba7788971747219485811eeb6652f22e0867348d9 WHIRLPOOL 358a3fb56c13710abf4ac3115c968579c787ed67f4c8672e0236ce379a56d6540f8c5ad6f8ca16370c0b080ae2763ec2256cbcd1ff2bb0765a7dc5164fc39972 diff --git a/games-action/solar2/metadata.xml b/games-action/solar2/metadata.xml new file mode 100644 index 000000000000..d13413d31d91 --- /dev/null +++ b/games-action/solar2/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name='bundled-libs'> + Use the upstream provided bundled libraries. + </flag> + </use> +</pkgmetadata> + diff --git a/games-action/solar2/solar2-1.10.ebuild b/games-action/solar2/solar2-1.10.ebuild new file mode 100644 index 000000000000..8936a03a9fca --- /dev/null +++ b/games-action/solar2/solar2-1.10.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO: - unbundle libmono for 64bit +# - unbundling libSDL_mixer breaks the game +# - provide icon +# - test useflags for libsdl on x86 + +EAPI=5 + +inherit eutils gnome2-utils games + +DESCRIPTION="An open-world, sandbox game set in an infinite abstract universe" +HOMEPAGE="http://murudai.com/solar/" +GAMEBALL="${PN}-linux-${PV}.tar.gz" +ICONFILE="http://dev.gentoo.org/~hasufell/distfiles/${PN}.png" +SRC_URI="${GAMEBALL} ${ICONFILE}" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="bundled-libs" +RESTRICT="bindist fetch splitdebug" + +MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/lib/* + ${MYGAMEDIR#/}/Solar2.bin.x86" + +RDEPEND=" + virtual/opengl + amd64? ( + >=media-libs/flac-1.2.1-r5[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r4[X,sound,video,joystick,abi_x86_32(-)] + >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)] + >=virtual/opengl-7.0-r1[abi_x86_32(-)] + !bundled-libs? ( + >=media-libs/libmad-0.15.1b-r8[abi_x86_32(-)] + >=media-libs/openal-1.15.1[abi_x86_32(-)] + >=media-libs/sdl-mixer-1.2.12-r4[flac,mikmod,mad,mp3,vorbis,abi_x86_32(-)] + >=media-libs/libmikmod-3.2.0[abi_x86_32(-)] + ) + ) + x86? ( + media-libs/flac + media-libs/libsdl[X,sound,video,joystick] + media-libs/libvorbis + !bundled-libs? ( + dev-lang/mono + media-libs/libmad + media-libs/libmikmod + media-libs/openal + media-libs/sdl-mixer[flac,mikmod,mad,mp3,vorbis] + ) + )" + +S=${WORKDIR}/Solar2 + +pkg_nofetch() { + einfo "Please buy & download ${GAMEBALL} from:" + einfo " ${HOMEPAGE}" + einfo "Also download ${ICONFILE}" + einfo "and move both to ${DISTDIR}" + einfo +} + +src_prepare() { + # remove unused files + rm solar2.sh || die + + if ! use bundled-libs ; then + einfo "Removing bundled libs..." + if use amd64 ; then + # no mono 32bit libs on amd64 yet + rm -v lib/libmad.so* lib/libmikmod.so* lib/libopenal.so* || die + else + rm -v lib/libmad.so* lib/libmikmod.so* lib/libopenal.so* lib/libmono-2.0.so* || die + fi + fi +} + +src_install() { + insinto "${MYGAMEDIR}" + doins -r * + + games_make_wrapper ${PN} "./Solar2.bin.x86" "${MYGAMEDIR}" + make_desktop_entry ${PN} + doicon -s 64 "${DISTDIR}"/${PN}.png + + fperms +x "${MYGAMEDIR}"/Solar2.bin.x86 + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |