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-demo/
Date: Tue, 28 Apr 2020 22:33:21
Message-Id: 1588113174.53e57f052f7a0f65f82c2a2bb27e1fe4686c9123.chewi@gentoo
1 commit: 53e57f052f7a0f65f82c2a2bb27e1fe4686c9123
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 28 22:23:30 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 28 22:32:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53e57f05
7
8 games-puzzle/world-of-goo-demo: Use Slackbuilds mirror, EAPI 7
9
10 I tried to add USE=bundled-libs but the ancient Vorbis libraries clash
11 with system Vorbis libraries pulled in via PulseAudio.
12
13 Package-Manager: Portage-2.3.99, Repoman-2.3.22
14 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
15
16 .../world-of-goo-demo-1.41-r2.ebuild | 69 ----------------------
17 .../world-of-goo-demo-1.41-r3.ebuild | 52 ++++++++++++++++
18 2 files changed, 52 insertions(+), 69 deletions(-)
19
20 diff --git a/games-puzzle/world-of-goo-demo/world-of-goo-demo-1.41-r2.ebuild b/games-puzzle/world-of-goo-demo/world-of-goo-demo-1.41-r2.ebuild
21 deleted file mode 100644
22 index 83b418f1b56..00000000000
23 --- a/games-puzzle/world-of-goo-demo/world-of-goo-demo-1.41-r2.ebuild
24 +++ /dev/null
25 @@ -1,69 +0,0 @@
26 -# Copyright 1999-2019 Gentoo Authors
27 -# Distributed under the terms of the GNU General Public License v2
28 -
29 -EAPI=6
30 -inherit eutils
31 -
32 -DESCRIPTION="A puzzle game with a strong emphasis on physics"
33 -HOMEPAGE="http://2dboy.com/"
34 -
35 -if [[ ${PN} == *-demo ]] ; then
36 - MY_PN="WorldOfGooDemo"
37 - SRC_URI="${MY_PN}.${PV}.tar.gz"
38 -else
39 - MY_PN="WorldOfGoo"
40 - SRC_URI="${MY_PN}Setup.${PV}.tar.gz"
41 -fi
42 -
43 -LICENSE="2dboy-EULA"
44 -SLOT="0"
45 -KEYWORDS="~amd64 ~x86"
46 -IUSE=""
47 -RESTRICT="bindist fetch strip"
48 -
49 -RDEPEND="
50 - media-libs/libsdl[sound,opengl,video]
51 - media-libs/sdl-mixer[vorbis]
52 - sys-libs/glibc
53 - virtual/opengl
54 - virtual/glu
55 - >=sys-devel/gcc-3.4
56 -"
57 -DEPEND=""
58 -
59 -S="${WORKDIR}/${MY_PN}"
60 -dir="/opt/${PN}"
61 -
62 -QA_PREBUILT="
63 - ${dir:1}/${MY_PN%Demo}.bin32
64 - ${dir:1}/${MY_PN%Demo}.bin64
65 -"
66 -
67 -pkg_nofetch() {
68 - if [[ ${PN} == *-demo ]] ; then
69 - elog "To download the demo, visit http://worldofgoo.com/dl2.php?lk=demo"
70 - elog "and download ${A} and place it into your DISTDIR directory."
71 - else
72 - elog "Download ${A} from ${HOMEPAGE} and place it into your DISTDIR directory."
73 - fi
74 -}
75 -
76 -src_install() {
77 - exeinto "${dir}"
78 - doexe ${MY_PN%Demo}*
79 -
80 - make_wrapper ${PN} "${dir}"/${MY_PN%Demo}
81 -
82 - insinto "${dir}"
83 - doins -r icons properties res
84 - newicon icons/scalable.svg ${PN}.svg
85 -
86 - if [[ ${PN} == *-demo ]] ; then
87 - make_desktop_entry ${PN} "World of Goo (Demo)"
88 - else
89 - make_desktop_entry ${PN} "World of Goo"
90 - fi
91 -
92 - dodoc linux-issues.txt
93 - HTML_DOCS="readme.html" einstalldocs
94 -}
95
96 diff --git a/games-puzzle/world-of-goo-demo/world-of-goo-demo-1.41-r3.ebuild b/games-puzzle/world-of-goo-demo/world-of-goo-demo-1.41-r3.ebuild
97 new file mode 100644
98 index 00000000000..c25a8830d83
99 --- /dev/null
100 +++ b/games-puzzle/world-of-goo-demo/world-of-goo-demo-1.41-r3.ebuild
101 @@ -0,0 +1,52 @@
102 +# Copyright 1999-2020 Gentoo Authors
103 +# Distributed under the terms of the GNU General Public License v2
104 +
105 +EAPI=7
106 +
107 +inherit desktop eutils xdg
108 +
109 +MY_PN="WorldOfGooDemo"
110 +
111 +DESCRIPTION="A puzzle game with a strong emphasis on physics (demo version)"
112 +HOMEPAGE="https://2dboy.com/"
113 +SRC_URI="mirror://sourceforge/slackbuildsdirectlinks/worldofgoo/${MY_PN}.${PV}.tar.gz"
114 +
115 +LICENSE="2dboy-EULA"
116 +SLOT="0"
117 +KEYWORDS="~amd64 ~x86"
118 +RESTRICT="bindist mirror strip"
119 +
120 +RDEPEND="
121 + media-libs/libsdl[opengl,sound,video]
122 + media-libs/sdl-mixer[vorbis]
123 + >=sys-devel/gcc-3.4
124 + sys-libs/glibc
125 + virtual/opengl
126 + virtual/glu
127 +"
128 +
129 +dir="/opt/${PN}"
130 +S="${WORKDIR}/${MY_PN}"
131 +QA_PREBUILT="${dir#/}/*"
132 +
133 +src_install() {
134 + exeinto "${dir}"
135 + newexe ${MY_PN%Demo}.bin$(usex amd64 64 32) ${MY_PN%Demo}.bin
136 + make_wrapper ${PN} ./${MY_PN%Demo}.bin "${dir}"
137 +
138 + insinto "${dir}"
139 + doins -r icons/ properties/ res/
140 +
141 + local icon size
142 + for icon in icons/*.{png,svg}; do
143 + size=${icon##*/}
144 + size=${size%%[x.]*}
145 + newicon -s "${size}" "${icon}" "${PN}.${icon##*.}"
146 + done
147 +
148 + make_desktop_entry ${PN} "World of Goo (Demo)"
149 +
150 + dodoc linux-issues.txt
151 + docinto html
152 + dodoc readme.html
153 +}