]> git.draconx.ca Git - gentoo-draconx.git/commitdiff
Add games-action/trine-bin.
authorNick Bowler <nbowler@draconx.ca>
Thu, 16 Feb 2012 02:57:12 +0000 (21:57 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 16 Feb 2012 02:57:12 +0000 (21:57 -0500)
From https://bugs.gentoo.org/show_bug.cgi?id=364293.

games-action/trine-bin/Manifest [new file with mode: 0644]
games-action/trine-bin/trine-bin-1.08_p4.ebuild [new file with mode: 0644]

diff --git a/games-action/trine-bin/Manifest b/games-action/trine-bin/Manifest
new file mode 100644 (file)
index 0000000..d3e2193
--- /dev/null
@@ -0,0 +1,2 @@
+DIST TrineUpdate4.64.run 647258173 RMD160 26ef839a7f828328c5358d0e472eb269fcadf2f0 SHA1 24b983f1bbbf6d4a02330c11e3361ec26cb06e76 SHA256 50ecc85a233befb02c726178b21c8cc8e44495f6c16a6cd9f66bf9bb389298f9
+EBUILD trine-bin-1.08_p4.ebuild 2382 RMD160 00443a98915aaad783ec5b551f10d30b36d81679 SHA1 7bd33022a9e2f5e7933c0988d56f651ae93815bb SHA256 e9947182938b4836cf4fef40ba2aaae540f0021a158383a1631f19a7df5f9d39
diff --git a/games-action/trine-bin/trine-bin-1.08_p4.ebuild b/games-action/trine-bin/trine-bin-1.08_p4.ebuild
new file mode 100644 (file)
index 0000000..551f5e2
--- /dev/null
@@ -0,0 +1,91 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+inherit games eutils
+
+DESCRIPTION="A physics-based action game where diff characters allow diff solutions to challenges"
+HOMEPAGE="http://trine-thegame.com/"
+SRC_URI="amd64? ( TrineUpdate4.64.run )"
+#x86? ( TrineUpdate3.32.run )
+
+LICENSE="frozenbyte-eula"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="fetch strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND=">=sys-libs/glibc-2.4
+       >=sys-devel/gcc-4.3.0
+       gnome-base/libglade
+       =media-libs/libsdl-1.2*
+       =media-libs/sdl-image-1.2*
+       =media-libs/sdl-ttf-2.0*
+       virtual/ffmpeg
+       media-libs/libogg
+       =media-libs/openal-1*
+       media-libs/libpng:1.2
+       media-libs/libvorbis
+       amd64? ( dev-libs/libx86 )"
+#      x11-libs/libtxc_dxtn"
+
+S=${WORKDIR}
+
+d="${GAMES_PREFIX_OPT}/${PN}"
+QA_PRESTRIPPED="${d#/}/trine-launcher ${d#/}/trine-bin ${d#/}/lib*/lib*.so*"
+QA_TEXTRELS_x86="`echo ${d#/}/lib32/lib{avcodec.so.51,avformat.so.52,avutil.so.49,FLAC.so.8}`"
+
+bits=$(use x86 && echo 32 || echo 64)
+
+pkg_nofetch() {
+       einfo "Fetch ${SRC_URI} and put it into ${DISTDIR}"
+       einfo "See http://www.humblebundle.com/ for more info."
+}
+
+src_unpack() {
+       # manually run unzip as the initial seek causes it to exit(1)
+       unzip -q "${DISTDIR}/${A}"
+       rm lib*/lib{gcc_s,m,rt,selinux}.so.?
+
+       # remove bundled libraries
+       #rm "${S}/lib${bits}/libGLEW.so.1.5"
+       rm "${S}/lib${bits}/libstdc++.so.6"
+       rm "${S}/lib${bits}/libSDL-1.2.so.0"
+       rm "${S}/lib${bits}/libSDL_image-1.2.so.0"
+       rm "${S}/lib${bits}/libSDL_ttf-2.0.so.0"
+       rm "${S}/lib${bits}/libavcodec.so.52"
+       rm "${S}/lib${bits}/libavformat.so.52"
+       rm "${S}/lib${bits}/libavutil.so.50"
+       #rm "${S}/lib${bits}/libjpeg.so.62"
+       rm "${S}/lib${bits}/libogg.so.0"
+       rm "${S}/lib${bits}/libopenal.so.1"
+       rm "${S}/lib${bits}/libpng12.so.0"
+       rm "${S}/lib${bits}/libswscale.so.0"
+       rm "${S}/lib${bits}/libvorbis.so.0"
+       rm "${S}/lib${bits}/libvorbisfile.so.3"
+}
+
+src_install() {
+       local b bb
+
+       doicon Trine.xpm || die
+       for b in bin launcher ; do
+       bb="trine-${b}"
+       exeinto ${d}
+       newexe ${bb}${bits} ${bb} || die
+       games_make_wrapper ${bb} "./${bb}" "${d}" || die
+       make_desktop_entry ${bb} "Trine ${b}" Trine
+       done
+
+       exeinto ${d}/lib${bits}
+       doexe lib${bits}/* || die
+
+       insinto ${d}
+       doins -r binds config data dev profiles *.fbz *.glade trine-logo.png || die
+
+       dodoc Trine_Manual_linux.pdf Trine_updates.txt
+
+       prepgamesdirs
+}