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:21
Message-Id: 1588113170.df287b48f840db3025fe38af276bf0b844a0da89.chewi@gentoo
1 commit: df287b48f840db3025fe38af276bf0b844a0da89
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 28 22:21:00 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 28 22:32:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df287b48
7
8 games-puzzle/world-of-goo-gog: Various improvements following split
9
10 * app-arch/unzip is BDEPEND, not DEPEND.
11 * Use unpacker and xdg eclasses.
12 * libsdl2[alsa] is not specifically needed.
13 * virtual/glu is no longer needed.
14 * Clarify pkg_nofetch text.
15 * Use rpath rather than LD_LIBRARY_PATH.
16 * Swap wrapper for symlink.
17
18 Package-Manager: Portage-2.3.99, Repoman-2.3.22
19 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
20
21 .../world-of-goo-gog-1.51.29337.ebuild | 44 +++++++++++-----------
22 1 file changed, 22 insertions(+), 22 deletions(-)
23
24 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
25 index 15ac77073cf..af12c0ed1fc 100644
26 --- a/games-puzzle/world-of-goo-gog/world-of-goo-gog-1.51.29337.ebuild
27 +++ b/games-puzzle/world-of-goo-gog/world-of-goo-gog-1.51.29337.ebuild
28 @@ -3,58 +3,58 @@
29
30 EAPI=7
31
32 -inherit desktop eutils # eutils for make_wrapper()
33 +inherit desktop unpacker xdg
34
35 MY_PN="WorldOfGoo"
36
37 DESCRIPTION="A puzzle game with a strong emphasis on physics (GOG edition)"
38 -HOMEPAGE="http://2dboy.com/"
39 +HOMEPAGE="https://2dboy.com/"
40 SRC_URI="world_of_goo_${PV//./_}.sh"
41
42 LICENSE="2dboy-EULA"
43 SLOT="0"
44 KEYWORDS="~amd64 ~x86"
45 IUSE="bundled-libs"
46 -RESTRICT="fetch bindist strip bundled-libs? ( splitdebug )"
47 +RESTRICT="bindist fetch strip bundled-libs? ( splitdebug )"
48
49 -DEPEND="app-arch/unzip"
50 -RDEPEND="!bundled-libs? (
51 - media-libs/libsdl2[alsa,sound,opengl,video]
52 +BDEPEND="app-arch/unzip"
53 +
54 +RDEPEND="
55 + !bundled-libs? (
56 + media-libs/libsdl2[opengl,sound,video]
57 media-libs/sdl2-mixer[vorbis]
58 )
59 + >=sys-devel/gcc-3.4
60 sys-libs/glibc
61 virtual/opengl
62 - virtual/glu
63 - >=sys-devel/gcc-3.4
64 !games-puzzle/world-of-goo
65 - !games-puzzle/world-of-goo-hb"
66 + !games-puzzle/world-of-goo-hb
67 +"
68
69 dir="/opt/${PN%-*}"
70 -
71 -QA_PREBUILT="${dir:1}/${MY_PN}.bin.x86
72 - ${dir:1}/${MY_PN}.bin.x86_64"
73 +S="${WORKDIR}"
74 +QA_PREBUILT="${dir#/}/*"
75
76 pkg_nofetch() {
77 - elog "Download ${A} from www.gog.com"
78 - elog "and place it in your DISTDIR directory."
79 + elog "Please buy and download ${A} from:"
80 + elog " https://www.gog.com/game/world_of_goo"
81 + elog "and move it to your distfiles directory."
82 }
83
84 src_unpack() {
85 - unzip -d "${S}" "${DISTDIR}/${A}"
86 + unpack_zip ${A}
87 }
88
89 src_install() {
90 exeinto "${dir}"
91 - doexe data/noarch/game/${MY_PN}.bin.x86$(usex amd64 _64)
92 -
93 - make_wrapper "${PN%-*}" "${dir}"/${MY_PN}.bin.x86$(usex amd64 _64) \
94 - $(use bundled-libs && (printf '"%s" "%s/lib%s"' "${dir}" "${dir}" $(usex amd64 64) || die))
95 + newexe data/noarch/game/${MY_PN}.bin.x86$(usex amd64 _64) ${MY_PN}.bin
96 + dosym "../..${dir}"/${MY_PN}.bin /usr/bin/${PN%-*}
97
98 insinto "${dir}"
99 - doins -r data/noarch/game/game
100 - use bundled-libs && doins -r data/noarch/game/lib$(usex amd64 64)
101 - newicon data/noarch/game/game/gooicon.png ${PN%-*}.png
102 + doins -r data/noarch/game/game/
103 + use bundled-libs && doins -r data/noarch/game/lib$(usex amd64 64)/
104
105 + newicon -s 256 data/noarch/game/gooicon.png ${PN%-*}.png
106 make_desktop_entry ${PN%-*} "World of Goo" ${PN%-*}
107
108 dodoc data/noarch/docs/linux-issues.txt