--- legends-0.3.6.ebuild 2004-02-07 15:21:45.000000000 -0500 +++ legends-0.4.0.ebuild 2004-02-08 13:58:34.000000000 -0500 @@ -6,7 +6,7 @@ DESCRIPTION="A fast-paced first-person-perspective online multiplayer game similar to Tribes" HOMEPAGE="http://hosted.tribalwar.com/legends/" -SRC_URI="http://themasters.co.za/${P}.tar.gz" +SRC_URI="http://hosted.tribalwar.com/legends/files/${P}.tar.gz" LICENSE="as-is" SLOT="0" @@ -21,18 +21,23 @@ src_unpack() { unpack ${A} cd ${S} - rm runlegends libSDL-*.so* libopenal.so + # keep libSDL-1.3.so because legends requires it as of 0.4.0, and + # 1.2.6 is highest in portage + # rm libSDL-*.so* + rm runlegends libopenal.so find . -type f -exec chmod a-x '{}' \; - chmod a+x ispawn lindedicated LinLegends + chmod a+x lindedicated LinLegends } src_install() { local dir=${GAMES_PREFIX_OPT}/${PN} + local LIBSDL=libSDL-1.3.so.0 dodir ${dir} cp -R * ${D}/${dir}/ || die "cp failed" - dogamesbin ${FILESDIR}/legends || die "dogamesbin failed (1)" + newgamesbin ${FILESDIR}/legends-${PV} legends || die "newgamesbin failed (1)" dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends + dosed "s:LIBSDL:${LIBSDL}:" ${GAMES_BINDIR}/legends if [ `use dedicated` ] ; then dogamesbin ${FILESDIR}/legends-ded || die "dogamesbin failed (2)" dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends-ded