1 |
commit: ec3bd08eda216b433e9757ef6fdd119fcf1c35a3 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 25 16:30:42 2018 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 25 16:33:07 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec3bd08e |
7 |
|
8 |
games-action/trine-enchanted-edition: New package |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
games-action/trine-enchanted-edition/Manifest | 1 + |
13 |
games-action/trine-enchanted-edition/metadata.xml | 11 +++ |
14 |
.../trine-enchanted-edition-2.12.508.ebuild | 85 ++++++++++++++++++++++ |
15 |
3 files changed, 97 insertions(+) |
16 |
|
17 |
diff --git a/games-action/trine-enchanted-edition/Manifest b/games-action/trine-enchanted-edition/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..5c5f1cb6ae9 |
20 |
--- /dev/null |
21 |
+++ b/games-action/trine-enchanted-edition/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST trine_enchanted_edition_v2_12_build_508_humble_linux_full.zip 1226749814 BLAKE2B 9803f78279bcf83a2a54f25e2498664b73ba1c0ae5c540bb4479345ae05495cc11527937876fb7c9dbb34d05dbbdb4575cc6c1899923c782ff67ea23bd2cfac9 SHA512 e883763efe89f09a84c2896bfd0a9a13319dd14bb840e67f1812a0bab45bcab7a144f4c9399194e5aabad0435e350c6a903a542c9101a37c602855ebd0884d9d |
24 |
|
25 |
diff --git a/games-action/trine-enchanted-edition/metadata.xml b/games-action/trine-enchanted-edition/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000000..b26a6baa412 |
28 |
--- /dev/null |
29 |
+++ b/games-action/trine-enchanted-edition/metadata.xml |
30 |
@@ -0,0 +1,11 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="project"> |
35 |
+ <email>games@g.o</email> |
36 |
+ <name>Gentoo Games Project</name> |
37 |
+ </maintainer> |
38 |
+ <use> |
39 |
+ <flag name="launcher">Install GTK+ launcher</flag> |
40 |
+ </use> |
41 |
+</pkgmetadata> |
42 |
|
43 |
diff --git a/games-action/trine-enchanted-edition/trine-enchanted-edition-2.12.508.ebuild b/games-action/trine-enchanted-edition/trine-enchanted-edition-2.12.508.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000000..87871dfbf50 |
46 |
--- /dev/null |
47 |
+++ b/games-action/trine-enchanted-edition/trine-enchanted-edition-2.12.508.ebuild |
48 |
@@ -0,0 +1,85 @@ |
49 |
+# Copyright 1999-2018 Gentoo Foundation |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=6 |
53 |
+ |
54 |
+inherit desktop eutils gnome2-utils |
55 |
+ |
56 |
+MY_P="${PV//./_}" |
57 |
+MY_P="${PN//-/_}_v${MY_P%_*}_build_${MY_P##*_}" |
58 |
+MY_PN="Trine Enchanted Edition" |
59 |
+ |
60 |
+DESCRIPTION="The original sidescrolling action platformer under the Trine 2 engine" |
61 |
+HOMEPAGE="https://www.frozenbyte.com/games/trine-enchanted-edition" |
62 |
+SRC_URI="${MY_P}_humble_linux_full.zip" |
63 |
+LICENSE="all-rights-reserved" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="-* ~amd64 ~x86" |
66 |
+IUSE="+launcher" |
67 |
+RESTRICT="bindist fetch splitdebug" |
68 |
+ |
69 |
+QA_PREBUILT="opt/${PN}/${PN}*" |
70 |
+ |
71 |
+DEPEND="app-arch/unzip" |
72 |
+ |
73 |
+# SDL 1.3 is bundled but the game appears to be statically linked |
74 |
+# against SDL 2.0.3. This is unfortunate as there are bugs. For example, |
75 |
+# it doesn't respect the DISPLAY variable under Zaphod mode. |
76 |
+ |
77 |
+RDEPEND=" |
78 |
+ media-gfx/nvidia-cg-toolkit[abi_x86_32] |
79 |
+ media-libs/alsa-lib[abi_x86_32] |
80 |
+ media-libs/freetype:2[abi_x86_32] |
81 |
+ media-libs/libogg[abi_x86_32] |
82 |
+ >=media-libs/libvorbis-1.3[abi_x86_32] |
83 |
+ >=media-libs/openal-1.15[abi_x86_32] |
84 |
+ sys-libs/zlib[abi_x86_32] |
85 |
+ virtual/glu[abi_x86_32] |
86 |
+ virtual/opengl[abi_x86_32] |
87 |
+ launcher? ( |
88 |
+ dev-libs/glib:2[abi_x86_32] |
89 |
+ media-libs/libpng:1.2[abi_x86_32] |
90 |
+ x11-libs/gdk-pixbuf:2[abi_x86_32,X] |
91 |
+ x11-libs/gtk+:2[abi_x86_32] |
92 |
+ x11-libs/libX11[abi_x86_32] |
93 |
+ x11-libs/pango[abi_x86_32,X] |
94 |
+ )" |
95 |
+ |
96 |
+S="${WORKDIR}/linux/_enchanted_edition_" |
97 |
+ |
98 |
+pkg_nofetch() { |
99 |
+ einfo "Please buy and download ${SRC_URI} from:" |
100 |
+ einfo " https://www.humblebundle.com/store/${PN}" |
101 |
+ einfo "and move it to your distfiles directory." |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ local dir=/opt/${PN} |
106 |
+ |
107 |
+ insinto "${dir}" |
108 |
+ doins -r *.fbq data |
109 |
+ |
110 |
+ exeinto "${dir}" |
111 |
+ newexe bin/trine1_linux_32bit ${PN} |
112 |
+ |
113 |
+ make_wrapper ${PN} ./${PN} "${dir}" |
114 |
+ make_desktop_entry ${PN} "${MY_PN}" |
115 |
+ |
116 |
+ if use launcher ; then |
117 |
+ exeinto "${dir}" |
118 |
+ newexe bin/trine1_linux_launcher_32bit ${PN}-launcher |
119 |
+ |
120 |
+ make_wrapper ${PN}-launcher ./${PN}-launcher "${dir}" |
121 |
+ make_desktop_entry ${PN}-launcher "${MY_PN} (launcher)" |
122 |
+ |
123 |
+ # Launcher binary has hardcoded the game path. |
124 |
+ dosym ../${PN} "${dir}"/bin/trine1_bin_starter.sh |
125 |
+ fi |
126 |
+ |
127 |
+ newicon -s 64 trine1.png ${PN}.png |
128 |
+ dodoc readme_changelog.txt |
129 |
+} |
130 |
+ |
131 |
+pkg_preinst() { gnome2_icon_savelist; } |
132 |
+pkg_postinst() { gnome2_icon_cache_update; } |
133 |
+pkg_postrm() { gnome2_icon_cache_update; } |