--- vdrift-20060708.ebuild 2006-10-16 20:33:35.000000000 +0100 +++ vdrift-20061006.ebuild 2006-10-16 20:51:58.000000000 +0100 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit eutils python games +inherit eutils games MY_P="${PN}-${PV:0:4}-${PV:4:2}-${PV:6}" DESCRIPTION="A driving simulation made with drift racing in mind" @@ -12,7 +12,7 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86" +KEYWORDS="~amd64 ~x86" IUSE="debug nls" RDEPEND="media-libs/openal @@ -37,14 +37,15 @@ src_unpack() { unpack ${MY_P}-src.tar.bz2 - cd ${S} unpack ${MY_P}-data-full.tar.bz2 # We need our CXXFLAGS sed -ri \ -e "/env.Append\(CCFLAGS/s:-O2:${CXXFLAGS// /\' ,\'}:" \ - SConstruct \ + ${S}/SConstruct \ || die "sed SConstruct failed" + + sed -i "s:os.system:#os.system:g" ${S}/src/SConscript } src_compile() { @@ -55,6 +56,8 @@ scons ${MAKEOPTS/j/j } \ ${myconf} \ prefix='' \ + destdir=${D} \ + bindir=${GAMES_BINDIR} \ localedir=/usr/share/locale \ datadir=${GAMES_DATADIR}/vdrift \ use_binreloc=0 \ @@ -62,11 +65,9 @@ } src_install() { - dogamesbin build/${PN} || die "dogamesbin failed" + scons install || die "scons install failed" dodoc docs/* - insinto "${GAMES_DATADIR}"/${PN} - doins -r data/* || die "doins failed" newicon data/textures/small/icons/vdrift-64x64.png ${PN}.png make_desktop_entry ${PN} "VDrift"