1 |
commit: b156aea2bacb9fa268b1f52f996b6b8af43fe94a |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 23:41:47 2017 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 31 00:59:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b156aea2 |
7 |
|
8 |
games-action/trine-bin: remove deprecated games eclass |
9 |
|
10 |
Also update to EAPI 6 |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/574082 |
13 |
|
14 |
Package-Manager: Portage-2.3.2, Repoman-2.3.1 |
15 |
|
16 |
games-action/trine-bin/trine-bin-1.08-r1.ebuild | 67 +++++++++++++++++++++++++ |
17 |
1 file changed, 67 insertions(+) |
18 |
|
19 |
diff --git a/games-action/trine-bin/trine-bin-1.08-r1.ebuild b/games-action/trine-bin/trine-bin-1.08-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000..c673584 |
22 |
--- /dev/null |
23 |
+++ b/games-action/trine-bin/trine-bin-1.08-r1.ebuild |
24 |
@@ -0,0 +1,67 @@ |
25 |
+# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+# $Id$ |
28 |
+ |
29 |
+# these are ELFs that include a ZIP (504b0304) appended to it |
30 |
+# dd if=Trine.64.run of=Trine.64.zip ibs=$((0x342a8)) skip=1 |
31 |
+# dd if=Trine.32.run of=Trine.32.zip ibs=$((0x31c24)) skip=1 |
32 |
+# but `unzip` will skip the ELF at the start. both ELFs contain |
33 |
+# the same zip appended, so only need to hash one of them. |
34 |
+ |
35 |
+EAPI=6 |
36 |
+inherit unpacker eutils |
37 |
+ |
38 |
+DESCRIPTION="A physics-based action game where diff characters allow diff solutions to challenges" |
39 |
+HOMEPAGE="http://trine-thegame.com/" |
40 |
+SRC_URI="Trine.64.run" |
41 |
+ |
42 |
+LICENSE="frozenbyte-eula" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="-* ~amd64 ~x86" |
45 |
+IUSE="" |
46 |
+RESTRICT="fetch strip" |
47 |
+ |
48 |
+DEPEND="app-arch/unzip" |
49 |
+RDEPEND=" |
50 |
+ dev-libs/libx86 |
51 |
+ gnome-base/libglade |
52 |
+ >=sys-devel/gcc-4.3.0 |
53 |
+ >=sys-libs/glibc-2.4" |
54 |
+ |
55 |
+S=${WORKDIR} |
56 |
+ |
57 |
+d=/opt/${PN} |
58 |
+QA_PREBUILT="${d#/}/trine-launcher ${d#/}/trine-bin ${d#/}/lib*/lib*.so*" |
59 |
+ |
60 |
+pkg_nofetch() { |
61 |
+ einfo "Fetch ${SRC_URI} and put it into ${DISTDIR}" |
62 |
+ einfo "See http://www.humblebundle.com/ for more info." |
63 |
+} |
64 |
+ |
65 |
+src_unpack() { |
66 |
+ # manually run unzip as the initial seek causes it to exit(1) |
67 |
+ unpack_zip ${A} |
68 |
+ rm lib*/lib{gcc_s,m,rt,selinux}.so.? || die |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ local b bb |
73 |
+ local sfx=$(usex x86 32 64) |
74 |
+ |
75 |
+ doicon Trine.xpm |
76 |
+ for b in bin launcher ; do |
77 |
+ bb="trine-${b}" |
78 |
+ exeinto ${d} |
79 |
+ newexe ${bb}${sfx} ${bb} |
80 |
+ make_wrapper ${bb} "./${bb}" "${d}" |
81 |
+ make_desktop_entry ${bb} "Trine ${b}" Trine |
82 |
+ done |
83 |
+ |
84 |
+ exeinto ${d}/lib${sfx} |
85 |
+ doexe lib${sfx}/* |
86 |
+ |
87 |
+ insinto ${d} |
88 |
+ doins -r binds config data dev profiles *.fbz *.glade trine-logo.png |
89 |
+ |
90 |
+ dodoc Trine_Manual_linux.pdf Trine_updates.txt |
91 |
+} |