spruce up gentoo files
authorAndrei Zavada <johnhommer@gmail.com>
Wed, 18 Feb 2015 01:13:48 +0000 (03:13 +0200)
committerAndrei Zavada <johnhommer@gmail.com>
Wed, 18 Feb 2015 01:13:48 +0000 (03:13 +0200)
gentoo/ChangeLog [new file with mode: 0644]
gentoo/cnrun.ebuild
gentoo/metadata.xml [new file with mode: 0644]

diff --git a/gentoo/ChangeLog b/gentoo/ChangeLog
new file mode 100644 (file)
index 0000000..34e6696
--- /dev/null
@@ -0,0 +1,6 @@
+# ChangeLog for sci-biology/cnrun
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  18 Jan 2015; Andrei Zavada <johnhommer@gmail.com> cnrun-2.0.2.ebuild:
+  Initial packaging for gentoo.
index 3abd01b8b8cf0680e335965bac360f714501ffbb..dd02af21ff52d9ed15b00945d281456b85cee9db 100644 (file)
@@ -1,28 +1,23 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
 EAPI="5"
-inherit eutils
 
 DESCRIPTION="A NeuroML-enabled, neuronal network simulator w/ conductance- and rate-based HH neurons"
 HOMEPAGE="http://johnhommer.com/academic/code/cnrun"
-SRC_URI="http://johnhommer.com/academic/code/cnrun/source/${PN}-${PV}.tar.xz"
+SRC_URI="http://johnhommer.com/academic/code/cnrun/source/${P}.tar.xz"
 
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-DEPEND="sci-libs/gsl
-       dev-libs/libxml2
-       dev-lang/lua"
+RDEPEND="dev-libs/libxml2
+        dev-lang/lua
+        sci-libs/gsl"
 
-src_configure() {
-        econf \
-                --bindir="${EPREFIX}"/bin
-}
+DEPEND="${RDEPEND}"
 
-src_install() {
-       emake DESTDIR="${D}" install || die "make install failed"
-       dodoc AUTHORS ChangeLog* README || die "dodoc failed"
+src_configure() {
+       econf --bindir="${EPREFIX}"/bin
 }
diff --git a/gentoo/metadata.xml b/gentoo/metadata.xml
new file mode 100644 (file)
index 0000000..48dcd97
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <herd>sci-biology</herd>
+  <maintainer>
+    <email>johnhommer@gmail.com</email>
+    <name>Andrei Zavada</name>
+  </maintainer>
+  <longdescription>
+    CNrun is a neuronal network simulator, with these features:
+
+    * a conductance- and rate-based Hodgkin-Huxley neurons, a Rall and
+      Alpha-Beta synapses;
+    * a 6-5 Runge-Kutta integration method: slow but precise, adjustable;
+    * Poisson, Van der Pol, Colpitts oscillators and interface for
+      external stimulation sources;
+    * NeuroML network topology import/export;
+    * logging state variables, spikes;
+    * implemented as a Lua module, for scripting model behaviour (e.g.,
+      to enable plastic processes regulated by model state);
+    * interaction (topology push/pull, async connections) with other
+      cnrun models running elsewhere on a network, with interactions
+      (planned).
+
+    Note that there is no `cnrun' executable, which existed in cnrun-1.*.
+    Instead, you write a script for your simulation in Lua, and execute
+    it as detailed in /usr/share/lua-cnrun/examples/example1.lua.
+  </longdescription>
+</pkgmetadata>