diff options
Diffstat (limited to 'games-arcade/rocksndiamonds')
5 files changed, 175 insertions, 0 deletions
diff --git a/games-arcade/rocksndiamonds/Manifest b/games-arcade/rocksndiamonds/Manifest new file mode 100644 index 000000000000..4b0f7aac3a1b --- /dev/null +++ b/games-arcade/rocksndiamonds/Manifest @@ -0,0 +1,17 @@ +AUX rocksndiamonds-3.3.1.2-parallel-build.patch 582 SHA256 b7f0f24331d875d0b9e43fce1577b48647ad0485271b984064ec0b4ebac0fdfe SHA512 300e4cc6e21bb6d52b681b053cdb700298e04224545c6745a6c33d0a9bf1c9726cdc63f877fa6aeeca7b9b2e0c96f723f0d10c9d6fc141f56c6eaf31acd12cc3 WHIRLPOOL 8f063cb128b8f43b78235de5b4a820dad3119d5969ef1e9d98f35555ea84180e6cd9d76d87ac6ef007e7ee1c5f5c6e340e0c7ecbdcc95d058a4b95694eb91eca +AUX rocksndiamonds-3.3.1.2-perms.patch 1258 SHA256 56914fc689f21847eb7a382a8df5301a85562ec3bb1b59dcfd0c1bb0c9ac9c84 SHA512 b89ba59d29d88cfe10e9b16fa500b20d29677aa567469c644f57d10d2cb6dcf6009ef607cd5b1a9bb8aab36ec96f7293fc5b283bedc3013c6e74cc0486ee0196 WHIRLPOOL 3b4a3ec8d7dcd4b7af2bf510f4e16ec9e6e340b312f883258805511882e7af20e489a2bc5c10d38ffc43678b7a3acba195659443c0cf3d3ec3e30d129a7df3b8 +DIST BD2K3-1.0.0.zip 4715324 SHA256 5fc5130c859e69d6907bff87e01ff2296d59f7376202a8aacc03e55f359fb351 SHA512 80f172584d2077a3ade0749790802ef9cecde75283d6b889e7d2fedf9b55fd1fd7f1f1fd5596b17d5b2a542172699a929ea626086e77d28fde11487440c43622 WHIRLPOOL fa172ee6d691be22211eb55e47425f13fc32b0c415216921a3f778e099da5a3baaccee4988bb5c9cf1fbb79a2c3af6bd81427e3235632c89d19ed21608976a46 +DIST Boulder_Dash_Dream-1.0.0.zip 10923437 SHA256 6f9dc48023830fbdc318d8f18013b5a7e84ab3c815ba566a4a2c46faeb65c969 SHA512 f2765f52653b4f9d6c4a6548076281f6749d08c2dfd220345bdc0058b94d51c49ef81acdc87ff71bc1b3f337f3cc6a1d08b9e5a02d6aaeaeac5d894f97ba3d8e WHIRLPOOL 6638737d61489dbe9df4b7e67f1c753fa6162d06fab2d5a36ed569e8e25dccfe9713d46be1a326dcadace895048c85c7ffd35e7caa23c6fc7107f6af2faf3f2c +DIST Contributions-1.2.0.zip 9499312 SHA256 d533dc69cd136d2bb7d76d674ab087285799191e0a516320aba8ac2368ce6dd2 SHA512 463e629bd4f592e24a82d20f1f249cea9e266a7c370bb5b079add8daa125d1af69a69746b696dd92f89b90e50972c6b2ba007aab87beed4cd980c0c7bdb81920 WHIRLPOOL f99c6456caaf160e00b0dc2e5d9f59a47fa493cd479e33e1c443a35d61b80f4ec476cd7e5b25349976a7bd588bd792988849c16a4c6133783f14444b7b9fc888 +DIST Snake_Bite-1.0.0.zip 6506066 SHA256 6f6b573d89588f56cb3b326f3a42fb57277307bd709713dbef329885ac4d006d SHA512 82131cb68c9654cb49ddbb46b0c15f13ce98af4f3b2a46e1cc4f2980eea45a707297c74787f365996321f39a9f7656a9492c3d437e3da0d71a295447c868960e WHIRLPOOL 68224d591918405fcd5283b9fdac61e3411293cfdf723ce080722c5258821b6ed724da63c3d8611fa61a6f468c3f5063fcf7358f6d8226b1a0ebcf1eade48441 +DIST Sokoban-1.0.0.zip 295339 SHA256 63f9d36789edca22c0f9454202f9fd21fcee89111642459b5882314f13ebdc0e SHA512 b63be5b00c4c0b153bb6fc45fde556c26cd49fa672b279cce2f61b572d9c056d5e10a565530bdf539024d75ffdd38efe68310e98b8f810d9c5dfc17b24ec376b WHIRLPOOL 984764549648d193106421418eeb48e28ed40839f7a052ec43f9bf5650bc4ff9d31ac5ec9808ed5b099b59f7f7b7ab434ffd0a021d7908fea277c62946d7a00e +DIST rnd-contrib-1.0.0.tar.gz 3389242 SHA256 c24b56399ba202ebf60bb60316e81d7996ccd02ae281a7e54f2f555e088a1ce1 SHA512 8bd82f9c34e6e2d2b7ea22fc5899e72a64587469bfb1336d0d33e6ee2bcd04b3b6adca958861b0e29e18e8dac74651c642126511cacb247072e367783a5c6a08 WHIRLPOOL b2cec77905d686555498694fa5d6b43a4ae1c55301aa6ba5be584e84b9e51e0ef9ea69fe4c984c9dcd0abe387d3694f4d402cf1da28b9aee8275e647e39f0a5c +DIST rnd_jue-v8.tar.bz2 17244645 SHA256 442a21a24b7c004f0c8f8c4fc844cac7f3ff4692574a0a7df2835a1da4dab7fa SHA512 cbff4cd16c812d77fe8446da4016d8f75dfa8675298a745062ff53a7783a39a59cffd886fedf1097023e72e111f10ddd56f280a109058a1a8ee069d664d2c59c WHIRLPOOL 045b2b44b2e0b1d0c2af10fb45c672c527d3f96ee2129b7732c3646ab793e53953624fc2b2efbb8a2721c97ba6a232a97d76e6ee47e3dcf5830adce8e3a1f3c8 +DIST rockslevels-dx-1.0.tar.gz 211151 SHA256 23f1710710eef1dcd1c490670de16d2d58dc98f3fdd9a2df186bdca590e57579 SHA512 2e1bc4484a76bf638e8ce285972b20b6377e0483abb2475e2343d48de1f84ee102f430049d685b89bc1087e0f20b9b6e29370f8e6cae66b480d3650be9991f44 WHIRLPOOL 22c623fd17ed704dfbc0c2b0331cc91199f6f5e3eab15b0a1e9d8c58f609751c226563003f3d983d24697f58d4da5e6464be4ad0007084423f4d6538acbe11c9 +DIST rockslevels-emc-1.0.tar.gz 3824268 SHA256 a04e554fb8b6d010c73e21de090f116dad6054e43e00edc80c59c71a8a1eaa0c SHA512 9abad888fa00bc305444367c5ab8ffdad95eaca22613573e44d5ecd93b1a9a1cbc931497c064002d90fd3174c4661d0b009ede7746b2fe8da0a00072303a1301 WHIRLPOOL d7ce616105621d9a7ee7f3c8406188ad9b0fdf01cd3d17339b8d350ebc5fdcfdc4eb78952198df045309999caca5fcff8c79deb01210437224960baf6bc611af +DIST rockslevels-sp-1.0.tar.gz 373564 SHA256 770d75a5926bb924c6787a6f95ee9f7af743b629ea14005ab0375b57eb488f25 SHA512 2d44e9238a72846b9d4fbab90288aa3b23af4957ffe0d42d95c523fd22f3587572864b3fc0b277894d2f3f56d6eff52ea009e5b2d59aebc34163a1067662d729 WHIRLPOOL 9f3cf3b764b7a137591f287b55f4cab4918e03b0a7a663f7cbe658a280b181c161e53b0855d5bafa57f4072af470199eced2fb1bc98d13369dc373f46baf8205 +DIST rocksndiamonds-3.3.1.2.tar.gz 2614904 SHA256 c117c20026299c6c935bd531ef9b0dc767731f600881d12ceb80c831483755f3 SHA512 b627e4a8e2f03dc380b5a111cc42f296b283e63b20e019f522a8a1431fe9c138eb0dc7aa0fa03dd843c3a93bcd0a90704e651f5a590cb7d4c3e3b46976125755 WHIRLPOOL 6c8d76747b8a0e254e649966b5e8f03ad12e6b15f0a3f4b98efe7df482db55ed4351d7c25d5f45b8b7d3098bf6f65c4bb2ac58ecaa66a6397532169fc7cb5bf4 +EBUILD rocksndiamonds-3.3.1.2.ebuild 3085 SHA256 ecabc3df5914ab7a6d3104e981ba8709433e0d872a0231acd0c8e4ed9f64d0b1 SHA512 a27327091cc50406d97e20e5e7c2d5bb02b9948d6b60791add4c10b922a805647ad5ea87bfc6c3ae5f3eebc9d48b76e266af2244ff5baa1970fd5009b55e770d WHIRLPOOL 329e9cb27c81147beba36af61b25ee1365caa3263931a94f51da127c6375528702a2ac2c9e2c074a3a0e8a826d20bf66caad3fd3586c22e3da452b13b3c422f2 +MISC ChangeLog 2555 SHA256 7eeaeff83ca7cdf8d0fa420a8f8e7724e142ad96f31a8320b8f6433ef865fbb7 SHA512 b59566c520ed9425bc90ab2227d8610f654f35bd4b40d1fd5c6c020463427e6d76e306d871ed0cb1aed9f42b61c94f11c905f5011a36f442b647937a12d3b100 WHIRLPOOL 29b22e4a317e189fa68912ae51448355c34c6e47e0cd4444e0e82223d9153d4faad4de6ce1d62621e90b155249d595ea7d8e7c3a4d6c78dcc3b2da78545b50bd +MISC ChangeLog-2015 7992 SHA256 d975a792c08a6f58b44fd662a267dbb3e7d83e379dd8fd2f5d959a103d27fb8c SHA512 519d69fc5f9ddf1d306b3587554bb840c32bea3c3ad63f9bf93663910a14a2412ca79b4f051f02edb6cc03f48c3bc91cd9b9328a0e0ed6b4851ce26f9aa1b597 WHIRLPOOL 0dee0725ee02495f24c16980ca9cffc04d1a363330e8df141f521320eff29101038efdeae329f35a3ffbe7e820a310e131118e6ed59e831d1129b7776d3db039 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch new file mode 100644 index 000000000000..0aa709652129 --- /dev/null +++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch @@ -0,0 +1,12 @@ +diff -ru rocksndiamonds-3.3.1.2.orig/src/Makefile rocksndiamonds-3.3.1.2/src/Makefile +--- rocksndiamonds-3.3.1.2.orig/src/Makefile 2013-11-24 08:05:56.000000000 -0500 ++++ rocksndiamonds-3.3.1.2/src/Makefile 2014-12-31 15:47:37.539941795 -0500 +@@ -255,7 +255,7 @@ + # build targets + # ----------------------------------------------------------------------------- + +-all: $(AUTOCONF) libgame_dir game_em_dir game_sp_dir $(PROGNAME) ++all: $(PROGNAME) + + $(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(OBJS) $(ICON) + $(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME) diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch new file mode 100644 index 000000000000..65a06e6cdf77 --- /dev/null +++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch @@ -0,0 +1,29 @@ +diff -up rocksndiamonds-3.3.0.1/src/libgame/setup.c.CVE-2011-4606 rocksndiamonds-3.3.0.1/src/libgame/setup.c +--- rocksndiamonds-3.3.0.1/src/libgame/setup.c.CVE-2011-4606 2011-12-12 14:28:30.083078680 -0500 ++++ rocksndiamonds-3.3.0.1/src/libgame/setup.c 2011-12-12 14:34:36.758744753 -0500 +@@ -1293,11 +1293,14 @@ void sortTreeInfo(TreeInfo **node_first) + #define MODE_W_ALL (S_IWUSR | S_IWGRP | S_IWOTH) + #define MODE_X_ALL (S_IXUSR | S_IXGRP | S_IXOTH) + ++#define MODE_R_PRIVATE (S_IRUSR) + #define MODE_W_PRIVATE (S_IWUSR) ++#define MODE_X_PRIVATE (S_IXUSR) ++ + #define MODE_W_PUBLIC (S_IWUSR | S_IWGRP) + #define MODE_W_PUBLIC_DIR (S_IWUSR | S_IWGRP | S_ISGID) + +-#define DIR_PERMS_PRIVATE (MODE_R_ALL | MODE_X_ALL | MODE_W_PRIVATE) ++#define DIR_PERMS_PRIVATE (MODE_R_PRIVATE | MODE_X_PRIVATE | MODE_W_PRIVATE) + #define DIR_PERMS_PUBLIC (MODE_R_ALL | MODE_X_ALL | MODE_W_PUBLIC_DIR) + + #define FILE_PERMS_PRIVATE (MODE_R_ALL | MODE_W_PRIVATE) +@@ -1456,7 +1459,8 @@ void createDirectory(char *dir, char *te + if (running_setgid) + posix_umask(last_umask & group_umask); + else +- dir_mode |= MODE_W_ALL; ++ if (permission_class == PERMS_PUBLIC) ++ dir_mode |= MODE_W_ALL; + + if (!fileExists(dir)) + if (posix_mkdir(dir, dir_mode) != 0) diff --git a/games-arcade/rocksndiamonds/metadata.xml b/games-arcade/rocksndiamonds/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/rocksndiamonds/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild b/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild new file mode 100644 index 000000000000..79b78f435a0d --- /dev/null +++ b/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit flag-o-matic eutils games + +DESCRIPTION="A Boulderdash clone" +HOMEPAGE="http://www.artsoft.org/rocksndiamonds/" +SRC_URI="http://www.artsoft.org/RELEASES/unix/rocksndiamonds/${P}.tar.gz + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Contributions-1.2.0.zip + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/BD2K3-1.0.0.zip + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Boulder_Dash_Dream-1.0.0.zip + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/rnd-contrib-1.0.0.tar.gz + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Snake_Bite-1.0.0.zip + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Sokoban-1.0.0.zip + http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-emc-1.0.tar.gz + http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-sp-1.0.tar.gz + http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-dx-1.0.tar.gz + mirror://gentoo/rnd_jue-v8.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="X sdl" + +RDEPEND="X? ( x11-libs/libX11 ) + !sdl? ( x11-libs/libX11 ) + sdl? ( + >=media-libs/libsdl-1.2.3[joystick,video] + >=media-libs/sdl-mixer-1.2.4[mod,mp3,timidity] + media-libs/sdl-net + >=media-libs/sdl-image-1.2.2[gif] + media-libs/smpeg + )" +DEPEND="${RDEPEND} + app-arch/unzip + X? ( x11-libs/libXt ) + !sdl? ( x11-libs/libXt )" + +src_unpack() { + unpack ${P}.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 + unpack \ + 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 +} + +src_prepare() { + # make it parallel-friendly. + epatch \ + "${FILESDIR}"/${P}-parallel-build.patch \ + "${FILESDIR}"/${P}-perms.patch + 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="RO_GAME_DIR=${GAMES_DATADIR}/${PN} RW_GAME_DIR=${GAMES_STATEDIR}/${PN}" + if use X || { ! use X && ! use sdl; } ; then + emake -j1 clean + emake ${makeopts} OPTIONS="${CFLAGS}" x11 + mv rocksndiamonds{,.x11} + fi + if use sdl ; then + emake -j1 clean + emake ${makeopts} OPTIONS="${CFLAGS}" sdl + mv rocksndiamonds{,.sdl} + fi +} + +src_install() { + if use X || { ! use X && ! use sdl; } ; then + dogamesbin rocksndiamonds.x11 + fi + if use sdl ; then + dogamesbin rocksndiamonds.sdl + dosym rocksndiamonds.sdl "${GAMES_BINDIR}/rocksndiamonds" + else + dosym rocksndiamonds.x11 "${GAMES_BINDIR}/rocksndiamonds" + fi + insinto "${GAMES_DATADIR}/${PN}" + doins -r docs graphics levels music sounds + + newman rocksndiamonds.{1,6} + dodoc CREDITS ChangeLog README + newicon graphics/gfx_classic/rocks_icon_32x32.pcx ${PN}.pcx + make_desktop_entry rocksndiamonds "Rocks 'N' Diamonds" /usr/share/pixmaps/${PN}.pcx + + prepgamesdirs +} |