initial ebuild #10390
authorMike Frysinger <vapier@gentoo.org>
Fri, 8 Nov 2002 08:22:05 +0000 (08:22 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 8 Nov 2002 08:22:05 +0000 (08:22 +0000)
app-sci/snns/ChangeLog [new file with mode: 0644]
app-sci/snns/files/digest-snns-4.2 [new file with mode: 0644]
app-sci/snns/files/snns-4.2-gentoo.patch [new file with mode: 0644]
app-sci/snns/snns-4.2.ebuild [new file with mode: 0644]

diff --git a/app-sci/snns/ChangeLog b/app-sci/snns/ChangeLog
new file mode 100644 (file)
index 0000000..ad8418c
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for app-sci/snns
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/snns/ChangeLog,v 1.1 2002/11/08 08:22:05 vapier Exp $
+
+*snns-4.2 (08 Nov 2002)
+
+  08 Nov 2002; Mike Frysinger <vapier@gentoo.org> :
+  Initial import.  Ebuild submitted by Patrick Kursawe <patrick.kursawe@web.de>.
diff --git a/app-sci/snns/files/digest-snns-4.2 b/app-sci/snns/files/digest-snns-4.2
new file mode 100644 (file)
index 0000000..5777b9a
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 4609dfd61714bfbb0842d4e8e905e584 SNNSv4.2.tar.gz 2170375
+MD5 e91242fdc43877013ade3b5f2213659a SNNSv4.2.Manual.pdf 2103861
diff --git a/app-sci/snns/files/snns-4.2-gentoo.patch b/app-sci/snns/files/snns-4.2-gentoo.patch
new file mode 100644 (file)
index 0000000..c16385d
--- /dev/null
@@ -0,0 +1,34 @@
+--- symtab.c.orig      2002-11-07 17:32:05.000000000 +0100
++++ tools/sources/symtab.c     2002-11-07 17:33:56.000000000 +0100
+@@ -23,6 +23,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>             /* for MAXFLOAT */
++#include <values.h>
+ 
+ #include "symtab.ph"
+ #include "arglist.h"
+--- ui.h.orig  2002-11-07 17:37:06.000000000 +0100
++++ xgui/sources/ui.h  2002-11-07 17:37:44.000000000 +0100
+@@ -21,8 +21,8 @@
+ 
+ ******************************************************************************/
+ 
+-#ifndef __ui
+-#define __ui
++#ifndef snns_ui
++#define snns_ui
+ 
+ /* X11 */
+ 
+--- ui_config.c.orig   2002-11-07 18:35:43.000000000 +0100
++++ xgui/sources/ui_config.c   2002-11-07 18:37:34.000000000 +0100
+@@ -492,7 +492,7 @@
+       err = fscanf(filePtr,"%*[^:]: %d\n", &noParams);
+       chkretline(1);
+       lines++;
+-      for (i=0; (i<UI_NO_LEARN_PARAMS+UI_NO_OF_CASCADE_PARAMS); i++){
++      for (i=0; (i<UI_NO_LEARN_PARAMS+UI_NO_OF_CASCADE_PARAMS) && (i<noParams); i++){
+           err = fscanf(filePtr,"%*[^:]: %f\n", &ui_learnParameters[i]);
+           chkretline(1);
+           lines++;
diff --git a/app-sci/snns/snns-4.2.ebuild b/app-sci/snns/snns-4.2.ebuild
new file mode 100644 (file)
index 0000000..6c57fe9
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/snns/snns-4.2.ebuild,v 1.1 2002/11/08 08:22:05 vapier Exp $
+
+MY_P="SNNSv${PV}"
+DESCRIPTION="Stuttgart Neural Network Simulator"
+HOMEPAGE="http://www-ra.informatik.uni-tuebingen.de/SNNS/"
+SRC_URI="http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/${MY_P}.tar.gz
+       doc? ( http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/${MY_P}.Manual.pdf )"
+
+LICENSE="SNNS-${PV}"
+KEYWORDS="x86"
+SLOT="0"
+IUSE=""
+
+DEPEND="virtual/x11
+       virtual/glibc"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+       unpack ${A}
+
+       cd ${S}
+       patch -p0 < ${FILESDIR}/${P}-gentoo.patch || die "patch failed"
+}
+
+src_compile() {
+       econf "--enable-global"
+       emake || die "emake failed"
+}
+
+src_install() {
+       for file in `find tools -type f -perm +100`; do
+               dobin $file
+       done
+       newbin xgui/sources/xgui snns
+
+       dodir /etc/env.d
+       echo XGUILOADPATH=/usr/share/doc/${P}/ > ${D}/etc/env.d/99snns
+
+       insinto /usr/share/doc/${P}
+       doins default.cfg help.hdoc
+       use doc && doins ${DISTDIR}/SNNSv4.2.Manual.pdf
+       insinto /usr/share/doc/${P}/examples
+       doins examples/*
+
+       doman man/man*/*                                 
+}