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/world-of-goo-gog/
Date: Tue, 28 Apr 2020 22:33:20
Message-Id: 1588113164.2d2b07371eeadd8ace277e35d60cfb854b072dc8.chewi@gentoo
1 commit: 2d2b07371eeadd8ace277e35d60cfb854b072dc8
2 Author: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
3 AuthorDate: Fri Apr 17 14:15:59 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 28 22:32:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d2b0737
7
8 games-puzzle/world-of-goo-gog-1.51.29337: new package
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
12 Closes: https://github.com/gentoo/gentoo/pull/15388
13 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
14
15 games-puzzle/world-of-goo-gog/Manifest | 1 +
16 games-puzzle/world-of-goo-gog/metadata.xml | 11 ++++
17 .../world-of-goo-gog-1.51.29337.ebuild | 63 ++++++++++++++++++++++
18 3 files changed, 75 insertions(+)
19
20 diff --git a/games-puzzle/world-of-goo-gog/Manifest b/games-puzzle/world-of-goo-gog/Manifest
21 new file mode 100644
22 index 00000000000..161254a8768
23 --- /dev/null
24 +++ b/games-puzzle/world-of-goo-gog/Manifest
25 @@ -0,0 +1 @@
26 +DIST world_of_goo_1_51_29337.sh 181640558 BLAKE2B 9993b1a25d256b3adbf7b9bd7297cddc4af11b8f83b35a9e44704e6a75a68da4212cc726a406cd60f6665852e9fcf76c7c63a44e551df133242c61176652aa9c SHA512 650e3841d282cd919907912343e12d5d8d7aa6f7a58591e1343c6c9f6f00d74dbfe2086202bad92ef16a6023802ec79fdb3848c63ba38e466d743e5582331310
27
28 diff --git a/games-puzzle/world-of-goo-gog/metadata.xml b/games-puzzle/world-of-goo-gog/metadata.xml
29 new file mode 100644
30 index 00000000000..b010f5d66be
31 --- /dev/null
32 +++ b/games-puzzle/world-of-goo-gog/metadata.xml
33 @@ -0,0 +1,11 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="project">
38 + <email>games@g.o</email>
39 + <name>Gentoo Games Project</name>
40 + </maintainer>
41 + <use>
42 + <flag name="bundled-libs">Use bundled libs</flag>
43 + </use>
44 +</pkgmetadata>
45
46 diff --git a/games-puzzle/world-of-goo-gog/world-of-goo-gog-1.51.29337.ebuild b/games-puzzle/world-of-goo-gog/world-of-goo-gog-1.51.29337.ebuild
47 new file mode 100644
48 index 00000000000..15ac77073cf
49 --- /dev/null
50 +++ b/games-puzzle/world-of-goo-gog/world-of-goo-gog-1.51.29337.ebuild
51 @@ -0,0 +1,63 @@
52 +# Copyright 1999-2020 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +inherit desktop eutils # eutils for make_wrapper()
58 +
59 +MY_PN="WorldOfGoo"
60 +
61 +DESCRIPTION="A puzzle game with a strong emphasis on physics (GOG edition)"
62 +HOMEPAGE="http://2dboy.com/"
63 +SRC_URI="world_of_goo_${PV//./_}.sh"
64 +
65 +LICENSE="2dboy-EULA"
66 +SLOT="0"
67 +KEYWORDS="~amd64 ~x86"
68 +IUSE="bundled-libs"
69 +RESTRICT="fetch bindist strip bundled-libs? ( splitdebug )"
70 +
71 +DEPEND="app-arch/unzip"
72 +RDEPEND="!bundled-libs? (
73 + media-libs/libsdl2[alsa,sound,opengl,video]
74 + media-libs/sdl2-mixer[vorbis]
75 + )
76 + sys-libs/glibc
77 + virtual/opengl
78 + virtual/glu
79 + >=sys-devel/gcc-3.4
80 + !games-puzzle/world-of-goo
81 + !games-puzzle/world-of-goo-hb"
82 +
83 +dir="/opt/${PN%-*}"
84 +
85 +QA_PREBUILT="${dir:1}/${MY_PN}.bin.x86
86 + ${dir:1}/${MY_PN}.bin.x86_64"
87 +
88 +pkg_nofetch() {
89 + elog "Download ${A} from www.gog.com"
90 + elog "and place it in your DISTDIR directory."
91 +}
92 +
93 +src_unpack() {
94 + unzip -d "${S}" "${DISTDIR}/${A}"
95 +}
96 +
97 +src_install() {
98 + exeinto "${dir}"
99 + doexe data/noarch/game/${MY_PN}.bin.x86$(usex amd64 _64)
100 +
101 + make_wrapper "${PN%-*}" "${dir}"/${MY_PN}.bin.x86$(usex amd64 _64) \
102 + $(use bundled-libs && (printf '"%s" "%s/lib%s"' "${dir}" "${dir}" $(usex amd64 64) || die))
103 +
104 + insinto "${dir}"
105 + doins -r data/noarch/game/game
106 + use bundled-libs && doins -r data/noarch/game/lib$(usex amd64 64)
107 + newicon data/noarch/game/game/gooicon.png ${PN%-*}.png
108 +
109 + make_desktop_entry ${PN%-*} "World of Goo" ${PN%-*}
110 +
111 + dodoc data/noarch/docs/linux-issues.txt
112 + docinto html
113 + dodoc data/noarch/game/readme.html
114 +}