diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-21 21:49:24 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-21 21:49:24 +0000 |
commit | 6049bf55003e4b25918c5f06da7c6fe4a0310a42 (patch) | |
tree | 570ef63d0ce652f46d89245db1f4b5253e0f1857 /games-action | |
parent | mask games-action/swordandsworcery for hardened-multilib (diff) | |
download | gentoo-2-6049bf55003e4b25918c5f06da7c6fe4a0310a42.tar.gz gentoo-2-6049bf55003e4b25918c5f06da7c6fe4a0310a42.tar.bz2 gentoo-2-6049bf55003e4b25918c5f06da7c6fe4a0310a42.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/swordandsworcery/ChangeLog | 11 | ||||
-rw-r--r-- | games-action/swordandsworcery/Manifest | 5 | ||||
-rw-r--r-- | games-action/swordandsworcery/files/swordandsworcery-wrapper | 23 | ||||
-rw-r--r-- | games-action/swordandsworcery/metadata.xml | 15 | ||||
-rw-r--r-- | games-action/swordandsworcery/swordandsworcery-1.02.ebuild | 98 |
5 files changed, 152 insertions, 0 deletions
diff --git a/games-action/swordandsworcery/ChangeLog b/games-action/swordandsworcery/ChangeLog new file mode 100644 index 000000000000..ce2c54a0588a --- /dev/null +++ b/games-action/swordandsworcery/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-action/swordandsworcery +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/swordandsworcery/ChangeLog,v 1.1 2013/03/21 21:49:24 hasufell Exp $ + +*swordandsworcery-1.02 (21 Mar 2013) + + 21 Mar 2013; Julian Ospald <hasufell@gentoo.org> + +swordandsworcery-1.02.ebuild, +files/swordandsworcery-wrapper, + +metadata.xml: + initial import + diff --git a/games-action/swordandsworcery/Manifest b/games-action/swordandsworcery/Manifest new file mode 100644 index 000000000000..cab7ecaf6f7f --- /dev/null +++ b/games-action/swordandsworcery/Manifest @@ -0,0 +1,5 @@ +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 2083 SHA256 cbc8242f7636762fbe4789dab4e3be931bf9edb725d0b528016301e7bd343567 SHA512 a2760710fd09621cfb1ba117def7a2ce4a563585a24525c03ae3280b262ad07e3ce598b23dce34304de400c1bb20f5c1f6b13153a0b7b1c85a1d9e060c9fbab9 WHIRLPOOL c7a77c48201f041e9359f32ac9b79cb97bf605405708cb54f2345eea40c62b163ad20f83b8c303a1256636fd3e101ba28cd9e8692c62af48e9b3a622076a3e3b +MISC ChangeLog 320 SHA256 9d23fd43ce73e141fd58bcdeba1571e7419212cbf3f6cc4993c10f73a0c65f1a SHA512 99174e14d723924f76ef3aef2e81275b2be681e7a21079b0326fa930e4607ad7e0e256d1bb7e4492a276104efe1f3d1766ce49912f444ab2c4dfbd1c74f9e09e WHIRLPOOL 398aec2cb7a7ce1f6c5dc53a98530ba22b19bfa5984e15c2d94d177dec2d8973cbe0591e923f16959d89e5958ce7eb379d14cb574cbd88f0f981c7edd7113533 +MISC metadata.xml 357 SHA256 edcc7199ab480ee354907b48f6b4d582a64e82fa5160973b671106f08b153145 SHA512 73094df9982a4b60d3faba468322c1450aa515acc405f3deff1ce29307c1dfb301a66e09586df2ae39cc8262020e6b6f6141372cb9baaf8787910593582a5013 WHIRLPOOL 19503a292e1bb54ac364a724f1a8f785a54439daaeb2c609041759a0f8447e11c38afb754fe617909c68406c0325a0fffbe19ae20a617e1bcedf10d77cb59ef2 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..d647e74d87ea --- /dev/null +++ b/games-action/swordandsworcery/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/swordandsworcery/swordandsworcery-1.02.ebuild b/games-action/swordandsworcery/swordandsworcery-1.02.ebuild new file mode 100644 index 000000000000..bd2829814557 --- /dev/null +++ b/games-action/swordandsworcery/swordandsworcery-1.02.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/swordandsworcery/swordandsworcery-1.02.ebuild,v 1.1 2013/03/21 21:49:24 hasufell Exp $ + +# 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" + +MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/bin/* + ${MYGAMEDIR#/}/lib/*" + +# linked to pulseaudio +RDEPEND=" + virtual/opengl + amd64? ( + app-emulation/emul-linux-x86-baselibs + app-emulation/emul-linux-x86-opengl + app-emulation/emul-linux-x86-sdl + app-emulation/emul-linux-x86-soundlibs[alsa] + app-emulation/emul-linux-x86-xlibs + ) + x86? ( + dev-libs/openssl + 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,audio,video,opengl,joystick] + ) + )" + +S=${WORKDIR} + +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 ${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 +} |