Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/box2d/
Date: Sat, 07 Sep 2019 22:41:03
Message-Id: 1567895951.83b6c7da77061484a32bab7a95da5f7ecc67c996.chewi@gentoo
1 commit: 83b6c7da77061484a32bab7a95da5f7ecc67c996
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 7 22:37:58 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 7 22:39:11 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83b6c7da
7
8 games-engines/box2d: New package
9
10 I had hoped to use this for Shovel Knight but it needs a custom
11 version. Adding it anyway.
12
13 Package-Manager: Portage-2.3.75, Repoman-2.3.17
14 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
15
16 games-engines/box2d/Manifest | 3 +++
17 games-engines/box2d/box2d-2.1.2.ebuild | 45 ++++++++++++++++++++++++++++++++++
18 games-engines/box2d/box2d-2.2.1.ebuild | 45 ++++++++++++++++++++++++++++++++++
19 games-engines/box2d/box2d-2.3.1.ebuild | 43 ++++++++++++++++++++++++++++++++
20 games-engines/box2d/metadata.xml | 11 +++++++++
21 5 files changed, 147 insertions(+)
22
23 diff --git a/games-engines/box2d/Manifest b/games-engines/box2d/Manifest
24 new file mode 100644
25 index 00000000000..26dc21a63d3
26 --- /dev/null
27 +++ b/games-engines/box2d/Manifest
28 @@ -0,0 +1,3 @@
29 +DIST Box2D_v2.1.2.zip 3100922 BLAKE2B 1f2d2b201517ef2adb1b1a2c1f62f94b2f7cde6f857935dba11544b931481a2b87e036269f34571b99f5272b9dd985dcf463d153b628c54163166e2ae77d95d5 SHA512 cc50be6db8d02a4ddbb61208f67b05c264e24ab96885debc708b1b284957f18193b6a57d84d378cb0ba33ab3fc9a0f5c534b8ca9f8982e7e0fe656115cb5a82f
30 +DIST Box2D_v2.2.1.zip 3637276 BLAKE2B 844b589b43b916e20cb594ba160c4a025b2fb98bacb7c856884ec728c7b67f44ed86151df0b005ce1c813d74c8c55ce93e5060b4b9387662870cdcda9cdea76e SHA512 3d0d4eb06d9e2c425ffafb26839032cae897a4a82f27356ccad2fc764a02c3ca6dd53b24c51196291f5492f795356fb03575f8c75e599467577ba19165ccdcb4
31 +DIST box2d-2.3.1.tar.gz 1553222 BLAKE2B e21eafb9d807c5f241486c875bd8ee350c3e44601801b98d9ee35e2343244f5c72998cbc1e9f687d3a72033a76361a1ff7dd3bacad50f21212fca3618e887bb6 SHA512 22e31005644ae1f5a947149dee832286b0d5a96648a0e9766c32a9a047ae839b4354403eaf7040895074cf3bd33bb298e65053cf1b5b67a6a23fbf3fd5777dd5
32
33 diff --git a/games-engines/box2d/box2d-2.1.2.ebuild b/games-engines/box2d/box2d-2.1.2.ebuild
34 new file mode 100644
35 index 00000000000..953853c4921
36 --- /dev/null
37 +++ b/games-engines/box2d/box2d-2.1.2.ebuild
38 @@ -0,0 +1,45 @@
39 +# Copyright 1999-2019 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +
44 +inherit meson multilib
45 +
46 +MY_PN="Box2D"
47 +DESCRIPTION="A C++ engine for simulating rigid bodies in 2D games"
48 +HOMEPAGE="https://box2d.org/"
49 +SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${MY_PN}_v${PV}.zip"
50 +LICENSE="ZLIB"
51 +SLOT="$(ver_cut 1-2).0"
52 +KEYWORDS="~amd64 ~x86"
53 +
54 +BDEPEND="app-arch/unzip"
55 +
56 +S="${WORKDIR}/${MY_PN}_v${PV}/${MY_PN}"
57 +
58 +src_prepare() {
59 + # This version supports CMake but upstream has dropped it since this
60 + # release. They now use Premake but this Meson file is actually
61 + # simpler! Installation is manual but that's true for Premake too.
62 + cat > meson.build <<EOF || die
63 +project('${MY_PN}', 'cpp')
64 +shared_library(
65 + '${MY_PN}',
66 + $(find ${MY_PN} -name "*.cpp" -printf "'%p', ")
67 + soversion: '${SLOT}', install : true
68 +)
69 +EOF
70 +
71 + default
72 +}
73 +
74 +src_install() {
75 + dodoc Readme.txt
76 + dolib.so "${BUILD_DIR}"/lib${MY_PN}$(get_libname ${SLOT})
77 +
78 + local FILE
79 + for FILE in $(find ${MY_PN} -name *.h); do
80 + insinto "/usr/include/${MY_PN}-${SLOT}/${FILE%/*}"
81 + doins "${FILE}"
82 + done
83 +}
84
85 diff --git a/games-engines/box2d/box2d-2.2.1.ebuild b/games-engines/box2d/box2d-2.2.1.ebuild
86 new file mode 100644
87 index 00000000000..5663da2c4f6
88 --- /dev/null
89 +++ b/games-engines/box2d/box2d-2.2.1.ebuild
90 @@ -0,0 +1,45 @@
91 +# Copyright 1999-2019 Gentoo Authors
92 +# Distributed under the terms of the GNU General Public License v2
93 +
94 +EAPI=7
95 +
96 +inherit meson multilib
97 +
98 +MY_PN="Box2D"
99 +DESCRIPTION="A C++ engine for simulating rigid bodies in 2D games"
100 +HOMEPAGE="https://box2d.org/"
101 +SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${MY_PN}_v${PV}.zip"
102 +LICENSE="ZLIB"
103 +SLOT="$(ver_cut 1-2).0"
104 +KEYWORDS="~amd64 ~x86"
105 +
106 +BDEPEND="app-arch/unzip"
107 +
108 +S="${WORKDIR}/${MY_PN}_v${PV}"
109 +
110 +src_prepare() {
111 + # This version supports CMake but upstream has dropped it since this
112 + # release. They now use Premake but this Meson file is actually
113 + # simpler! Installation is manual but that's true for Premake too.
114 + cat > meson.build <<EOF || die
115 +project('${MY_PN}', 'cpp')
116 +shared_library(
117 + '${MY_PN}',
118 + $(find ${MY_PN} -name "*.cpp" -printf "'%p', ")
119 + soversion: '${SLOT}', install : true
120 +)
121 +EOF
122 +
123 + default
124 +}
125 +
126 +src_install() {
127 + dodoc Readme.txt
128 + dolib.so "${BUILD_DIR}"/lib${MY_PN}$(get_libname ${SLOT})
129 +
130 + local FILE
131 + for FILE in $(find ${MY_PN} -name *.h); do
132 + insinto "/usr/include/${MY_PN}-${SLOT}/${FILE%/*}"
133 + doins "${FILE}"
134 + done
135 +}
136
137 diff --git a/games-engines/box2d/box2d-2.3.1.ebuild b/games-engines/box2d/box2d-2.3.1.ebuild
138 new file mode 100644
139 index 00000000000..9a083d4ffb0
140 --- /dev/null
141 +++ b/games-engines/box2d/box2d-2.3.1.ebuild
142 @@ -0,0 +1,43 @@
143 +# Copyright 1999-2019 Gentoo Authors
144 +# Distributed under the terms of the GNU General Public License v2
145 +
146 +EAPI=7
147 +
148 +inherit meson multilib
149 +
150 +MY_PN="Box2D"
151 +DESCRIPTION="A C++ engine for simulating rigid bodies in 2D games"
152 +HOMEPAGE="https://box2d.org/"
153 +SRC_URI="https://github.com/erincatto/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
154 +LICENSE="ZLIB"
155 +SLOT="$(ver_cut 1-2).0"
156 +KEYWORDS="~amd64 ~x86"
157 +
158 +S="${WORKDIR}/${MY_PN}-${PV}/${MY_PN}"
159 +
160 +src_prepare() {
161 + # This version supports CMake but upstream has dropped it since this
162 + # release. They now use Premake but this Meson file is actually
163 + # simpler! Installation is manual but that's true for Premake too.
164 + cat > meson.build <<EOF || die
165 +project('${MY_PN}', 'cpp')
166 +shared_library(
167 + '${MY_PN}',
168 + $(find ${MY_PN} -name "*.cpp" -printf "'%p', ")
169 + soversion: '${SLOT}', install : true
170 +)
171 +EOF
172 +
173 + default
174 +}
175 +
176 +src_install() {
177 + dodoc {Changes,Readme}.txt
178 + dolib.so "${BUILD_DIR}"/lib${MY_PN}$(get_libname ${SLOT})
179 +
180 + local FILE
181 + for FILE in $(find ${MY_PN} -name *.h); do
182 + insinto "/usr/include/${MY_PN}-${SLOT}/${FILE%/*}"
183 + doins "${FILE}"
184 + done
185 +}
186
187 diff --git a/games-engines/box2d/metadata.xml b/games-engines/box2d/metadata.xml
188 new file mode 100644
189 index 00000000000..f73e6cf8587
190 --- /dev/null
191 +++ b/games-engines/box2d/metadata.xml
192 @@ -0,0 +1,11 @@
193 +<?xml version="1.0" encoding="UTF-8"?>
194 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
195 +<pkgmetadata>
196 + <maintainer type="project">
197 + <email>games@g.o</email>
198 + <name>Gentoo Games Project</name>
199 + </maintainer>
200 + <upstream>
201 + <remote-id type="github">erincatto/Box2D</remote-id>
202 + </upstream>
203 +</pkgmetadata>