+DIST extract-xiso-2.7.1.tar.gz 207518 SHA256 4aff3f16f687d4ef18607702b08a133e37ea969bc87c5a1d5f5bba91698ae993 SHA512 a7153d96fa7cfb01dfa385a0984d94dc0fa5ac14ce9f7e2d50287b7e1edbb6a4ba84b6b874aa2628b1a82f23b30687958e411699487896cc48787f48e0e012c6 WHIRLPOOL 74fbc9ec42ae7e4df0657de4711802db63dc552825c8a11ae814ca59273aae8d5e82a432540a5dbb7f5e2b557cc7d452876c33144c8ca1be7d45b00f2da4b24a
DIST extract-xiso_v2.5_src.tgz 207052 SHA256 056bae1d970a1907aebebc796724fc82debac72010e8227f9ce5a470f16714d7 SHA512 ae73d5814167894f60530f9cb88485a9bcc39a60da87ed20b8b579f8e3f91542df102c2f9cb868ce61ff61c1a5add63d4bec66097f039c906353762358760dec WHIRLPOOL e59664007267ed5daa927e5669bb32050618af7282d5f672b2829c0782a9e8c4bc2da55534c7a4339defab14671e75d8c47d1fde0730874a9cf13486f47a1140
--- /dev/null
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+MY_PV=${PV/_beta/b}
+
+DESCRIPTION="Tool for extracting and creating optimised Xbox ISO images"
+HOMEPAGE="http://sourceforge.net/projects/extract-xiso"
+SRC_URI="mirror://sourceforge/extract-xiso/${P}.tar.gz"
+
+LICENSE="BSD-4"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e 's:__LINUX__:__linux__:' \
+ *.[ch] */*.[ch] || die
+}
+
+doit() { echo "$@"; "$@"; }
+
+src_compile() {
+ doit $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} \
+ extract-xiso.c libftp-*/*.c -o extract-xiso || die
+}
+
+src_install() {
+ dobin extract-xiso || die
+ dodoc README.TXT
+}