diff options
author | Pacho Ramos <pacho@gentoo.org> | 2022-12-19 17:48:08 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2022-12-19 17:48:24 +0100 |
commit | 6316be711a74fa6d39e9127efeef4391e6326806 (patch) | |
tree | 9dd4759faff773dc59378b4d2dac0830e63c2797 /games-arcade | |
parent | package.mask: Last rite x11-wm/sawfish and related packages (diff) | |
download | gentoo-6316be711a74fa6d39e9127efeef4391e6326806.tar.gz gentoo-6316be711a74fa6d39e9127efeef4391e6326806.tar.bz2 gentoo-6316be711a74fa6d39e9127efeef4391e6326806.zip |
games-arcade/rocksndiamonds: add 4.3.4.0
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/rocksndiamonds/Manifest | 1 | ||||
-rw-r--r-- | games-arcade/rocksndiamonds/rocksndiamonds-4.3.4.0.ebuild | 117 |
2 files changed, 118 insertions, 0 deletions
diff --git a/games-arcade/rocksndiamonds/Manifest b/games-arcade/rocksndiamonds/Manifest index 027ab971641f..5d94937d32c0 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.2.1.tar.gz 4415020 BLAKE2B 2886891dcc32b71a61b83717941d56348ae8a330d7a5e2dfde1675ebd2c6f44ebbd365d6396d0099a9f9f7968f280036c5735499a7e9d9b94796671f37561a93 SHA512 c0f53e9664895ba5e749d417843ba8e4a4b481e7ac8729e12f2714264e24b72dc5acba5019ca2bd30064406dd8d7d6a26505d35c1e5636898862d7c8df99808f +DIST rocksndiamonds-4.3.4.0-linux.tar.gz 4633000 BLAKE2B 465e93f6df7995b4787b70c78977c5cda9f8e6b04de33cb292b4d91a09c9461fccfe17a308f37eed8aa2b0d94409aed5f629aedc894a01aac06bcf5604a9363a SHA512 6bb7e09f495f0858298f8ff70b8296e70a11e9f7ace4d7f3ea06e176f643239d5eb27926a9c31bf9454dc1a750c4f0a48f07a7b9a5900ec79e50526adc4ce977 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.4.0.ebuild b/games-arcade/rocksndiamonds/rocksndiamonds-4.3.4.0.ebuild new file mode 100644 index 000000000000..d7982fe0f1c9 --- /dev/null +++ b/games-arcade/rocksndiamonds/rocksndiamonds-4.3.4.0.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2022 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} +} |