Skip to content

Commit

Permalink
games-puzzle/world-of-goo: Don't inherit games.eclass.
Browse files Browse the repository at this point in the history
Bump EAPI to 6. Fix DISTDIR usage in pkg_nofetch.

Closes: https://bugs.gentoo.org/659334
Package-Manager: Portage-2.3.41, Repoman-2.3.9
  • Loading branch information
ulm committed Jul 7, 2018
1 parent 0051bf5 commit 88d8489
Showing 1 changed file with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit eutils games
EAPI=6

inherit desktop eutils # eutils for make_wrapper()

DESCRIPTION="A puzzle game with a strong emphasis on physics"
HOMEPAGE="http://2dboy.com/"
Expand All @@ -18,37 +19,36 @@ fi
LICENSE="2dboy-EULA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="fetch strip"
RESTRICT="fetch bindist strip"

RDEPEND="media-libs/libsdl[alsa,sound,opengl,video]
media-libs/sdl-mixer[vorbis]
sys-libs/glibc
virtual/opengl
virtual/glu
>=sys-devel/gcc-3.4"
DEPEND=""

S=${WORKDIR}/${MY_PN}
dir=${GAMES_PREFIX_OPT}/${PN}
S="${WORKDIR}/${MY_PN}"
dir="/opt/${PN}"

QA_PREBUILT="${dir:1}/${MY_PN%Demo}.bin32
${dir:1}/${MY_PN%Demo}.bin64"

pkg_nofetch() {
if [[ ${PN} == *-demo ]] ; then
elog "To download the demo, visit http://worldofgoo.com/dl2.php?lk=demo"
elog "and download ${A} and place it in ${DISTDIR}"
elog "and download ${A} and place it in your DISTDIR directory."
else
elog "Download ${A} from ${HOMEPAGE} and place it in ${DISTDIR}"
elog "Download ${A} from ${HOMEPAGE}"
elog "and place it in your DISTDIR directory."
fi
}

src_install() {
exeinto "${dir}"
doexe ${MY_PN%Demo}{,.$(usex amd64 bin64 bin32)}

games_make_wrapper ${PN} "${dir}"/${MY_PN%Demo}
make_wrapper ${PN} "${dir}"/${MY_PN%Demo}

insinto "${dir}"
doins -r icons properties res
Expand All @@ -61,7 +61,6 @@ src_install() {
fi

dodoc linux-issues.txt
dohtml readme.html

prepgamesdirs
docinto html
dodoc readme.html
}

0 comments on commit 88d8489

Please sign in to comment.