# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit eutils games MY_PN="CrayonPhysicsDeluxe" DESCRIPTION="Crayon Physics Deluxe: a 2D physics puzzle" HOMEPAGE="http://www.crayonphysics.com/" SRC_URI="${PN//-/_}-linux-release${PV}.tar.gz" RESTRICT="fetch strip" LICENSE="crayon" SLOT="0" KEYWORDS="amd64 x86" IUSE="" DEPEND="" RDEPEND="virtual/opengl x86? ( dev-qt/qtcore:4 dev-qt/qtgui:4 media-libs/libsdl[audio,joystick,video] media-libs/mesa media-libs/sdl-image[jpeg,png] media-libs/sdl-mixer[vorbis,wav] x11-libs/libX11 ) amd64? ( app-emulation/emul-linux-x86-opengl app-emulation/emul-linux-x86-qtlibs app-emulation/emul-linux-x86-sdl ) " S="${WORKDIR}/${MY_PN}" GAMEDIR="${GAMES_PREFIX_OPT}/${PN}" pkg_nofetch() { einfo "" einfo "Please buy and download \"${SRC_URI}\" from:" einfo " ${HOMEPAGE}" einfo "and move/link it to \"${DISTDIR}\"" einfo "" } src_install() { # Install data files: insinto "${GAMEDIR}" || die "insinto \"${GAMEDIR}\" failed" doins -r "cache" "data" || die "doins data files failed" # Install needed config files: doins "autoexec.txt" || die "doins config files failed" # Install libs (needs an old libstdc++: - no longer seems necessary #GAMELIBS="${GAMEDIR}/lib" #exeinto "${GAMELIBS}" || die "insinto \"${GAMELIBS}\" failed" #doexe "lib32/libstdc++.so.6" || die "doexe libs failed" # Install executables: exeinto "${GAMEDIR}" || die "exeinto \${GAMEDIR}\" failed" doexe "crayon" || die "doexe \"crayon\" failed" # Make and install game wrapper: games_make_wrapper ${PN} ./crayon "${GAMEDIR}" "${GAMEDIR}" \ || die "games_make_wrapper failed" # Install icon and desktop file: newicon "icon.png" "${PN}.png" || die "newicon \"${PN}.png\" failed" make_desktop_entry "${PN}" "Crayon Physics Deluxe" \ || die "make_desktop_entry failed" # Install documentation: dodoc {changelog,linux_hotfix_notes}.txt || die "dodoc failed" dohtml *.html # Setting permissions: prepgamesdirs } pkg_postinst() { echo "" games_pkg_postinst }