# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="The Recursive Porous Agent Simulation Toolkit (Repast) is one of several agent modeling toolkits that are available. Repast borrows many concepts from the Swarm agent-based modeling toolkit [1]. Repast is differentiated from Swarm since Repast has multiple pure implementations in several languages and built-in adaptive features such as genetic algorithms and regression." HOMEPAGE="http://repast.sourceforge.net" SRC_URI="mirror://sourceforge/repast/${P}.tar.gz" LICENSE="BSD LGPL-2.1 Apache-1.1 Apache-2.0 CPL-1.0 CERN FreeHEP sun-bcla-jmf ROAD ViolinStrings" SLOT="0" KEYWORDS="~x86" USE="" IUSE="" RDEPEND="virtual/jdk" S=${WORKDIR}/Repast-${PV} src_install() { declare REPASTJ_HOME=/opt/repastj # Create the run script mkdir ${S}/RepastJ/bin echo "java -jar ${REPASTJ_HOME}/repast.jar" > ${S}/RepastJ/bin/repastj chmod +x ${S}/RepastJ/bin/repastj # Install RePastJ in /opt dodir ${REPASTJ_HOME%/*} mv ${S}/RepastJ ${D}${REPASTJ_HOME} # install ldpath env.d insinto /etc/env.d doins ${FILESDIR}/90repastj }