diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-21 21:55:36 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-21 21:55:36 +0000 |
commit | 8d083c12155e4356b188e9f46c930654495aab66 (patch) | |
tree | 31aa5c00da15464912155e71570b254056e05978 /games-action | |
parent | mask games-action/solar2 for hardened-multilib (diff) | |
download | gentoo-2-8d083c12155e4356b188e9f46c930654495aab66.tar.gz gentoo-2-8d083c12155e4356b188e9f46c930654495aab66.tar.bz2 gentoo-2-8d083c12155e4356b188e9f46c930654495aab66.zip |
initial import
(Portage version: 2.2.0_alpha168/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-action')
-rw-r--r-- | games-action/solar2/ChangeLog | 10 | ||||
-rw-r--r-- | games-action/solar2/Manifest | 5 | ||||
-rw-r--r-- | games-action/solar2/metadata.xml | 15 | ||||
-rw-r--r-- | games-action/solar2/solar2-1.10.ebuild | 106 |
4 files changed, 136 insertions, 0 deletions
diff --git a/games-action/solar2/ChangeLog b/games-action/solar2/ChangeLog new file mode 100644 index 000000000000..d8ff09b77a58 --- /dev/null +++ b/games-action/solar2/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-action/solar2 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/solar2/ChangeLog,v 1.1 2013/03/21 21:55:36 hasufell Exp $ + +*solar2-1.10 (21 Mar 2013) + + 21 Mar 2013; Julian Ospald <hasufell@gentoo.org> +solar2-1.10.ebuild, + +metadata.xml: + initial import + diff --git a/games-action/solar2/Manifest b/games-action/solar2/Manifest new file mode 100644 index 000000000000..4ad40cced6ab --- /dev/null +++ b/games-action/solar2/Manifest @@ -0,0 +1,5 @@ +DIST solar2-linux-1.10.tar.gz 106202569 SHA256 33211605946741db730082478c4a408547a89facfc2e3535b124c6706809d8b2 SHA512 68475cfe9220a1f19608cd2dfb575979e231dcf1bc61e12230db5a39856a03afceeb8c3f2b0ea6d958b36a53945bdb2768261f2b0bcc50a88f2b3eeddc48df9d WHIRLPOOL 86d0ed2c7a28e498323949e871f7ba8f1714f39f98ab625f6dddb0249af7c1e653264ebc4b76cc9be5579f99395e2c578363effcd2c97bb27690b05ec4e73a4e +DIST solar2.png 6478 SHA256 ab62168651de322dc68a9094baf1ba92524d2d9e76b1650eef60527cd7e3f611 SHA512 b1110d19d62274ac90391f9611fc8efaa1c2ca70cf62f146969768ed2dd76e013054b1a9dfdb123b56536f5ba7788971747219485811eeb6652f22e0867348d9 WHIRLPOOL 358a3fb56c13710abf4ac3115c968579c787ed67f4c8672e0236ce379a56d6540f8c5ad6f8ca16370c0b080ae2763ec2256cbcd1ff2bb0765a7dc5164fc39972 +EBUILD solar2-1.10.ebuild 2356 SHA256 a846596097857987b2192a399941e20437a657c1d17f296e22d8d6f372e9d4f8 SHA512 54619a90ca4bc61ae335490159e753fb8bd7e0a1b7d2be7c86ed5fbf10b679c15b39c62da062466a74b4797a29437cac030e813bdd5819aa24a05ac67afbda0f WHIRLPOOL 49d793190d8f4cc713e950942e60fa6d585feaf62bbf509002be1d34123a5e2692f5352ddc490155b08ed6f9d5f4ac33397b27467e40d5378dcf874028e7bd92 +MISC ChangeLog 255 SHA256 536823cac7c11508e890908ebbf47f7cacd8339d97f06866f72fe2156a72e0a3 SHA512 6d4df7a5faf4c6d23a6c5969a7cef292624fe87aaa3b08648634ac007f624adceec27cbb926d8a60acde7a9231bdd6f5f4bb0c711295a7664b188c9056a2b377 WHIRLPOOL adecadd05862db987cf976578984fdab5b75854c1390667fe08d581afc0c4fcb9c7f8383c1f470284b0c402e8c5dd0183a7dd02d113dcdebf81c9a223b036941 +MISC metadata.xml 357 SHA256 edcc7199ab480ee354907b48f6b4d582a64e82fa5160973b671106f08b153145 SHA512 73094df9982a4b60d3faba468322c1450aa515acc405f3deff1ce29307c1dfb301a66e09586df2ae39cc8262020e6b6f6141372cb9baaf8787910593582a5013 WHIRLPOOL 19503a292e1bb54ac364a724f1a8f785a54439daaeb2c609041759a0f8447e11c38afb754fe617909c68406c0325a0fffbe19ae20a617e1bcedf10d77cb59ef2 diff --git a/games-action/solar2/metadata.xml b/games-action/solar2/metadata.xml new file mode 100644 index 000000000000..d647e74d87ea --- /dev/null +++ b/games-action/solar2/metadata.xml @@ -0,0 +1,15 @@ +<?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 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..183c41db63f8 --- /dev/null +++ b/games-action/solar2/solar2-1.10.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/solar2/solar2-1.10.ebuild,v 1.1 2013/03/21 21:55:36 hasufell Exp $ + +# 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" + +MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/lib/* + ${MYGAMEDIR#/}/Solar2.bin.x86" + +RDEPEND=" + virtual/opengl + amd64? ( + app-emulation/emul-linux-x86-medialibs + app-emulation/emul-linux-x86-sdl + app-emulation/emul-linux-x86-soundlibs + ) + x86? ( + media-libs/flac + media-libs/libsdl[X,audio,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_pretend() { + if has splitdebug ${FEATURES}; then + eerror "FEATURES=splitdebug is broken for this package, disable it locally" + die "FEATURES=splitdebug is broken for this package, disable it locally" + fi +} + +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.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 +} |