# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils DESCRIPTION="Extracts SSI packages used by Duke Nukem 3D expansion packs" HOMEPAGE="http://www.jonof.id.au/misc" SRC_URI="http://static.jonof.id.au/dl/unpackssi.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ~x86" IUSE="" DEPEND="app-arch/unzip" RDEPEND="" src_prepare() { # Fix Makefile to use proper compiler and optimizations echo "unpackssi: unpackssi.c" >Makefile || die "makefile config failed" # Patch for 64-bit support (should not affect performance on 32-bit machine) sed -e 's/\tint /\tint32_t /' -e 's/\tlong /\tint32_t /' \ -i unpackssi.c || die "int32_t sed failed" } src_compile() { tc-export CC emake || die "emake failed" } src_install() { dobin ${PN} dodoc readme.txt }