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-action/solar2 |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/solar2')
-rw-r--r-- | games-action/solar2/Manifest | 6 | ||||
-rw-r--r-- | games-action/solar2/metadata.xml | 13 | ||||
-rw-r--r-- | games-action/solar2/solar2-1.10.ebuild | 105 |
3 files changed, 124 insertions, 0 deletions
diff --git a/games-action/solar2/Manifest b/games-action/solar2/Manifest new file mode 100644 index 000000000000..c0314efcc047 --- /dev/null +++ b/games-action/solar2/Manifest @@ -0,0 +1,6 @@ +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 2473 SHA256 7f4def6eeea53573179a6c37f14dd6be0b839903d2c8a64da736b227cdffd583 SHA512 12888fadce16a8efa9508f20a2df750049de7258227c0dd33dd554e57f146ce5663e3a0fe67e7879ea804e0f1b2dcc620f2f84db2a9ba54aaf6f2ca2fbd33b9e WHIRLPOOL cd2376baf0589c873dbcabb5cd52002fa503a9166b1ea7a7ed519fe71962a285948d625eb1d929d000363986fc0ff2f68fbbe68a33299d27c7701404df4ef0be +MISC ChangeLog 2841 SHA256 95b5914a8484fb2a4eda24a0dfdf00068b7881bba1dd2ef7062978ef6c23bdcf SHA512 4c3984968bedce16d865a6c10136328415925949ed68e3b8d1a9f5d9fb24724d7b05a2aa2beb3d9d6aaee6361cb22284e9f39c3a08299b1f54d865ce2bd5f9e4 WHIRLPOOL 49e9009f99aa2b25043760c50072dbfed559aa2c2ac662aaa2dcd783398a9c6482a2b32e28929ac026b978fe9a6ab7b7ae82b08f26b033a6c4c48c58cc89c90e +MISC ChangeLog-2015 1323 SHA256 3af6efda21a9db3eec4f04aae96ce0ac3978d425b0625ba9ebdc4cb6a6d27837 SHA512 cbe8f905c5a6abf81ae94974981ce971d37b80414f107926071dd396744cea8179179b95bfa3e121fde2b3be201d21bc1f494ccf4c1abd1f39b7957ba49156e6 WHIRLPOOL 5be6138ae8cce569a00158cc6016d2043676aa18349c1cfaf40689c08ec3886b68d567ed92d8e1913532d416d5f49b922f843d667b87e7ee686690fa9c2da4eb +MISC metadata.xml 355 SHA256 3fe59ecadf91cdd661b063661864ef57eb3df8d59bd55a2eb9e61dc1a75e5bd8 SHA512 78f8cc8f1f1be915da206e4b8be196a21b58a6f209023594755e481136a1b86ee31c8d0dfedd516d756a47db624e89728875b073b71c3b08ac94a5cde8ff3b83 WHIRLPOOL adc2ef67e7870008ce851a78268832c5ff50649850b2614fb66edd3a16ccbad441306f00c44000385a742552b91b4a805408b19aad2ef3b7dda9e86532703dba diff --git a/games-action/solar2/metadata.xml b/games-action/solar2/metadata.xml new file mode 100644 index 000000000000..b878aaa1812d --- /dev/null +++ b/games-action/solar2/metadata.xml @@ -0,0 +1,13 @@ +<?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> + <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..d2490df9c0c7 --- /dev/null +++ b/games-action/solar2/solar2-1.10.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# 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="https://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 +} |