summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-02-13 19:24:58 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-02-13 19:24:58 +0000
commitb0837b7b83aa587ff1005d6b13e87b27408b0e05 (patch)
tree449e8cb72ba6622e1205c1d7d864e7b79bc5dede /games-action
parentmask x2 and x2-demo for removal (diff)
downloadgentoo-2-b0837b7b83aa587ff1005d6b13e87b27408b0e05.tar.gz
gentoo-2-b0837b7b83aa587ff1005d6b13e87b27408b0e05.tar.bz2
gentoo-2-b0837b7b83aa587ff1005d6b13e87b27408b0e05.zip
initial import wrt #412057
(Portage version: 2.2.0_alpha162/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-action')
-rw-r--r--games-action/trine2/ChangeLog10
-rw-r--r--games-action/trine2/Manifest4
-rw-r--r--games-action/trine2/metadata.xml14
-rw-r--r--games-action/trine2/trine2-1.16.ebuild128
4 files changed, 156 insertions, 0 deletions
diff --git a/games-action/trine2/ChangeLog b/games-action/trine2/ChangeLog
new file mode 100644
index 000000000000..58f555d3d1ea
--- /dev/null
+++ b/games-action/trine2/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-action/trine2
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/trine2/ChangeLog,v 1.1 2013/02/13 19:24:58 hasufell Exp $
+
+*trine2-1.16 (13 Feb 2013)
+
+ 13 Feb 2013; Julian Ospald <hasufell@gentoo.org> +trine2-1.16.ebuild,
+ +metadata.xml:
+ initial import wrt #412057
+
diff --git a/games-action/trine2/Manifest b/games-action/trine2/Manifest
new file mode 100644
index 000000000000..8fa434655c2c
--- /dev/null
+++ b/games-action/trine2/Manifest
@@ -0,0 +1,4 @@
+DIST trine2_linux_installer.run 1631149097 SHA256 39edf004fb4001360bb4b432cd365ab4b14350612e5632df789d568d682177e7 SHA512 d0c402f4f73f45290784c9414a5b59f89513b14bd09ade815d4456a77ae95909082e0a6a1afad198f6f58707a5d10eedbacd30d6cc5d063eabb702b03a7dc56e WHIRLPOOL 888073296772659c87d9955c14ac116c93bcf5da6ec2715e6a74b10520f2dcd94c5e50a794d0833f3242e3c47689f3f0042883b6673c6f8e0563fea829e06ad0
+EBUILD trine2-1.16.ebuild 2962 SHA256 afbc0cb8ccbc871166dc7a97cbde8db6613b6ee3831fc12c5ba9b4a6d42e73a5 SHA512 839b15290ef60c61044a5f20c98a611d501eda3455cf727d6dfe3881a7b67f60a100ae3216fb594bdeb6271cb1e5d822cd02247e65ac5714ba20e6b6f4255f66 WHIRLPOOL 307041c0bd1c37df118c8478e71d5ef476f4d4918f1217d3c78174b8ad9946ad3c71e22b500373f3d0b93c7b592a5aba0704ef68978fb10c99d8e55b13443a47
+MISC ChangeLog 267 SHA256 6e80fa00a611724eb7cdfde4d79f49817c82383375ad4a91192a48ff411b1401 SHA512 b89b95fc6da47502df85bcecca1e515499505239ebf2d3dd92fb525932b03ccd80fe8b9aee39bc6292fb48e077723bba30675ca93c3e170fcaf1238c469f593e WHIRLPOOL 7d637d38f5428bf5ffefdd7a112f2c0e182dcf5a3aafcff4a344dbb27ca30d770abe0afe0ceb68fa7167c9d192b97f9ab1235b470a65e196a35b7e0d1380af43
+MISC metadata.xml 388 SHA256 5bb2190dcf14f5fff13049e43bcbc4deba982da6855991b8795fd6dae2b8fae4 SHA512 f8c502a2dc695f8b8436a6b10112ba5a7d4db96d4d73986d8d809f2724c27ef7b63f44e8761d5c898f1fc680240472e2a3e0820afdc83c1e0aef579670156a9b WHIRLPOOL 06bbcebccf49bb15668c0704ce4df869d91f2975598d2f94f556d93d6a83d09ea392ae60529d0982f0f421ea55c3602062c754038696eca9277bf7913750a8e6
diff --git a/games-action/trine2/metadata.xml b/games-action/trine2/metadata.xml
new file mode 100644
index 000000000000..aa527189e358
--- /dev/null
+++ b/games-action/trine2/metadata.xml
@@ -0,0 +1,14 @@
+<?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='launcher'>Install gtk+ launcher</flag>
+ <flag name='system-libs'>Use system provided libraries.</flag>
+ </use>
+</pkgmetadata>
+
diff --git a/games-action/trine2/trine2-1.16.ebuild b/games-action/trine2/trine2-1.16.ebuild
new file mode 100644
index 000000000000..082ea67c3101
--- /dev/null
+++ b/games-action/trine2/trine2-1.16.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/trine2/trine2-1.16.ebuild,v 1.1 2013/02/13 19:24:58 hasufell Exp $
+
+EAPI=5
+inherit eutils unpacker gnome2-utils games
+
+MY_PN="Trine 2"
+DESCRIPTION="A sidescrolling game of action, puzzles and platforming"
+HOMEPAGE="http://www.trine2.com/"
+SRC_URI="${PN}_linux_installer.run"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="+launcher system-libs"
+RESTRICT="fetch"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${PN}*
+ ${GAMES_PREFIX_OPT}/${PN}/lib/*"
+
+# TODO: system-libs: no libsdl-1.3, no physx
+RDEPEND="
+ 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
+ app-emulation/emul-linux-x86-xlibs
+ launcher? ( app-emulation/emul-linux-x86-gtklibs )
+ system-libs? ( media-gfx/nvidia-cg-toolkit[multilib] )
+ )
+ x86? (
+ dev-libs/glib:2
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/openal
+ sys-libs/zlib
+ virtual/glu
+ virtual/opengl
+ launcher? (
+ media-libs/fontconfig
+ media-libs/libpng:0
+ x11-libs/gtk+:2
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXinerama
+ x11-libs/libXxf86vm
+ )
+ system-libs? ( media-gfx/nvidia-cg-toolkit )
+ )"
+
+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
+ einfo "Please buy & download \"${SRC_URI}\" from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move/link it to \"${DISTDIR}\""
+ einfo
+}
+
+src_unpack() {
+ local offset="$(( $(grep -a -h -n -m 1 -F -e THIS_IS_THE_LAST_SCRIPT_LINE_ARCHIVE_DATA_FOLLOWS "${DISTDIR}"/${A} | cut -d':' -f1) + 1 ))"
+ unpack_makeself ${A} "${offset}" "tail"
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+
+ insinto "${dir}"
+ doins -r data*
+
+ exeinto "${dir}"
+ newexe "bin/trine2_linux_32bit" ${PN}
+
+ exeinto "${dir}/lib"
+ use system-libs && { find lib/lib32 -type f -name "libCg*.so*" -delete || die ;}
+ doexe lib/lib32/*
+
+ games_make_wrapper ${PN} "./${PN}" "${dir}" "${dir}/lib"
+ doicon -s 64 ${PN}.png
+ make_desktop_entry ${PN} "${MY_PN}"
+
+ if use launcher ; then
+ exeinto "${dir}"
+ newexe bin/trine2_linux_launcher_32bit ${PN}-launcher
+
+ games_make_wrapper ${PN}-launcher "./${PN}-launcher" "${dir}" "${dir}/lib"
+ make_desktop_entry ${PN}-launcher "${MY_PN} (launcher)"
+
+ # launcher binary has hardcoded the script path
+ dodir "${dir}"/bin
+ dosym "${GAMES_BINDIR}"/trine2 "${dir}"/bin/trine2_bin_starter.sh
+ fi
+
+ dodoc KNOWN_LINUX_ISSUES README
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ einfo
+ elog "${MY_PN} savegames and configurations are stored in:"
+ elog " \${HOME}/.frozenbyte/${MY_PN//\ /}"
+ einfo
+
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}