Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde-sunset:master commit in: games-kids/crayon-physics/
Date: Mon, 02 Jul 2018 20:46:39
Message-Id: 1530564280.6d6f7ca448cd58389df85f5181914b2471e1290b.asturm@gentoo
1 commit: 6d6f7ca448cd58389df85f5181914b2471e1290b
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Mon Jul 2 20:43:31 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 2 20:44:40 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=6d6f7ca4
7
8 games-kids/crayon-physics: Import from Gentoo ebuild repository
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 .../crayon-physics/crayon-physics-55-r1.ebuild | 81 ++++++++++++++++++++++
13 games-kids/crayon-physics/metadata.xml | 10 +++
14 2 files changed, 91 insertions(+)
15
16 diff --git a/games-kids/crayon-physics/crayon-physics-55-r1.ebuild b/games-kids/crayon-physics/crayon-physics-55-r1.ebuild
17 new file mode 100644
18 index 0000000..4b44d84
19 --- /dev/null
20 +++ b/games-kids/crayon-physics/crayon-physics-55-r1.ebuild
21 @@ -0,0 +1,81 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +inherit desktop gnome2-utils
28 +
29 +DESCRIPTION="2D physics puzzle/sandbox game with drawing"
30 +HOMEPAGE="http://www.crayonphysics.com/"
31 +SRC_URI="crayon_physics_deluxe-linux-release${PV}.tar.gz"
32 +
33 +LICENSE="CRAYON-PHYSICS"
34 +SLOT="0"
35 +KEYWORDS="-* ~amd64 ~x86"
36 +IUSE="bundled-libs"
37 +RESTRICT="bindist fetch splitdebug"
38 +
39 +MYGAMEDIR="/opt/${PN}"
40 +QA_PREBUILT="${MYGAMEDIR#/}/crayon
41 + ${MYGAMEDIR#/}/lib32/*"
42 +
43 +RDEPEND="
44 + dev-qt/qtcore:4[abi_x86_32(-)]
45 + dev-qt/qtgui:4[abi_x86_32(-)]
46 + virtual/glu[abi_x86_32(-)]
47 + virtual/opengl[abi_x86_32(-)]
48 + x11-libs/libX11[abi_x86_32(-)]
49 + x86? (
50 + !bundled-libs? (
51 + media-libs/libmikmod
52 + media-libs/libsdl:0[X,sound,video,opengl,joystick]
53 + media-libs/libvorbis
54 + media-libs/sdl-image[png,jpeg,tiff]
55 + media-libs/sdl-mixer[vorbis,wav]
56 + media-libs/smpeg[X,opengl]
57 + media-libs/tiff:0
58 + virtual/jpeg:0
59 + )
60 + )"
61 +
62 +DOCS=( changelog.txt linux_hotfix_notes.txt )
63 +HTML_DOCS=( readme.html )
64 +
65 +S=${WORKDIR}/CrayonPhysicsDeluxe
66 +
67 +pkg_nofetch() {
68 + einfo "Please buy & download ${SRC_URI} from:"
69 + einfo " ${HOMEPAGE}"
70 + einfo "and move it to ${DISTDIR}"
71 + einfo
72 +}
73 +
74 +src_prepare() {
75 + default
76 +
77 + if use bundled-libs ; then
78 + mv lib32/_libSDL-1.2.so.0 lib32/libSDL-1.2.so.0 || die
79 + fi
80 +}
81 +
82 +src_install() {
83 + insinto "${MYGAMEDIR}"
84 + use bundled-libs && doins -r lib32
85 + doins -r cache data crayon autoexec.txt version.xml
86 +
87 + newicon -s 256 icon.png ${PN}.png
88 + make_desktop_entry ${PN}
89 + make_wrapper ${PN} "./crayon" "${MYGAMEDIR}" "${MYGAMEDIR}/lib32"
90 +
91 + einstalldocs
92 +
93 + fperms +x "${MYGAMEDIR}"/crayon
94 +}
95 +
96 +pkg_postinst() {
97 + gnome2_icon_cache_update
98 +}
99 +
100 +pkg_postrm() {
101 + gnome2_icon_cache_update
102 +}
103
104 diff --git a/games-kids/crayon-physics/metadata.xml b/games-kids/crayon-physics/metadata.xml
105 new file mode 100644
106 index 0000000..eaaa6c7
107 --- /dev/null
108 +++ b/games-kids/crayon-physics/metadata.xml
109 @@ -0,0 +1,10 @@
110 +<?xml version="1.0" encoding="UTF-8"?>
111 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
112 +<pkgmetadata>
113 +<!-- maintainer-needed -->
114 + <use>
115 + <flag name="bundled-libs">
116 + Use the upstream provided bundled libraries.
117 + </flag>
118 + </use>
119 +</pkgmetadata>