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