You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
67 lines
1.4 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
|
|
||
|
inherit desktop eutils # eutils for make_wrapper()
|
||
13 years ago
|
|
||
|
DESCRIPTION="A puzzle game with a strong emphasis on physics"
|
||
|
HOMEPAGE="http://2dboy.com/"
|
||
|
|
||
|
if [[ ${PN} == *-demo ]] ; then
|
||
|
MY_PN="WorldOfGooDemo"
|
||
|
SRC_URI="${MY_PN}.${PV}.tar.gz"
|
||
|
else
|
||
|
MY_PN="WorldOfGoo"
|
||
|
SRC_URI="${MY_PN}Setup.${PV}.tar.gz"
|
||
|
fi
|
||
|
|
||
|
LICENSE="2dboy-EULA"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
6 years ago
|
RESTRICT="fetch bindist strip"
|
||
13 years ago
|
|
||
11 years ago
|
RDEPEND="media-libs/libsdl[alsa,sound,opengl,video]
|
||
13 years ago
|
media-libs/sdl-mixer[vorbis]
|
||
|
sys-libs/glibc
|
||
|
virtual/opengl
|
||
|
virtual/glu
|
||
|
>=sys-devel/gcc-3.4"
|
||
|
|
||
6 years ago
|
S="${WORKDIR}/${MY_PN}"
|
||
|
dir="/opt/${PN}"
|
||
13 years ago
|
|
||
|
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"
|
||
6 years ago
|
elog "and download ${A} and place it in your DISTDIR directory."
|
||
13 years ago
|
else
|
||
6 years ago
|
elog "Download ${A} from ${HOMEPAGE}"
|
||
|
elog "and place it in your DISTDIR directory."
|
||
13 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
exeinto "${dir}"
|
||
10 years ago
|
doexe ${MY_PN%Demo}{,.$(usex amd64 bin64 bin32)}
|
||
13 years ago
|
|
||
6 years ago
|
make_wrapper ${PN} "${dir}"/${MY_PN%Demo}
|
||
13 years ago
|
|
||
|
insinto "${dir}"
|
||
10 years ago
|
doins -r icons properties res
|
||
|
newicon icons/scalable.svg ${PN}.svg
|
||
13 years ago
|
|
||
|
if [[ ${PN} == *-demo ]] ; then
|
||
10 years ago
|
make_desktop_entry ${PN} "World of Goo (Demo)"
|
||
13 years ago
|
else
|
||
10 years ago
|
make_desktop_entry ${PN} "World of Goo"
|
||
13 years ago
|
fi
|
||
|
|
||
10 years ago
|
dodoc linux-issues.txt
|
||
6 years ago
|
docinto html
|
||
|
dodoc readme.html
|
||
13 years ago
|
}
|