summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2023-04-28 17:30:15 +0200
committerPacho Ramos <pacho@gentoo.org>2023-04-28 17:30:27 +0200
commit1cf6d4934c9645dda090945622dda255eab926ee (patch)
tree5cc0543a1c3461436a384b676bde6ac7486b1824 /games-arcade
parentdev-python/nbconvert: Keyword 7.3.1 hppa, #901233 (diff)
downloadgentoo-1cf6d4934c9645dda090945622dda255eab926ee.tar.gz
gentoo-1cf6d4934c9645dda090945622dda255eab926ee.tar.bz2
gentoo-1cf6d4934c9645dda090945622dda255eab926ee.zip
games-arcade/rocksndiamonds: add 4.3.5.4
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/rocksndiamonds/Manifest1
-rw-r--r--games-arcade/rocksndiamonds/rocksndiamonds-4.3.5.4.ebuild117
2 files changed, 118 insertions, 0 deletions
diff --git a/games-arcade/rocksndiamonds/Manifest b/games-arcade/rocksndiamonds/Manifest
index c66308f93365..e0e8b483c6a3 100644
--- a/games-arcade/rocksndiamonds/Manifest
+++ b/games-arcade/rocksndiamonds/Manifest
@@ -18,6 +18,7 @@ DIST rockslevels-dx-1.0.tar.gz 211151 BLAKE2B 637a600f9197925d82e7ef344c90f04e85
DIST rockslevels-emc-1.0.tar.gz 3824268 BLAKE2B 0feadd5d9c6225c8574576281d07e14ff98fc9a33c67d3fa5083219ce39daaa1902a5ed652b5379fa4e58ee2428a8a452d66520571206143fd0fcd54f71b977a SHA512 9abad888fa00bc305444367c5ab8ffdad95eaca22613573e44d5ecd93b1a9a1cbc931497c064002d90fd3174c4661d0b009ede7746b2fe8da0a00072303a1301
DIST rockslevels-sp-1.0.tar.gz 373564 BLAKE2B 3f724ea55bbdaae80a35d6a9f5d8751a9228862fbe1ba45419343b1968510e10d3c82cc01844e35bc35561e65df3bc7e5ec2a0b807e1f56359dc7dccc16e3cb0 SHA512 2d44e9238a72846b9d4fbab90288aa3b23af4957ffe0d42d95c523fd22f3587572864b3fc0b277894d2f3f56d6eff52ea009e5b2d59aebc34163a1067662d729
DIST rocksndiamonds-4.3.4.0-linux.tar.gz 4633000 BLAKE2B 465e93f6df7995b4787b70c78977c5cda9f8e6b04de33cb292b4d91a09c9461fccfe17a308f37eed8aa2b0d94409aed5f629aedc894a01aac06bcf5604a9363a SHA512 6bb7e09f495f0858298f8ff70b8296e70a11e9f7ace4d7f3ea06e176f643239d5eb27926a9c31bf9454dc1a750c4f0a48f07a7b9a5900ec79e50526adc4ce977
+DIST rocksndiamonds-4.3.5.4-linux.tar.gz 4641623 BLAKE2B 9e0d89bb44e9cfe8fd41ae805faad04a55d250a0345117e579e7787eb2871edb499570894eb2adb9775b894150a479b4f7b8bdc6aad811ba72dfee25df7b3a13 SHA512 5cb41910fbed60b961547d80663ddf4206860776de4e9a2c757de608cb4bc38565fca12f98ec4cfa5f9abab5f83aaab9d2190898ce0bd280f575c3bdd86aa03b
DIST rocksndiamonds-distributable-music.tar.bz2 4957282 BLAKE2B e00ccc1a06977289ffe79c010512b4a9a5c79d5a0fdff750e17f888f09395dd8a20ce06c5f1f7cc034d22e9651bad54beff1fa4e3dac854e77bbc57353d98bdd SHA512 dd220e4506492e66742796d0c359bce24691f5ebfba092aa2c2b52c5582ae9d5a38aa558872c738eeb7619b8ca853d3affa6b0e4af0fda5621bf7e07441ff252
DIST rocksndiamonds.png 2021 BLAKE2B 795be09e6d60aaa66dd457f6ce7dcb0069a82e395cb54578b83ad49ba70b669aa5bd52a4da34979d1e0ba95413a499c13355ce6816c4e364d9d88d1988c88060 SHA512 026abfef17bfc8621d036b83a8a4a878b1d68615e69975ea37589e8d29d864dc42dbabc5a381e579c66be1053175df02209f2c1c1feff3bd9e29db3e09c40346
DIST wf_v1-3.zip 35570 BLAKE2B eded867101b316406cdf378ce8bf36d1dbd28d38ebc9f904df85753955ec2d8f5a87a528975c58ee81b60362bcc37efa766ad87ccf1a1e8a5b062c59c6cc69a2 SHA512 b1b3b2efe20e7d74a072a6289d1af5c22fccf1b9359700269a381d38bdf2458d7d365df7db616a93512428a05f58cf872ea70fcf87080df327e0c4fc231f0470
diff --git a/games-arcade/rocksndiamonds/rocksndiamonds-4.3.5.4.ebuild b/games-arcade/rocksndiamonds/rocksndiamonds-4.3.5.4.ebuild
new file mode 100644
index 000000000000..b5c59ce9daab
--- /dev/null
+++ b/games-arcade/rocksndiamonds/rocksndiamonds-4.3.5.4.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit desktop flag-o-matic unpacker
+
+DESCRIPTION="A Boulderdash clone"
+HOMEPAGE="https://www.artsoft.org/rocksndiamonds/"
+# rocksndiamonds-distributable-music.tar.bz2 from Fedora
+SRC_URI="https://www.artsoft.org/RELEASES/unix/rocksndiamonds/${P}-linux.tar.gz
+ https://dev.gentoo.org/~pacho/${PN}/rocksndiamonds-distributable-music.tar.bz2
+ https://upload.wikimedia.org/wikipedia/commons/e/e2/Rocks%27n%27Diamonds.png -> ${PN}.png
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Andreas_Buschbeck-1.0.0.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/BD2K3-1.0.0.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Boulder_Dash_Dream-1.0.0.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Contributions-1.2.0.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Emerald_Mine_Club-3.1.3.7z
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/RS_MIX_01-needs_rnd_jue.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/RS_MIX_01-standalone.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Snake_Bite-1.0.0.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Sokoban-1.0.0.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Supaplex-2.0.0.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/Zelda-1.0.0.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/ZeldaII-1.0.0.zip
+ https://www.artsoft.org/RELEASES/rocksndiamonds/levels/rnd-contrib-1.0.0.tar.gz
+ https://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-dx-1.0.tar.gz
+ https://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-emc-1.0.tar.gz
+ https://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-sp-1.0.tar.gz
+ mirror://gentoo/rnd_jue-v8.tar.bz2
+ https://www.artsoft.org/rocksndiamonds/levels/jamiecullen/zips/wg_v1-0.zip
+ https://www.artsoft.org/rocksndiamonds/levels/jamiecullen/zips/wf_v1-3.zip
+ https://www.artsoft.org/rocksndiamonds/levels/jamiecullen/zips/ese_v1-1.zip
+ https://www.artsoft.org/rocksndiamonds/levels/jamiecullen/zips/es_b_v1-2.zip
+ https://www.artsoft.org/rocksndiamonds/levels/jamiecullen/zips/ww_v1-0.zip
+"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ media-libs/libmodplug
+ media-libs/libsdl2[joystick,video]
+ media-libs/sdl2-mixer[mod,mp3,timidity]
+ media-libs/sdl2-net
+ media-libs/sdl2-image[gif]
+ media-libs/smpeg
+"
+DEPEND="${RDEPEND}"
+BDEPEND="$(unpacker_src_uri_depends)"
+
+PATCHES=(
+ # From Fedora:
+ "${FILESDIR}"/${PN}-4.3.2.0-music-info-url.patch
+ "${FILESDIR}"/${PN}-4.1.0.0-CVE-2011-4606.patch
+)
+
+src_unpack() {
+ unpack ${P}-linux.tar.gz
+ cd "${S}"
+ unpack \
+ rockslevels-emc-1.0.tar.gz \
+ rockslevels-sp-1.0.tar.gz \
+ rockslevels-dx-1.0.tar.gz
+ cd levels
+ unpacker \
+ Andreas_Buschbeck-1.0.0.zip \
+ rnd_jue-v8.tar.bz2 \
+ BD2K3-1.0.0.zip \
+ rnd-contrib-1.0.0.tar.gz \
+ Snake_Bite-1.0.0.zip \
+ Contributions-1.2.0.zip \
+ Boulder_Dash_Dream-1.0.0.zip \
+ Sokoban-1.0.0.zip \
+ Zelda-1.0.0.zip \
+ ZeldaII-1.0.0.zip \
+ Emerald_Mine_Club-3.1.3.7z \
+ RS_MIX_01-needs_rnd_jue.zip \
+ RS_MIX_01-standalone.zip \
+ Supaplex-2.0.0.zip \
+ wg_v1-0.zip \
+ wf_v1-3.zip \
+ ese_v1-1.zip \
+ es_b_v1-2.zip \
+ ww_v1-0.zip
+}
+
+src_prepare() {
+ default
+ sed -i \
+ -e 's:\$(MAKE_CMD):$(MAKE) -C $(SRC_DIR):' \
+ -e '/^MAKE/d' \
+ -e '/^CC/d' \
+ Makefile || die
+
+ sed -i \
+ -e '/^LDFLAGS/s/=/+=/' \
+ src/Makefile || die
+}
+
+src_compile() {
+ replace-cpu-flags k6 k6-1 k6-2 i586
+
+ local makeopts="BASE_PATH=/usr/share/${PN} RO_GAME_DIR=/usr/share/${PN} RW_GAME_DIR=/usr/share/${PN} EXTRA_CFLAGS=-DUSE_USERDATADIR_FOR_COMMONDATA"
+ emake -j1 clean
+ emake ${makeopts} OPTIONS="${CFLAGS}"
+}
+
+src_install() {
+ dobin rocksndiamonds
+ insinto "/usr/share/${PN}"
+ doins -r docs graphics levels music sounds
+
+ einstalldocs
+ doicon "${DISTDIR}/${PN}.png"
+ make_desktop_entry ${PN} "Rocks 'N' Diamonds" ${PN}
+}