Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/braid-gog/
Date: Sun, 06 Feb 2022 14:52:59
Message-Id: 1644159144.d6b4159a27c6db4631c97b379bbc1aea8e27ac9a.chewi@gentoo
1 commit: d6b4159a27c6db4631c97b379bbc1aea8e27ac9a
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 6 14:51:23 2022 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 14:52:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6b4159a
7
8 games-puzzle/braid-gog: New package for the GOG version
9
10 Closes: https://bugs.gentoo.org/349136
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 games-puzzle/braid-gog/Manifest | 1 +
14 games-puzzle/braid-gog/braid-gog-2.0.0.3.ebuild | 55 +++++++++++++++++++++++++
15 games-puzzle/braid-gog/metadata.xml | 8 ++++
16 3 files changed, 64 insertions(+)
17
18 diff --git a/games-puzzle/braid-gog/Manifest b/games-puzzle/braid-gog/Manifest
19 new file mode 100644
20 index 000000000000..0d8afa9dbc5f
21 --- /dev/null
22 +++ b/games-puzzle/braid-gog/Manifest
23 @@ -0,0 +1 @@
24 +DIST gog_braid_2.0.0.3.sh 122931560 BLAKE2B a15dde4a56510613d7104126c1f275ff17f07a246fc3f09cd2df26b870488c4b4e81a32f7505fc3b720f503f252ac00259aa7225b25c804af64bcced24c81bec SHA512 a7cccb0135e359e5bd7e0499fa449ff1e57c00a648aba37a5df7a12ec5a2a6d3b1758af7a168aec562c83bde864fa6cbbe2504b8a334bab01f6b209a8e4aadc6
25
26 diff --git a/games-puzzle/braid-gog/braid-gog-2.0.0.3.ebuild b/games-puzzle/braid-gog/braid-gog-2.0.0.3.ebuild
27 new file mode 100644
28 index 000000000000..d01598d9c1ba
29 --- /dev/null
30 +++ b/games-puzzle/braid-gog/braid-gog-2.0.0.3.ebuild
31 @@ -0,0 +1,55 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit desktop unpacker wrapper xdg
38 +
39 +MY_PN="braid"
40 +DESCRIPTION="Platform game where you manipulate flow of time"
41 +HOMEPAGE="https://www.gog.com/en/game/braid"
42 +SRC_URI="gog_${MY_PN}_${PV}.sh"
43 +
44 +LICENSE="GOG-EULA Arphic CC-BY-NC-SA-1.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +RESTRICT="bindist fetch splitdebug"
48 +
49 +BDEPEND="
50 + app-arch/unzip
51 +"
52 +
53 +RDEPEND="
54 + media-gfx/nvidia-cg-toolkit[abi_x86_32]
55 + media-libs/libsdl2[joystick,opengl,sound,video,abi_x86_32]
56 + virtual/opengl[abi_x86_32]
57 + x11-libs/fltk:1[abi_x86_32]
58 + x11-libs/libX11[abi_x86_32]
59 + !${CATEGORY}/${MY_PN}-hb
60 +"
61 +
62 +S="${WORKDIR}/data/noarch/game"
63 +DIR="/opt/${MY_PN}"
64 +QA_PREBUILT="${DIR#/}/*"
65 +
66 +pkg_nofetch() {
67 + einfo "Please buy and download ${SRC_URI} from:"
68 + einfo " ${HOMEPAGE}"
69 + einfo "and move it to your distfiles directory."
70 +}
71 +
72 +src_unpack() {
73 + unpack_zip ${A}
74 +}
75 +
76 +src_install() {
77 + exeinto "${DIR}"
78 + insinto "${DIR}"
79 +
80 + doexe {Braid,launcher}.bin.x86
81 + doins -r data Icon.*
82 + dodoc READ_ME.txt
83 +
84 + make_wrapper ${MY_PN} ./launcher.bin.x86 "${DIR}" /usr/$(ABI=x86 get_libdir)/fltk
85 + make_desktop_entry ${MY_PN} Braid "${EPREFIX}${DIR}"/Icon.png
86 +}
87
88 diff --git a/games-puzzle/braid-gog/metadata.xml b/games-puzzle/braid-gog/metadata.xml
89 new file mode 100644
90 index 000000000000..7c730d47817a
91 --- /dev/null
92 +++ b/games-puzzle/braid-gog/metadata.xml
93 @@ -0,0 +1,8 @@
94 +<?xml version="1.0" encoding="UTF-8"?>
95 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
96 +<pkgmetadata>
97 + <maintainer type="project">
98 + <email>games@g.o</email>
99 + <name>Gentoo Games Project</name>
100 + </maintainer>
101 +</pkgmetadata>