diff options
author | Austin English <wizardedit@gentoo.org> | 2016-08-05 10:36:06 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-08-05 11:35:21 -0500 |
commit | e9b8ac9a03f4ea641fb67ffb4cc0971fa4af9f1f (patch) | |
tree | de76eb268b974b67577061bb9a6bcee49e2fca98 /games-kids/crayon-physics | |
parent | kde-plasma/breeze-gtk: revision bump adds support for gtk-3.20 (diff) | |
download | gentoo-e9b8ac9a03f4ea641fb67ffb4cc0971fa4af9f1f.tar.gz gentoo-e9b8ac9a03f4ea641fb67ffb4cc0971fa4af9f1f.tar.bz2 gentoo-e9b8ac9a03f4ea641fb67ffb4cc0971fa4af9f1f.zip |
games-kids/crayon-physics: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
Diffstat (limited to 'games-kids/crayon-physics')
-rw-r--r-- | games-kids/crayon-physics/crayon-physics-55-r1.ebuild | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/games-kids/crayon-physics/crayon-physics-55-r1.ebuild b/games-kids/crayon-physics/crayon-physics-55-r1.ebuild new file mode 100644 index 000000000000..c9a69a52ca68 --- /dev/null +++ b/games-kids/crayon-physics/crayon-physics-55-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils gnome2-utils + +DESCRIPTION="2D physics puzzle/sandbox game with drawing" +HOMEPAGE="http://www.crayonphysics.com/" +SRC_URI="crayon_physics_deluxe-linux-release${PV}.tar.gz" + +LICENSE="CRAYON-PHYSICS" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="bundled-libs" +RESTRICT="bindist fetch splitdebug" + +MYGAMEDIR="/opt/${PN}" +QA_PREBUILT="${MYGAMEDIR#/}/crayon + ${MYGAMEDIR#/}/lib32/*" + +RDEPEND=" + dev-qt/qtcore:4[abi_x86_32(-)] + dev-qt/qtgui:4[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x86? ( + !bundled-libs? ( + media-libs/libmikmod + media-libs/libsdl:0[X,sound,video,opengl,joystick] + media-libs/libvorbis + media-libs/sdl-image[png,jpeg,tiff] + media-libs/sdl-mixer[vorbis,wav] + media-libs/smpeg[X,opengl] + media-libs/tiff:0 + virtual/jpeg:0 + ) + )" + +S=${WORKDIR}/CrayonPhysicsDeluxe + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" + einfo +} + +src_prepare() { + if use bundled-libs ; then + mv lib32/_libSDL-1.2.so.0 lib32/libSDL-1.2.so.0 || die + fi +} + +src_install() { + insinto "${MYGAMEDIR}" + use bundled-libs && doins -r lib32 + doins -r cache data crayon autoexec.txt version.xml + + newicon -s 256 icon.png ${PN}.png + make_desktop_entry ${PN} + make_wrapper ${PN} "./crayon" "${MYGAMEDIR}" "${MYGAMEDIR}/lib32" + + dodoc changelog.txt linux_hotfix_notes.txt + dohtml readme.html + + fperms +x "${MYGAMEDIR}"/crayon +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |