diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/xrick |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/xrick')
-rw-r--r-- | games-arcade/xrick/Manifest | 8 | ||||
-rw-r--r-- | games-arcade/xrick/files/xrick-021212-exit.patch | 23 | ||||
-rw-r--r-- | games-arcade/xrick/files/xrick-021212-fullscreen.patch | 21 | ||||
-rw-r--r-- | games-arcade/xrick/files/xrick-021212-zlib.patch | 13 | ||||
-rw-r--r-- | games-arcade/xrick/metadata.xml | 8 | ||||
-rw-r--r-- | games-arcade/xrick/xrick-021212-r1.ebuild | 54 |
6 files changed, 127 insertions, 0 deletions
diff --git a/games-arcade/xrick/Manifest b/games-arcade/xrick/Manifest new file mode 100644 index 000000000000..5efc84e80048 --- /dev/null +++ b/games-arcade/xrick/Manifest @@ -0,0 +1,8 @@ +AUX xrick-021212-exit.patch 702 SHA256 98ed84db1512a57223ec81fb1b0e3f03de7719ff91ccd3a7457d3d8b699e3631 SHA512 8d22419f6912297a900d3ad7101684af1c52c093ea3ea513aea52220b41b5b2a5c2b474883da887b4160b16ab3c9f90a885e48694a48a68470083b643be6d551 WHIRLPOOL f2411a696ad03d2476b1796704b2a3f82d6ee199b56e248972f7d7f77e6ada59168e0d63aaa4b357deed2ce15b9f95001a9f83afe2faa21286507ca39e69109e +AUX xrick-021212-fullscreen.patch 950 SHA256 a92a56ee05537cdd2832d5ea46c78cbc7b5ed71728808af7d4e780d10ea7f98a SHA512 694d56f9094483bf5e11b905bb21408a684669b3c6d1fc150de8c1300b56ca2349dfbceefff5c936328eb202776bc3f5b6ea74b54ffbb082de27aa7827d7ce7c WHIRLPOOL 1c827262251ad6cb50eaff8daec2cf294b30f2ae189ed06bbcdc239514132252b6bc2140a7bcb1af04d32af56e85d544788a587dc0517aeae833a2f5109c1b65 +AUX xrick-021212-zlib.patch 368 SHA256 6483ed191bb34f02e66d96e8e7c7a351f5d452c923a7fefdec83380fd84a6c17 SHA512 98bacc7c768b9aba4cf1b1b850ae229004412532520406f29dc1f1027ee1d11fb74800a3eb6f840cce68378879904295da26d13b1ed49816d262f124ff63e837 WHIRLPOOL f5c50a916dc8cf8e752739c4a3fcf6ce4f2b447da108184595f3f817696b2da0f8d8fa675b6df1eff90a7f820eaf589d8f3627a72796b99b28789fab7a2862e5 +DIST xrick-021212.tgz 1648538 SHA256 aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b SHA512 7a6547dfce586512c3c4aa7fd5aa0d7d8bd223dbec6a9211e858034bd73d44f168266441d8f3475cddbed8f3a19c7c0df31345b62e2ecfb860664e54facb48bf WHIRLPOOL 4706601639a622b75df0b1f6e6f93f39a00d0ba522487af7f0012833a27b3ba48cb9b0b5d660d4aaafae0931612b251c1529be7c687fa50b2aaf02603d11d7e9 +EBUILD xrick-021212-r1.ebuild 1210 SHA256 0651dfa92d268af14bac3d9056e77dd1355f7dae87a06fa9e3873920559b0d2e SHA512 cba23611d097e0ef216d6fce36ef145a98809e5e0d8d2c7c42d4030b4f99e8b417fff4bf87920752c004ff0ad36a442aa078440e8cf5c6930b18d9b93461e510 WHIRLPOOL 3a8ecb65c542d515bca026b185a1982dc6ca6c50e753653eca86dcb5a9ab83cf60739599b121cb4590461df153c983840c60b22bc288925869da99d7166f64dd +MISC ChangeLog 2537 SHA256 59c88ba9cb5caf9236d461d513f8fd7dc6205ab9c727a42f65e24ec9a56030c6 SHA512 140b7870c2f0f90a92a311de0fa6f70113cce3acc96a7a3980e592757b852923a08492428ea37488bb10f06a415e208ff308ede5d43e6005635d2e1b18323ca0 WHIRLPOOL a9e53d0748170d583e75ac4ec661bc81e4a0fd7a21894350a8d302f44738512175929325ee13e5357474debcd4b78435d90566c21532f51313fb01e6efdd20ef +MISC ChangeLog-2015 2785 SHA256 f84fc66541b298ce735da8e3992ddecc84a05b722385bcf95c2809999ac29aeb SHA512 20eda4b087ba91f0bc625ffa307a14117aa79385986bcce78dbf7d96f38159edfe2fffd18c7a86a1779cbdc21bde6a32992f1c09fcbc797e6246d50a7ccce025 WHIRLPOOL 3325e427b31ec4877b95e020461ed31217377998e50180fe27077434a39f9c2e71bf79a015ed58e34b1c23bbeda2da800f665764e8424d2417d9b858c49c95a9 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-arcade/xrick/files/xrick-021212-exit.patch b/games-arcade/xrick/files/xrick-021212-exit.patch new file mode 100644 index 000000000000..4486a969b346 --- /dev/null +++ b/games-arcade/xrick/files/xrick-021212-exit.patch @@ -0,0 +1,23 @@ +diff -ur xrick-021212/src/sysjoy.c xrick-021212.patched/src/sysjoy.c +--- xrick-021212/src/sysjoy.c 2010-10-23 00:33:33.000000000 +0400 ++++ xrick-021212.patched/src/sysjoy.c 2010-10-23 00:42:25.000000000 +0400 +@@ -56,6 +56,7 @@ + { + if (j) + SDL_JoystickClose(j); ++ j = NULL; + } + + #endif /* ENABLE_JOYSTICK */ +diff -ur xrick-021212/src/xrick.c xrick-021212.patched/src/xrick.c +--- xrick-021212/src/xrick.c 2010-10-23 00:33:33.000000000 +0400 ++++ xrick-021212.patched/src/xrick.c 2010-10-23 00:40:47.000000000 +0400 +@@ -29,7 +29,7 @@ + data_setpath("/usr/games/lib/xrick/data.zip"); + game_run(); + data_closepath(); +- sys_shutdown(); ++ /* sys_shutdown is called via atexit */ + return 0; + } + diff --git a/games-arcade/xrick/files/xrick-021212-fullscreen.patch b/games-arcade/xrick/files/xrick-021212-fullscreen.patch new file mode 100644 index 000000000000..97271a33a28e --- /dev/null +++ b/games-arcade/xrick/files/xrick-021212-fullscreen.patch @@ -0,0 +1,21 @@ +diff -ur xrick-021212/src/sysvid.c xrick-021212.patched/src/sysvid.c +--- xrick-021212/src/sysvid.c 2002-12-24 16:33:43.000000000 +0300 ++++ xrick-021212.patched/src/sysvid.c 2011-01-14 03:03:16.636668016 +0300 +@@ -145,10 +145,14 @@ + IFDEBUG_VIDEO(sys_printf("xrick/video: SDL says, use these modes:\n");); + for (i = 0; modes[i]; i++) { + IFDEBUG_VIDEO(sys_printf(" %dx%d\n", modes[i]->w, modes[i]->h);); +- if (modes[i]->w <= modes[mode]->w && modes[i]->w >= SYSVID_WIDTH && +- modes[i]->h * SYSVID_WIDTH >= modes[i]->w * SYSVID_HEIGHT) { ++ if ((!fszoom && modes[i]->w <= modes[mode] && ++ modes[i]->w >= SYSVID_WIDTH) || ++ (fszoom && modes[i]->w > modes[mode]->w)) { + mode = i; +- fszoom = modes[mode]->w / SYSVID_WIDTH; ++ if (modes[i]->h * SYSVID_WIDTH >= modes[i]->w * SYSVID_HEIGHT) ++ fszoom = modes[mode]->w / SYSVID_WIDTH; ++ else ++ fszoom = modes[mode]->h / SYSVID_HEIGHT; + } + } + if (fszoom != 0) { diff --git a/games-arcade/xrick/files/xrick-021212-zlib.patch b/games-arcade/xrick/files/xrick-021212-zlib.patch new file mode 100644 index 000000000000..da09a46369d6 --- /dev/null +++ b/games-arcade/xrick/files/xrick-021212-zlib.patch @@ -0,0 +1,13 @@ +--- include/unzip.h.old 2012-03-24 16:13:16.012854948 +0100 ++++ include/unzip.h 2012-03-24 16:15:42.744346771 +0100 +@@ -49,6 +49,10 @@ + #include "zlib.h" + #endif + ++#ifdef _Z_OF ++#define OF _Z_OF ++#endif ++ + #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) + /* like the STRICT of WIN32, we define a pointer that cannot be converted + from (void*) without cast */ diff --git a/games-arcade/xrick/metadata.xml b/games-arcade/xrick/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/xrick/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/xrick/xrick-021212-r1.ebuild b/games-arcade/xrick/xrick-021212-r1.ebuild new file mode 100644 index 000000000000..ac919e5ea300 --- /dev/null +++ b/games-arcade/xrick/xrick-021212-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="Clone of the Rick Dangerous adventure game from the 80's" +HOMEPAGE="http://www.bigorno.net/xrick/" +SRC_URI="http://www.bigorno.net/xrick/${P}.tgz" + +LICENSE="GPL-1+ xrick" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~x86-fbsd" +IUSE="" +RESTRICT="mirror bindist" # bug #149097 + +DEPEND="media-libs/libsdl[video]" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + unpack ./xrick.6.gz +} + +src_prepare() { + epatch "${FILESDIR}"/${P}*.patch + sed -i \ + -e "/^run from/d" \ + -e "/data.zip/ s:the directory where xrick is:$(games_get_libdir)/${PN}.:" \ + xrick.6 || die + + sed -i \ + -e "s:data.zip:$(games_get_libdir)/${PN}/data.zip:" \ + src/xrick.c || die + + sed -i \ + -e "s/-g -ansi -pedantic -Wall -W -O2/${CFLAGS}/" \ + -e '/LDFLAGS/s/=/+=/' \ + -e '/CC=/d' \ + -e "/CPP=/ { s/gcc/\$(CC)/; s/\"/'/g }" \ + Makefile || die +} + +src_install() { + dogamesbin xrick + insinto "$(games_get_libdir)"/${PN} + doins data.zip + newicon src/xrickST.ico ${PN}.ico + make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico + dodoc README KeyCodes + doman xrick.6 + prepgamesdirs +} |