commit: 6d6f7ca448cd58389df85f5181914b2471e1290b Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> AuthorDate: Mon Jul 2 20:43:31 2018 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Mon Jul 2 20:44:40 2018 +0000 URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=6d6f7ca4
games-kids/crayon-physics: Import from Gentoo ebuild repository Package-Manager: Portage-2.3.41, Repoman-2.3.9 .../crayon-physics/crayon-physics-55-r1.ebuild | 81 ++++++++++++++++++++++ games-kids/crayon-physics/metadata.xml | 10 +++ 2 files changed, 91 insertions(+) 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 0000000..4b44d84 --- /dev/null +++ b/games-kids/crayon-physics/crayon-physics-55-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit desktop 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 + ) + )" + +DOCS=( changelog.txt linux_hotfix_notes.txt ) +HTML_DOCS=( readme.html ) + +S=${WORKDIR}/CrayonPhysicsDeluxe + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" + einfo +} + +src_prepare() { + default + + 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" + + einstalldocs + + fperms +x "${MYGAMEDIR}"/crayon +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-kids/crayon-physics/metadata.xml b/games-kids/crayon-physics/metadata.xml new file mode 100644 index 0000000..eaaa6c7 --- /dev/null +++ b/games-kids/crayon-physics/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> + <use> + <flag name="bundled-libs"> + Use the upstream provided bundled libraries. + </flag> + </use> +</pkgmetadata>