summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild')
-rw-r--r--app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild b/app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild
new file mode 100644
index 000000000000..6700a32e485d
--- /dev/null
+++ b/app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Tools for manipulating Xbox ISO images"
+HOMEPAGE="http://www.layouts.xbox-scene.com/"
+SRC_URI="http://www.layouts.xbox-scene.com/main/files/XDVDFSToolsv${PV}.rar"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="|| ( app-arch/unrar app-arch/rar )"
+RDEPEND=""
+
+S=${WORKDIR}/XDVDFS_Tools/src
+
+src_unpack() {
+ unpack ${A}
+ mv "XDVDFS Tools" XDVDFS_Tools
+ sed -i \
+ -e '/^LDFLAGS = -s/d' \
+ -e '/^CCFLAGS =/s:=.*:= ${CFLAGS} ${CPPFLAGS}:g' \
+ -e "/^CC =/s:=.*:=$(tc-getCC):" \
+ "${S}"/makefile.prefab
+ epatch "${FILESDIR}"/${P}-fnamefix.patch
+ mkdir "${S}"/xdvdfs_extract/output "${S}"/xdvdfs_maker/output
+}
+
+src_compile() {
+ local d
+ for d in xdvdfs_{dumper,extract,maker} ; do
+ emake -C ${d} || die
+ done
+}
+
+src_install() {
+ dobin xdvdfs_dumper/output/xdvdfs_dumper || die "xdvdfs_dumper"
+ dobin xdvdfs_extract/output/xdvdfs_extract || die "xdvdfs_extract"
+ dobin xdvdfs_maker/output/xdvdfs_maker || die "xdvdfs_maker"
+ dohtml ../documentation/*.htm
+ dodoc ../Readme.txt
+}