1 |
commit: 1aa46177dd3d0ea8b72d1496527b809237c68b43 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 4 08:33:08 2017 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 4 08:45:02 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aa46177 |
7 |
|
8 |
games-util/wit: version bump to 2.40a |
9 |
|
10 |
games-util/wit/Manifest | 1 + |
11 |
.../files/wit-2.40a-sizeof-pointer-memaccess.patch | 20 ++++++++++++ |
12 |
games-util/wit/wit-2.40a.ebuild | 38 ++++++++++++++++++++++ |
13 |
3 files changed, 59 insertions(+) |
14 |
|
15 |
diff --git a/games-util/wit/Manifest b/games-util/wit/Manifest |
16 |
index ef5e1703290..7ccc45abed0 100644 |
17 |
--- a/games-util/wit/Manifest |
18 |
+++ b/games-util/wit/Manifest |
19 |
@@ -1,2 +1,3 @@ |
20 |
DIST wit-2.30a.tar.xz 716252 SHA256 5a63e554f69462474825c056abbd1411dcd0d6a24e9232a97a6c0d118eebe970 SHA512 177ae16a39b474116925a8b6cdae465ceb3e0a3cac2d3b704703ab59eed0cf380d63ad6617b56248c9030aa5250befebc31f06de1c97b8c1801c90922e8bdc69 WHIRLPOOL c5cd75213c7e25a887593d34a5812f68c9e5d8e5806d76e05201f4a1f6e74e797740c384fd06c6fe225556729a073e00259b44ed1d623313beea51b8bde3661e |
21 |
DIST wit-2.31a.tar.xz 717292 SHA256 73c6496f8c7477f5c25aa3bba981b5e98fb58eeb668d3a877a019a1c29c98cad SHA512 69ec679082e6fac2545d0af0ec3899a5d4a68fd10e26d8678bdd6facf3f80b83ea89347f54e2e2f553c91ecc4fa969a64021b003f29c18a4acea4cc1febebfe0 WHIRLPOOL f70c3e429fdc7ee91015f34b43df8328c7134be1f2309c9239d99cbce983022a33cf9e140311fcd7112a540899cdb8ddea97747c6b165c69da713283705824dd |
22 |
+DIST wit-2.40a.tar.xz 723448 SHA256 75b03490e8f72497bebd584a5c1e5d0813828e14413df89c97857072f860319a SHA512 f119ed9dffbb42ba9037444aaa992adaa812c176d1e412f9df6c5b59efff51a24cca0141700939efec7845ac1d42cc9a30100e19ef39adee0306872181b28b5b WHIRLPOOL 16ef0fad03f82228c776deeba8920f1b193d958ec1583623eeb78296323b19e8478e057ae95bf82452e685c7690c5c9ce8883a24f3a45d4770aa044c1ac85248 |
23 |
|
24 |
diff --git a/games-util/wit/files/wit-2.40a-sizeof-pointer-memaccess.patch b/games-util/wit/files/wit-2.40a-sizeof-pointer-memaccess.patch |
25 |
new file mode 100644 |
26 |
index 00000000000..a6083103b85 |
27 |
--- /dev/null |
28 |
+++ b/games-util/wit/files/wit-2.40a-sizeof-pointer-memaccess.patch |
29 |
@@ -0,0 +1,20 @@ |
30 |
+--- wit-2.40a/src/wfuse.c |
31 |
++++ wit-2.40a/src/wfuse.c |
32 |
+@@ -340,7 +340,7 @@ |
33 |
+ } |
34 |
+ ResetWBFS(df->wbfs); |
35 |
+ FREE(df->wbfs); |
36 |
+- memset(df,0,sizeof(df)); |
37 |
++ memset(df,0,sizeof(*df)); |
38 |
+ n_dfile--; |
39 |
+ } |
40 |
+ |
41 |
+@@ -352,7 +352,7 @@ |
42 |
+ |
43 |
+ if (found_df) |
44 |
+ { |
45 |
+- memset(found_df,0,sizeof(found_df)); |
46 |
++ memset(found_df,0,sizeof(*found_df)); |
47 |
+ WBFS_t * wbfs = MALLOC(sizeof(*wbfs)); |
48 |
+ InitializeWBFS(wbfs); |
49 |
+ enumError err = OpenWBFS(wbfs,source_file,false,true,0); |
50 |
|
51 |
diff --git a/games-util/wit/wit-2.40a.ebuild b/games-util/wit/wit-2.40a.ebuild |
52 |
new file mode 100644 |
53 |
index 00000000000..9a34590663e |
54 |
--- /dev/null |
55 |
+++ b/games-util/wit/wit-2.40a.ebuild |
56 |
@@ -0,0 +1,38 @@ |
57 |
+# Copyright 1999-2017 Gentoo Foundation |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=6 |
61 |
+ |
62 |
+inherit eutils toolchain-funcs |
63 |
+ |
64 |
+DESCRIPTION="A set of command line tools to manipulate Wii/GameCube ISO images and WBFS containers" |
65 |
+HOMEPAGE="http://wit.wiimm.de/" |
66 |
+SRC_URI="https://dev.gentoo.org/~radhermit/distfiles/${P}.tar.xz" |
67 |
+ |
68 |
+LICENSE="GPL-2" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64 ~x86" |
71 |
+IUSE="+fuse +zlib" |
72 |
+ |
73 |
+RDEPEND=" |
74 |
+ app-arch/bzip2 |
75 |
+ fuse? ( sys-fs/fuse ) |
76 |
+ zlib? ( sys-libs/zlib ) |
77 |
+" |
78 |
+DEPEND="${RDEPEND}" |
79 |
+ |
80 |
+DOCS="doc/*.txt" |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}"/${PN}-2.30a-makefile.patch |
84 |
+ "${FILESDIR}"/${PN}-2.30a-no-exec-stack.patch |
85 |
+ "${FILESDIR}"/${P}-sizeof-pointer-memaccess.patch |
86 |
+) |
87 |
+ |
88 |
+src_compile() { |
89 |
+ export NO_FUSE=$(usex fuse 0 1) |
90 |
+ export NO_ZLIB=$(usex zlib 0 1) |
91 |
+ |
92 |
+ emake INSTALL_PATH="${D}"/usr CC="$(tc-getCC)" |
93 |
+ emake doc |
94 |
+} |