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/swordandsworcery |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/swordandsworcery')
-rw-r--r-- | games-action/swordandsworcery/Manifest | 6 | ||||
-rw-r--r-- | games-action/swordandsworcery/files/swordandsworcery-wrapper | 23 | ||||
-rw-r--r-- | games-action/swordandsworcery/metadata.xml | 13 | ||||
-rw-r--r-- | games-action/swordandsworcery/swordandsworcery-1.02.ebuild | 108 |
4 files changed, 150 insertions, 0 deletions
diff --git a/games-action/swordandsworcery/Manifest b/games-action/swordandsworcery/Manifest new file mode 100644 index 000000000000..c499d1ac4bf1 --- /dev/null +++ b/games-action/swordandsworcery/Manifest @@ -0,0 +1,6 @@ +AUX swordandsworcery-wrapper 641 SHA256 c41756f783cde7a5bfc7c77cf644f49e971443149cee89353b9fbf8952866b94 SHA512 a29ff0cfadfd537129f5561fe9fa6acd88630340da49cc754f219aa125d01b8f73be7500dcc636140bbf707d73d8376b229e1897017819614fe6f4f28df1a545 WHIRLPOOL 8165d2852dbe5538a76e15c808437dbca95139ec1dc16fb47621a110df2f86dc6d93f8ec74b3adfe2f25aaacf5abefc9739d9fb371b32a38c32c5f1b0e4aab35 +DIST swordandsworcery_1.02.tar.gz 325277619 SHA256 e7be30816059d5fa0bda2378d06f51984de13a17abd835cdc015e591354f59de SHA512 1178492628e8b8196bbb57b3d4d7526d5545bd31d0da34bcbed92150753fbb768c8682f071e2a473b95f1b6ee7c3efb30ccb9fce2e3e319d76673b79617e47c0 WHIRLPOOL 9ec0365372a62b7fadfa6b68e945918a1a2ade3c5e7bae561e16251ed0bf4e76b176bfed31e30b259e9a569858d1ae0b07a83067375ca26fe2da049602a570fd +EBUILD swordandsworcery-1.02.ebuild 2651 SHA256 d781261bcc66a24617f7f9305b3b8085b9e39d468597f0212a98d0d15305932f SHA512 b2ec1667d0ab3c493531cd996c98aa0430cc9ad904257d65aded4ee2a6365a246aa7b9f51ef77adac2919f2f2166dec8cd7ec458fb097b82b1b883cb27f23100 WHIRLPOOL 261bdae2be250622db2012bdf919214eece4f7e01f9a40923399e1f998a934adea087d247278d973f55fe04c6974531e03e32f17adbbc10b6f24e0dbc3d491fe +MISC ChangeLog 3035 SHA256 404c14caa37dadf5f94e576086e6d5f1a9171ea2f9179d0f1534edca50528d05 SHA512 23e43ba57e125abd97e1eba613b341f79b530eaeaa8d67db02ec4de71e9517954b0bb722d6f1ec2ba8e3f064305ecec756820ded1cb119fac558c9285b5dfa00 WHIRLPOOL b9a9a8b0e6f63b74f070a46e8e63187ad9c779ab715bca542cfc0bb89bd0fa2094f62b6f5499aa5ab2bae46ad00e6ff777347550200cc13c9b24321beaed749f +MISC ChangeLog-2015 1473 SHA256 a04d8f10c41042782bd18f3253e983cdee058b9f9d1356f73d9868b9e9386757 SHA512 503f02f0b903d4affa2a301bf0f79ee971dd1f92aaf7cf3d710a6c6aaac36e6dd22a03e2c19cc0b23bc448455e9183de46d4358ff2b4d2f1e3e0508aa47f7fc3 WHIRLPOOL 189f3087de49b57ff5689fe3836dc719a0fe980d88caf51e3b477b2c33c4e94f5f249b0e34ac48d1e351e61e47b199d7825cf15597f6d28062bbb99362ae060d +MISC metadata.xml 355 SHA256 3fe59ecadf91cdd661b063661864ef57eb3df8d59bd55a2eb9e61dc1a75e5bd8 SHA512 78f8cc8f1f1be915da206e4b8be196a21b58a6f209023594755e481136a1b86ee31c8d0dfedd516d756a47db624e89728875b073b71c3b08ac94a5cde8ff3b83 WHIRLPOOL adc2ef67e7870008ce851a78268832c5ff50649850b2614fb66edd3a16ccbad441306f00c44000385a742552b91b4a805408b19aad2ef3b7dda9e86532703dba diff --git a/games-action/swordandsworcery/files/swordandsworcery-wrapper b/games-action/swordandsworcery/files/swordandsworcery-wrapper new file mode 100644 index 000000000000..ce668c71843a --- /dev/null +++ b/games-action/swordandsworcery/files/swordandsworcery-wrapper @@ -0,0 +1,23 @@ +#!/bin/sh +# Get game directory +GAMEDIR="@GAMEDIR@" +LIB=$GAMEDIR/lib +BIN=$GAMEDIR/bin + +# Ensure the log directory exists +LOGDIR=~/.capy/SwordAndSworcery +[ -e ~/.capy ] || mkdir ~/.capy +[ -e ~/.capy/SwordAndSworcery ] || mkdir ~/.capy/SwordAndSworcery + +# For multi-monitor displays, choose a screen to display on to avoid having +# the game be displayed in the middle across both screens in fullscreen mode +#export SDL_VIDEO_FULLSCREEN_DISPLAY=0 + +# Modify library paths here +export LD_LIBRARY_PATH="$LIB:$LD_LIBRARY_PATH" + +# Run the game and try to log any errors if any +cd "$BIN" +exec ./swordandsworcery $@ 2>&1 | tee -a $LOGDIR/log.txt + +exit diff --git a/games-action/swordandsworcery/metadata.xml b/games-action/swordandsworcery/metadata.xml new file mode 100644 index 000000000000..b878aaa1812d --- /dev/null +++ b/games-action/swordandsworcery/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/swordandsworcery/swordandsworcery-1.02.ebuild b/games-action/swordandsworcery/swordandsworcery-1.02.ebuild new file mode 100644 index 000000000000..6ea8534569b6 --- /dev/null +++ b/games-action/swordandsworcery/swordandsworcery-1.02.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# TODO: unbundle liblua-5.1 when available for multilib + +EAPI=5 + +inherit eutils games + +DESCRIPTION="An exploratory action adventure game with an emphasis on audiovisual style" +HOMEPAGE="http://www.swordandsworcery.com/" +SRC_URI="${PN}_${PV}.tar.gz" + +LICENSE="CAPYBARA-EULA LGPL-3" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="bundled-libs" +RESTRICT="bindist fetch splitdebug" + +MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/bin/* + ${MYGAMEDIR#/}/lib/*" + +# linked to pulseaudio +RDEPEND=" + virtual/opengl + amd64? ( + >=dev-libs/openssl-1.0.1h-r2:0=[abi_x86_32(-)] + >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)] + >=virtual/glu-9.0-r1[abi_x86_32(-)] + >=virtual/opengl-7.0-r1[abi_x86_32(-)] + >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] + >=media-libs/flac-1.2.1-r5[abi_x86_32(-)] + >=media-libs/libogg-1.3.0[abi_x86_32(-)] + >=media-libs/libsndfile-1.0.25[abi_x86_32(-)] + >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)] + >=media-sound/pulseaudio-2.1-r1[abi_x86_32(-)] + >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)] + >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXau-1.0.7-r1[abi_x86_32(-)] + >=x11-libs/libxcb-1.9.1[abi_x86_32(-)] + >=x11-libs/libXdmcp-1.1.1-r1[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)] + >=x11-libs/libXi-1.7.2[abi_x86_32(-)] + >=x11-libs/libXtst-1.2.1-r1[abi_x86_32(-)] + !bundled-libs? ( + >=net-misc/curl-7.36.0[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r4[X,sound,video,opengl,joystick,abi_x86_32(-)] + ) + ) + x86? ( + dev-libs/openssl:0= + media-libs/alsa-lib + media-libs/flac + media-libs/libogg + media-libs/libsndfile + media-libs/libvorbis + media-sound/pulseaudio + sys-libs/zlib + virtual/glu + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libxcb + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXi + x11-libs/libXtst + !bundled-libs? ( + net-misc/curl + media-libs/libsdl[X,sound,video,opengl,joystick] + ) + )" + +S=${WORKDIR} + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" +} + +src_prepare() { + if ! use bundled-libs ; then + einfo "removing bundled libs..." + rm -v lib/libcurl.so* lib/libSDL-1.2.so* \ + lib/libstdc++.so* || die + fi + + sed \ + -e "s#@GAMEDIR@#${MYGAMEDIR}#" \ + "${FILESDIR}"/${PN}-wrapper > "${T}"/${PN} || die +} + +src_install() { + insinto "${MYGAMEDIR}" + doins -r bin lib res + + dogamesbin "${T}"/${PN} + make_desktop_entry ${PN} + + dohtml README.html + + fperms +x "${MYGAMEDIR}"/bin/${PN} + prepgamesdirs +} |