summaryrefslogtreecommitdiff
path: root/games-arcade/rocksndiamonds
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-28 20:02:04 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-28 20:02:04 +0100
commita4e2a46beb5e4858ef27bdedbb0ff6d2ced430ad (patch)
tree852c90a4bf354c30ea66504f70bfab5401fba18d /games-arcade/rocksndiamonds
parent5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (diff)
gentoo resync : 28.04.2018
Diffstat (limited to 'games-arcade/rocksndiamonds')
-rw-r--r--games-arcade/rocksndiamonds/Manifest9
-rw-r--r--games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch12
-rw-r--r--games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch29
-rw-r--r--games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-CVE-2011-4606.patch18
-rw-r--r--games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-YN.patch22
-rw-r--r--games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-music-info-url.patch71
-rw-r--r--games-arcade/rocksndiamonds/rocksndiamonds-4.1.0.0.ebuild (renamed from games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild)74
7 files changed, 144 insertions, 91 deletions
diff --git a/games-arcade/rocksndiamonds/Manifest b/games-arcade/rocksndiamonds/Manifest
index 9d5202b6a0d5..ff73dd2ebbea 100644
--- a/games-arcade/rocksndiamonds/Manifest
+++ b/games-arcade/rocksndiamonds/Manifest
@@ -1,5 +1,6 @@
-AUX rocksndiamonds-3.3.1.2-parallel-build.patch 582 BLAKE2B 3c1f5b08d2999e46f8ddfa87f1ecbf7e12fed5ab8487d4252da6fbb86cd9a533c8f2ce30b34a7d147d17063dcdc98c19596298ab29be9aa4f67a0640b8d25684 SHA512 300e4cc6e21bb6d52b681b053cdb700298e04224545c6745a6c33d0a9bf1c9726cdc63f877fa6aeeca7b9b2e0c96f723f0d10c9d6fc141f56c6eaf31acd12cc3
-AUX rocksndiamonds-3.3.1.2-perms.patch 1258 BLAKE2B b1e01e8795b3b8be20acde789235b8d39aa09e6fcccbe92835a8e973b20d1994e911cb8c52abd749c54d5e935acecaaeb955fe9558b9f4c6b07163a526907775 SHA512 b89ba59d29d88cfe10e9b16fa500b20d29677aa567469c644f57d10d2cb6dcf6009ef607cd5b1a9bb8aab36ec96f7293fc5b283bedc3013c6e74cc0486ee0196
+AUX rocksndiamonds-4.1.0.0-CVE-2011-4606.patch 961 BLAKE2B 10eae087eb32a90ae0f05df568aaaf9d9360badc056b77d2a1f00be4df24d7cfa884234860adb69aa4a21b8a6367c46b2d4b612c0205be10bfd1ba226c4e5f1e SHA512 5a76f0e16dd7e6bc7157050dae77f05b7b02130d2ee08051d6ef1574b201da0498d7bd14a480dd33a062ee323eb572291f9f20d44fc1bc48603980763f7763de
+AUX rocksndiamonds-4.1.0.0-YN.patch 700 BLAKE2B 92cdef21f6a301b37671fd2748b72f0b774861644fe75b480a99230ea0b4df6525207d09e661125e42aa20375ac4da0be96c5dc308a58ad237969a736f87bcb7 SHA512 3781a5ac8c43fdf6372c5e74b3ab3e57eeaff6adb814a590330a457b1ef8c37447d93e549745fa96fec3fc45e463d7669982aeda58fabd6ac8e20708746f6859
+AUX rocksndiamonds-4.1.0.0-music-info-url.patch 2598 BLAKE2B 9edde25c6306eebf10e365828b367fb090972e16aba53010c5ea1bba4628e4ec1cebcf13a80e5a68e19c00d84db0b0347e891411f3dc19a4b117b5c82b6c39bd SHA512 64a6908f7cf9e9d332634e8222c71b30fecbc550e49433d619a58f4a1a5c688e757c1c035bfc1a6d1c2a672921219e3390b87b8b96f0b4abefcc2048bec94038
DIST BD2K3-1.0.0.zip 4715324 BLAKE2B 72e25038c41a7a1c29a896459db97954d18731d6980f5096c28ebddb09c0b6d7bdb68a8c56f17d26c71085e4ae883d2ceaad8e95b5525cbf532d18f32ecdd638 SHA512 80f172584d2077a3ade0749790802ef9cecde75283d6b889e7d2fedf9b55fd1fd7f1f1fd5596b17d5b2a542172699a929ea626086e77d28fde11487440c43622
DIST Boulder_Dash_Dream-1.0.0.zip 10923437 BLAKE2B 976156c763281b993550a08361c5b6279a471e24568205c0369cc3f57d99e97db84d914a560c909b30fe92b8c8c10931cf6a8a8de4da181edac410a770d922b7 SHA512 f2765f52653b4f9d6c4a6548076281f6749d08c2dfd220345bdc0058b94d51c49ef81acdc87ff71bc1b3f337f3cc6a1d08b9e5a02d6aaeaeac5d894f97ba3d8e
DIST Contributions-1.2.0.zip 9499312 BLAKE2B a90a84d230ab1032819bc3821871eb027ed83a8e289b01692f80185c42d50429ca8c6928b72b1ae5ea102ba2a0d25cd25391dc53b0cdb37ef4504233292dc2da SHA512 463e629bd4f592e24a82d20f1f249cea9e266a7c370bb5b079add8daa125d1af69a69746b696dd92f89b90e50972c6b2ba007aab87beed4cd980c0c7bdb81920
@@ -10,6 +11,6 @@ DIST rnd_jue-v8.tar.bz2 17244645 BLAKE2B 92d0cf646296b065c9ebe54d8d5ecb831eeb497
DIST rockslevels-dx-1.0.tar.gz 211151 BLAKE2B 637a600f9197925d82e7ef344c90f04e8508c6b114fd07ad00977d91a856ff85dc29207e5f22c659382ee0759f8607e9dc8ad0c0de3826d57b74d494320b57ad SHA512 2e1bc4484a76bf638e8ce285972b20b6377e0483abb2475e2343d48de1f84ee102f430049d685b89bc1087e0f20b9b6e29370f8e6cae66b480d3650be9991f44
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-3.3.1.2.tar.gz 2614904 BLAKE2B a231a4a1beb35c29466f58c680cd86ddffbff48974d59d32c6e2a030b24fb3e6e99b825a254963a77830e62a6e1030f86350b1b9091d08b94dbbe577a2dbf2c2 SHA512 b627e4a8e2f03dc380b5a111cc42f296b283e63b20e019f522a8a1431fe9c138eb0dc7aa0fa03dd843c3a93bcd0a90704e651f5a590cb7d4c3e3b46976125755
-EBUILD rocksndiamonds-3.3.1.2.ebuild 3087 BLAKE2B eeba104c7b3142e1925e46eda7c3198dbca13505a45269ee5de424cee4d453f15cf398706d100c39c423a6afeeaa32ff5f5c42785c4260833fc5240200b543cb SHA512 104576da1521df65333c0067900c6a11e5a0b084ff2034c63168651b489999e797d8c52094057836b5011ea36cd25f14af467784705827a7324a4df67be54a20
+DIST rocksndiamonds-4.1.0.0.tar.gz 3850621 BLAKE2B 9c85aced223b855eec0300634d2fb30513d8b2d1856d8e134594f7de1669cf64f487a87335e28f7b8abb0c13492573ac5bd3261cfc5274287e75d0ace258ab93 SHA512 4949c2e9a601c8e005b006b13b82e36f7f001321051d392bc34aa4c234c6cddfa9fae16e58d83070072cac1429e13f1fb96d2c4b2ecd35a309065ca3c1c869c2
+EBUILD rocksndiamonds-4.1.0.0.ebuild 2488 BLAKE2B 86402f119e6ba7782ec8dc2387579cdafb4ad8bbf32cf63798e4f052a2c31cba940d56a3db14e911e0ea09e0d4b7cbc6b954d309bbd994e68d869096c59d1ca4 SHA512 1986c566cebafaa1d84f97457bd908f93ff6c215410297d330fbe89168b047049f223edc5376d50cd4f56809728492033eefa35485360218913c881e377697fd
MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118
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
deleted file mode 100644
index 0aa709652129..000000000000
--- a/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-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
deleted file mode 100644
index 65a06e6cdf77..000000000000
--- a/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-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/files/rocksndiamonds-4.1.0.0-CVE-2011-4606.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-CVE-2011-4606.patch
new file mode 100644
index 000000000000..1aaa9e43dcc3
--- /dev/null
+++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-CVE-2011-4606.patch
@@ -0,0 +1,18 @@
+diff -up rocksndiamonds-4.0.0.1/src/libgame/setup.c.CVE-2011-4606 rocksndiamonds-4.0.0.1/src/libgame/setup.c
+--- rocksndiamonds-4.0.0.1/src/libgame/setup.c.CVE-2011-4606 2017-01-12 07:53:09.497075662 -0500
++++ rocksndiamonds-4.0.0.1/src/libgame/setup.c 2017-01-12 07:58:19.319076661 -0500
+@@ -1311,11 +1311,13 @@ 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_FILE (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 DIR_PERMS_PUBLIC_ALL (MODE_R_ALL | MODE_X_ALL | MODE_W_ALL)
+
diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-YN.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-YN.patch
new file mode 100644
index 000000000000..70c95bd076dc
--- /dev/null
+++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-YN.patch
@@ -0,0 +1,22 @@
+diff -up rocksndiamonds-4.0.0.1/src/tools.c.yesno rocksndiamonds-4.0.0.1/src/tools.c
+--- rocksndiamonds-4.0.0.1/src/tools.c.yesno 2017-01-12 07:47:09.921343574 -0500
++++ rocksndiamonds-4.0.0.1/src/tools.c 2017-01-12 07:51:45.059649653 -0500
+@@ -3901,6 +3901,18 @@ static int RequestHandleEvents(unsigned
+ result = 0;
+ break;
+
++ case KSYM_y:
++ case KSYM_Y:
++ if (req_state & REQ_ASK)
++ result = TRUE;
++ break;
++
++ case KSYM_n:
++ case KSYM_N:
++ if (req_state & REQ_ASK)
++ result = FALSE;
++ break;
++
+ default:
+ HandleKeysDebug(key);
+ break;
diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-music-info-url.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-music-info-url.patch
new file mode 100644
index 000000000000..f913be382e94
--- /dev/null
+++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-4.1.0.0-music-info-url.patch
@@ -0,0 +1,71 @@
+diff -up rocksndiamonds-4.1.0.0/src/files.c.url rocksndiamonds-4.1.0.0/src/files.c
+--- rocksndiamonds-4.1.0.0/src/files.c.url 2018-04-10 15:44:08.000000000 -0400
++++ rocksndiamonds-4.1.0.0/src/files.c 2018-04-17 16:30:19.726734512 -0400
+@@ -10127,11 +10127,13 @@ static struct MusicFileInfo *get_music_f
+ { "artist_header", &tmp_music_file_info.artist_header },
+ { "album_header", &tmp_music_file_info.album_header },
+ { "year_header", &tmp_music_file_info.year_header },
++ { "url_header", &tmp_music_file_info.url_header },
+
+ { "title", &tmp_music_file_info.title },
+ { "artist", &tmp_music_file_info.artist },
+ { "album", &tmp_music_file_info.album },
+ { "year", &tmp_music_file_info.year },
++ { "url", &tmp_music_file_info.url },
+
+ { NULL, NULL },
+ };
+@@ -10247,11 +10249,13 @@ void LoadMusicInfo()
+ checked_free(music_file_info->artist_header);
+ checked_free(music_file_info->album_header);
+ checked_free(music_file_info->year_header);
++ checked_free(music_file_info->url_header);
+
+ checked_free(music_file_info->title);
+ checked_free(music_file_info->artist);
+ checked_free(music_file_info->album);
+ checked_free(music_file_info->year);
++ checked_free(music_file_info->url);
+
+ free(music_file_info);
+
+diff -up rocksndiamonds-4.1.0.0/src/main.h.url rocksndiamonds-4.1.0.0/src/main.h
+--- rocksndiamonds-4.1.0.0/src/main.h.url 2018-04-10 15:44:08.000000000 -0400
++++ rocksndiamonds-4.1.0.0/src/main.h 2018-04-17 16:30:19.727734490 -0400
+@@ -3463,11 +3463,13 @@ struct MusicFileInfo
+ char *artist_header;
+ char *album_header;
+ char *year_header;
++ char *url_header;
+
+ char *title;
+ char *artist;
+ char *album;
+ char *year;
++ char *url;
+
+ int music;
+
+diff -up rocksndiamonds-4.1.0.0/src/screens.c.url rocksndiamonds-4.1.0.0/src/screens.c
+--- rocksndiamonds-4.1.0.0/src/screens.c.url 2018-04-17 16:30:19.728734467 -0400
++++ rocksndiamonds-4.1.0.0/src/screens.c 2018-04-17 16:34:00.653803869 -0400
+@@ -3060,6 +3060,19 @@ void HandleInfoScreen_Music(int button)
+ ystart += ystep_head;
+ }
+
++ if (!strEqual(list->url, UNKNOWN_NAME))
++ {
++ if (!strEqual(list->url_header, UNKNOWN_NAME))
++ DrawTextSCentered(ystart, font_head, list->url_header);
++ else
++ DrawTextSCentered(ystart, font_head, "from the website");
++
++ ystart += ystep_head;
++
++ DrawTextFCentered(ystart, font_text, "%s", list->url);
++ ystart += ystep_head;
++ }
++
+ DrawTextSCentered(ybottom, FONT_TEXT_4,
+ "Press any key or button for next page");
+
diff --git a/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild b/games-arcade/rocksndiamonds/rocksndiamonds-4.1.0.0.ebuild
index 509d8487cc0d..f6f2cdcddcf4 100644
--- a/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild
+++ b/games-arcade/rocksndiamonds/rocksndiamonds-4.1.0.0.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit flag-o-matic eutils games
+EAPI=6
+inherit desktop flag-o-matic
DESCRIPTION="A Boulderdash clone"
HOMEPAGE="http://www.artsoft.org/rocksndiamonds/"
@@ -21,21 +21,25 @@ SRC_URI="http://www.artsoft.org/RELEASES/unix/rocksndiamonds/${P}.tar.gz
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="X sdl"
+IUSE=""
-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
- )"
+RDEPEND="
+ 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}
app-arch/unzip
- X? ( x11-libs/libXt )
- !sdl? ( x11-libs/libXt )"
+"
+
+PATCHES=(
+ # From Fedora:
+ "${FILESDIR}"/${PN}-4.1.0.0-YN.patch
+ "${FILESDIR}"/${PN}-4.1.0.0-music-info-url.patch
+ "${FILESDIR}"/${PN}-4.1.0.0-CVE-2011-4606.patch
+)
src_unpack() {
unpack ${P}.tar.gz
@@ -56,10 +60,7 @@ src_unpack() {
}
src_prepare() {
- # make it parallel-friendly.
- epatch \
- "${FILESDIR}"/${P}-parallel-build.patch \
- "${FILESDIR}"/${P}-perms.patch
+ default
sed -i \
-e 's:\$(MAKE_CMD):$(MAKE) -C $(SRC_DIR):' \
-e '/^MAKE/d' \
@@ -74,36 +75,17 @@ src_prepare() {
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
+ local makeopts="RO_GAME_DIR=/usr/share/${PN} RW_GAME_DIR=/usr/share/${PN}"
+ emake -j1 clean
+ emake ${makeopts} OPTIONS="${CFLAGS}" sdl2
}
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}"
+ dobin rocksndiamonds
+ insinto "/usr/share/${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
+ einstalldocs
+ newicon graphics/gfx_classic/RocksIcon32x32.png ${PN}.png
+ make_desktop_entry rocksndiamonds "Rocks 'N' Diamonds" /usr/share/pixmaps/${PN}.png
}