diff options
author | 2008-10-18 15:16:48 -0400 | |
---|---|---|
committer | 2008-10-18 15:16:48 -0400 | |
commit | e07c72077d039d94037bb4aa4d5e494e63f41590 (patch) | |
tree | 356d2551b195ab3c554a4b5c6554658e48685684 /sci-misc/swarm | |
parent | Added sci-libs/pydsscc ebuild. (diff) | |
download | ezod-e07c72077d039d94037bb4aa4d5e494e63f41590.tar.gz ezod-e07c72077d039d94037bb4aa4d5e494e63f41590.tar.bz2 ezod-e07c72077d039d94037bb4aa4d5e494e63f41590.zip |
Initial import of sci-misc/swarm ebuild.
Diffstat (limited to 'sci-misc/swarm')
-rw-r--r-- | sci-misc/swarm/ChangeLog | 8 | ||||
-rw-r--r-- | sci-misc/swarm/Manifest | 5 | ||||
-rw-r--r-- | sci-misc/swarm/files/swarm-2.2.3-amd64.patch | 12 | ||||
-rw-r--r-- | sci-misc/swarm/metadata.xml | 13 | ||||
-rw-r--r-- | sci-misc/swarm/swarm-2.2.3.ebuild | 59 |
5 files changed, 97 insertions, 0 deletions
diff --git a/sci-misc/swarm/ChangeLog b/sci-misc/swarm/ChangeLog new file mode 100644 index 0000000..5638875 --- /dev/null +++ b/sci-misc/swarm/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for sci-misc/swarm +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*swarm-2.2.3 (17 Oct 2008) + + 17 Oct 2008; Aaron Mavrinac <mavrinac@gmail.com> swarm-2.2.3.ebuild: + Initial import diff --git a/sci-misc/swarm/Manifest b/sci-misc/swarm/Manifest new file mode 100644 index 0000000..6cd9346 --- /dev/null +++ b/sci-misc/swarm/Manifest @@ -0,0 +1,5 @@ +AUX swarm-2.2.3-amd64.patch 505 RMD160 8a491f26d134c2393b1edfcd9bd1ae423f400d11 SHA1 ed8cc60fe250ca046c366017c5d5bcaefe319439 SHA256 33cbf9839de4950e3c16975deead12a00a461911b9025acdc21ed33d6895de6f +DIST swarm-2.2.3.tar.gz 2960666 RMD160 d99a33c423a83c6fbb4bad6b9abf554b86879af7 SHA1 e2aa16835b749dcff4f5f8c638902fb8683128cf SHA256 908412f08ae53c321a403c737de30ffa5c905d0b6f5a947bb306f08a2116be7b +EBUILD swarm-2.2.3.ebuild 1455 RMD160 b5fdeedfd0f70b2a54bab160a99b8b2ff6477b0c SHA1 232ca6909c01d2a9e996046a362f6031e28659a2 SHA256 1381f74f08a25217e1c42aa6a0ad2674a16bc858f001161aa47ffc7b2d68534e +MISC ChangeLog 232 RMD160 54470ca4f906b59a491935297805c5718ed18927 SHA1 a7c4c91fcf1ed7f25eafbdbf8131656ce76f48f7 SHA256 a745cd920a917596fa7d83bd0ac23890334ef8914f82ba29c245adb831aee088 +MISC metadata.xml 919 RMD160 13019f810458c7883faefba2c588401335660c5c SHA1 8d664d24ef108ab1d948076f9f16a4fb06c0a018 SHA256 6ada18dd001e61363ef27459d5f8afd43a7ad71cc74b8510847bb7bb8a06a4af diff --git a/sci-misc/swarm/files/swarm-2.2.3-amd64.patch b/sci-misc/swarm/files/swarm-2.2.3-amd64.patch new file mode 100644 index 0000000..57635da --- /dev/null +++ b/sci-misc/swarm/files/swarm-2.2.3-amd64.patch @@ -0,0 +1,12 @@ +--- configure.old 2006-08-21 01:14:07.000000000 -0400 ++++ configure 2008-10-18 11:16:54.000000000 -0400 +@@ -25823,6 +25823,9 @@ + elif test -d ${jdkdir}/jre/lib/i386/native_threads; then + threads=native + JAVACMD="\${jdkdir}/jre/bin/java" ++ elif test -d ${jdkdir}/jre/lib/amd64/native_threads; then ++ threads=native ++ JAVACMD="\${jdkdir}/jre/bin/java" + elif test -d ${expand_jdkdir}/bin/linux/native_threads; then # IBMJDK + threads=native + proc=linux diff --git a/sci-misc/swarm/metadata.xml b/sci-misc/swarm/metadata.xml new file mode 100644 index 0000000..dd6ebb4 --- /dev/null +++ b/sci-misc/swarm/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer> + <name>Aaron Mavrinac</name> + <email>mavrinac@gmail.com</email> +</maintainer> +<longdescription lang="en"> +Swarm is a software package for multi-agent simulation of complex systems, originally developed at the Santa Fe Institute. Swarm is intended to be a useful tool for researchers in the study of agent based models. Swarm software comprises a set of code libraries which enable simulations of agent based models to be written in the Objective-C or Java computer languages. These libraries will work on a very wide range of computer platforms. The basic architecture of Swarm is the simulation of collections of concurrently interacting agents: with this architecture, we can implement a large variety of agent based models. +</longdescription> +</pkgmetadata> + diff --git a/sci-misc/swarm/swarm-2.2.3.ebuild b/sci-misc/swarm/swarm-2.2.3.ebuild new file mode 100644 index 0000000..e60c683 --- /dev/null +++ b/sci-misc/swarm/swarm-2.2.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="Swarm is a platform for agent-based models." +HOMEPAGE="http://www.swarm.org" +SRC_URI="http://pj.freefaculty.org/Swarm/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="java hdf5" + +DEPEND="dev-lang/tcl + dev-lang/tk + dev-tcltk/blt + >=media-libs/libpng-1.2.5 + >=sys-libs/zlib-1.2.2 + x11-libs/libXpm + virtual/emacs + hdf5? ( >=sci-libs/hdf5-1.6.2 ) + java? ( >=virtual/jdk-1.4.2 )" +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! built_with_use --missing false gcc objc ; then + eerror "Your GCC compiler has been built without Objective-C support." + eerror "Please enable the 'objc' USE flag and re-emerge sys-devel/gcc." + elog "You can enable this USE flag either globally in /etc/make.conf," + elog "or just for specific packages in /etc/portage/package.use." + die "sys-devel/gcc missing objc support" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-amd64.patch +} + +src_compile() { + javaconf="--without-jdkdir" + use java && javaconf="--with-jdkdir=`java-config -O`" + hdf5conf="--without-hdf5dir" + use hdf5 && hdf5conf="--with-hdf5dir" + econf \ + --enable-shared \ + ${javaconf} \ + ${hdf5conf} \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS NEWS README THANKS +} |