public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Pacho Ramos" <pacho@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/rocksndiamonds/
Date: Thu,  9 May 2024 08:44:00 +0000 (UTC)	[thread overview]
Message-ID: <1715244221.6d8d5352630a6dd9c7be03d3d5eadcfd4dba0f7e.pacho@gentoo> (raw)

commit:     6d8d5352630a6dd9c7be03d3d5eadcfd4dba0f7e
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Thu May  9 08:42:36 2024 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Thu May  9 08:43:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d8d5352

games-arcade/rocksndiamonds: add 4.3.8.2

Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 games-arcade/rocksndiamonds/Manifest               |   1 +
 .../rocksndiamonds/rocksndiamonds-4.3.8.2.ebuild   | 116 +++++++++++++++++++++
 2 files changed, 117 insertions(+)

diff --git a/games-arcade/rocksndiamonds/Manifest b/games-arcade/rocksndiamonds/Manifest
index cb49f75aedd0..fb6039738bcc 100644
--- a/games-arcade/rocksndiamonds/Manifest
+++ b/games-arcade/rocksndiamonds/Manifest
@@ -19,6 +19,7 @@ DIST rockslevels-emc-1.0.tar.gz 3824268 BLAKE2B 0feadd5d9c6225c8574576281d07e14f
 DIST rockslevels-sp-1.0.tar.gz 373564 BLAKE2B 3f724ea55bbdaae80a35d6a9f5d8751a9228862fbe1ba45419343b1968510e10d3c82cc01844e35bc35561e65df3bc7e5ec2a0b807e1f56359dc7dccc16e3cb0 SHA512 2d44e9238a72846b9d4fbab90288aa3b23af4957ffe0d42d95c523fd22f3587572864b3fc0b277894d2f3f56d6eff52ea009e5b2d59aebc34163a1067662d729
 DIST rocksndiamonds-4.3.5.4-linux.tar.gz 4641623 BLAKE2B 9e0d89bb44e9cfe8fd41ae805faad04a55d250a0345117e579e7787eb2871edb499570894eb2adb9775b894150a479b4f7b8bdc6aad811ba72dfee25df7b3a13 SHA512 5cb41910fbed60b961547d80663ddf4206860776de4e9a2c757de608cb4bc38565fca12f98ec4cfa5f9abab5f83aaab9d2190898ce0bd280f575c3bdd86aa03b
 DIST rocksndiamonds-4.3.6.0-linux.tar.gz 4655278 BLAKE2B 29f6976119f2af3f3807f783d199e5ef3a34d1799718d66ff166420838c9352a559ec156d767e2731ca3c6b387f4254f6640938a1ba560444e79186a4878adf0 SHA512 db74d74b89b9ab307d2979eb11e8192a74bd3ef4edb0987c59ce839410a01322a0c0384c009603a370443ce6ce96e3d5e0a82b14002bad62a4a965bd40aefeac
+DIST rocksndiamonds-4.3.8.2-linux.tar.gz 4666115 BLAKE2B 7c25db6a41544b53fc3f2b16ec3ab77c5407c5d5c6fecf5f69d2a853b7142a2d5e444df37a526b8400c6fdc93b96680073d38aaa9e5adfcc783841263740a12c SHA512 3a722d55ce157d52b287ae833941dbd5b5ee45eb6ab277fdcd9e4838426cd27736b8a5c0a17b64d60a2f84d72b02fd7b983b6cc763bd9ea84be62e64fbdde8e9
 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.8.2.ebuild b/games-arcade/rocksndiamonds/rocksndiamonds-4.3.8.2.ebuild
new file mode 100644
index 000000000000..ba61e9a2fc4b
--- /dev/null
+++ b/games-arcade/rocksndiamonds/rocksndiamonds-4.3.8.2.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2024 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.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}
+}


             reply	other threads:[~2024-05-09  8:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-09  8:44 Pacho Ramos [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-09  8:44 [gentoo-commits] repo/gentoo:master commit in: games-arcade/rocksndiamonds/ Pacho Ramos
2024-05-09  8:44 Pacho Ramos
2023-05-28 13:57 Pacho Ramos
2023-05-28 13:57 Pacho Ramos
2023-04-28 15:30 Pacho Ramos
2023-03-09 20:13 Ionen Wolkens
2022-12-19 16:48 Pacho Ramos
2022-10-23 22:43 Pacho Ramos
2022-10-23 22:22 Pacho Ramos
2021-06-23  2:24 Ionen Wolkens
2020-06-07 18:38 Pacho Ramos
2019-02-27 20:45 James Le Cuirot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1715244221.6d8d5352630a6dd9c7be03d3d5eadcfd4dba0f7e.pacho@gentoo \
    --to=pacho@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox