provide an ebuild
authorAndrei Zavada <johnhommer@gmail.com>
Sat, 29 Nov 2014 22:59:57 +0000 (00:59 +0200)
committerAndrei Zavada <johnhommer@gmail.com>
Sat, 29 Nov 2014 22:59:57 +0000 (00:59 +0200)
gentoo/cnrun.ebuild [new file with mode: 0644]

diff --git a/gentoo/cnrun.ebuild b/gentoo/cnrun.ebuild
new file mode 100644 (file)
index 0000000..3abd01b
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 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"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="sci-libs/gsl
+       dev-libs/libxml2
+       dev-lang/lua"
+
+src_configure() {
+        econf \
+                --bindir="${EPREFIX}"/bin
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "make install failed"
+       dodoc AUTHORS ChangeLog* README || die "dodoc failed"
+}