commit:     90443541fea7df61872fe5938dcb01895bb30b88
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sat Feb 13 09:29:28 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sat Feb 13 09:29:28 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=90443541

sci-biology/cnrun: correctly depend on lua

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 .../{cnrun-2.1.0-r1.ebuild => cnrun-2.1.0-r2.ebuild} | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/sci-biology/cnrun/cnrun-2.1.0-r1.ebuild 
b/sci-biology/cnrun/cnrun-2.1.0-r2.ebuild
similarity index 57%
rename from sci-biology/cnrun/cnrun-2.1.0-r1.ebuild
rename to sci-biology/cnrun/cnrun-2.1.0-r2.ebuild
index c4ef17ad8..a70eaa66a 100644
--- a/sci-biology/cnrun/cnrun-2.1.0-r1.ebuild
+++ b/sci-biology/cnrun/cnrun-2.1.0-r2.ebuild
@@ -3,6 +3,10 @@
 
 EAPI=7
 
+LUA_COMPAT=( lua5-{1..4} )
+
+inherit autotools lua
+
 DESCRIPTION="A NeuroML-enabled, precise but slow neuronal network simulator"
 HOMEPAGE="http://johnhommer.com/academic/code/cnrun";
 SRC_URI="http://johnhommer.com/code/cnrun/source/${P}.tar.xz";
@@ -11,12 +15,22 @@ LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-RDEPEND="dev-libs/libxml2
-        dev-lang/lua:*
-        sci-libs/gsl"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="${LUA_DEPS}
+       dev-libs/libxml2
+       sci-libs/gsl"
 
 DEPEND="${RDEPEND}"
 
+src_prepare() {
+       default
+       # put docs in correct dir
+       sed -i -e 
"s#docdir=\${datarootdir}/doc/lua-cnrun#docdir=\${datarootdir}/doc/${PF}#g" 
doc/Makefile.am || die
+       eautoreconf
+
+}
+
 src_configure() {
        econf --bindir="${EPREFIX}"/bin
 }

Reply via email to