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 /app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild')
-rw-r--r-- | app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild b/app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild new file mode 100644 index 000000000000..d7d153a3aa9d --- /dev/null +++ b/app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit toolchain-funcs eutils + +MY_PV=${PV/_beta/b} + +DESCRIPTION="Tool for extracting and creating optimised Xbox ISO images" +HOMEPAGE="https://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_prepare() { + epatch "${FILESDIR}"/${PN}-2.7.1-headers.patch + sed -i \ + -e 's:__LINUX__:__linux__:' \ + *.[ch] */*.[ch] || die +} + +doit() { echo "$@"; "$@"; } + +src_compile() { + # Need _GNU_SOURCE here for asprintf prototype. + doit $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} \ + extract-xiso.c libftp-*/*.c -o extract-xiso || die +} + +src_install() { + dobin extract-xiso + dodoc README.TXT +} |