# Distributed under the terms of the GNU General Public License v2 EAPI="1" inherit eutils autotools subversion games DESCRIPTION="A 3D Fantasy MMORPG" HOMEPAGE="http://planeshift.it" SRC_URI="" RESTRICT="mirror" IUSE="mysql" SLOT="live" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" ESVN_REPO_URI="https://planeshift.svn.sourceforge.net/svnroot/planeshift/stable" ESVN_STORE_DIR="${DISTDIR}/svn-src" ESVN_PROJECT="${PN/-svn}" ESVN_BOOTSTRAP="./autogen.sh" RDEPEND="${DEPEND} " DEPEND="${COMMON_DEPEND} sys-devel/autoconf sys-devel/automake dev-util/ftjam dev-games/crystalspace mysql? ( virtual/mysql ) " S="${WORKDIR}/${P/_/}" pkg_setup() { games_pkg_setup } src_unpack(){ subversion_src_unpack cd "${S}" # eautoreconf } src_compile() { econf \ --enable-cpu-specific-optimizations=maximum \ || die "econf failed" jam -q || die "emake failed" } src_install() { for installTarget in install_bin install_plugin install_lib \ install_include install_data install_config do jam -q -s DESTDIR="${D}" ${installTarget} \ || die "jam ${installTarget} failed" done prepgamesdirs } #pkg_postinst() { #}