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:20
Message-Id: 1588113167.4aa7f3fc09023a2a2f9f6964dceebb3c646a1972.chewi@gentoo
1 commit: 4aa7f3fc09023a2a2f9f6964dceebb3c646a1972
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 28 22:19:21 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 28 22:32:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aa7f3fc
7
8 games-puzzle/world-of-goo-hb: 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-hb/world-of-goo-hb-1.53.ebuild | 50 ++++++++++++----------
22 1 file changed, 27 insertions(+), 23 deletions(-)
23
24 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
25 index e9b72ddc39b..f08ef5823bf 100644
26 --- a/games-puzzle/world-of-goo-hb/world-of-goo-hb-1.53.ebuild
27 +++ b/games-puzzle/world-of-goo-hb/world-of-goo-hb-1.53.ebuild
28 @@ -3,58 +3,62 @@
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 (HumbleBundle edition)"
38 -HOMEPAGE="http://2dboy.com/"
39 +DESCRIPTION="A puzzle game with a strong emphasis on physics (Humble Bundle edition)"
40 +HOMEPAGE="https://2dboy.com/"
41 SRC_URI="${MY_PN}.Linux.${PV}.sh"
42
43 LICENSE="2dboy-EULA"
44 SLOT="0"
45 KEYWORDS="~amd64 ~x86"
46 IUSE="bundled-libs"
47 -RESTRICT="fetch bindist strip bundled-libs? ( splitdebug )"
48 +RESTRICT="bindist fetch strip bundled-libs? ( splitdebug )"
49
50 -DEPEND="app-arch/unzip"
51 -RDEPEND="!bundled-libs? (
52 - media-libs/libsdl2[alsa,sound,opengl,video]
53 +BDEPEND="app-arch/unzip"
54 +
55 +RDEPEND="
56 + !bundled-libs? (
57 + media-libs/libsdl2[opengl,sound,video]
58 media-libs/sdl2-mixer[vorbis]
59 )
60 + >=sys-devel/gcc-3.4
61 sys-libs/glibc
62 virtual/opengl
63 - virtual/glu
64 - >=sys-devel/gcc-3.4
65 !games-puzzle/world-of-goo
66 - !games-puzzle/world-of-goo-gog"
67 + !games-puzzle/world-of-goo-gog
68 +"
69
70 dir="/opt/${PN%-*}"
71 -
72 -QA_PREBUILT="${dir:1}/${MY_PN}.bin.x86
73 - ${dir:1}/${MY_PN}.bin.x86_64"
74 +S="${WORKDIR}"
75 +QA_PREBUILT="${dir#/}/*"
76
77 pkg_nofetch() {
78 - elog "Download ${A} from www.humblebundle.com"
79 - elog "and place it in your DISTDIR directory."
80 + elog "If you bought directly from 2DBOY then download ${A} from:"
81 + elog " https://2dboy.com/ReceptionistBot/orderLookup.php"
82 + elog
83 + elog "Otherwise please buy and download ${A} from:"
84 + elog " https://www.humblebundle.com/store/product/worldofgoo"
85 + elog
86 + elog "Then move it to your distfiles directory."
87 }
88
89 src_unpack() {
90 - unzip -d "${S}" "${DISTDIR}/${A}"
91 + unpack_zip ${A}
92 }
93
94 src_install() {
95 exeinto "${dir}"
96 - doexe data/x86$(usex amd64 _64)/${MY_PN}.bin.x86$(usex amd64 _64)
97 -
98 - make_wrapper ${PN%-*} "${dir}"/${MY_PN}.bin.x86$(usex amd64 _64) \
99 - $(use bundled-libs && (printf '"%s" "%s/lib%s"' "${dir}" "${dir}" $(usex amd64 64) || die))
100 + newexe data/x86$(usex amd64 _64)/${MY_PN}.bin.x86$(usex amd64 _64) ${MY_PN}.bin
101 + dosym "../..${dir}"/${MY_PN}.bin /usr/bin/${PN%-*}
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 + doins -r data/noarch/game/
108 + use bundled-libs && doins -r data/x86$(usex amd64 _64)/lib$(usex amd64 64)/
109
110 + newicon -s 256 data/noarch/game/gooicon.png ${PN%-*}.png
111 make_desktop_entry ${PN%-*} "World of Goo" ${PN%-*}
112
113 docinto html