Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13146

Modified Files:
        snns.info snns.patch 
Log Message:
SNNS: Fix 10.6 compilation, and install man pages

Index: snns.patch
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci/snns.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- snns.patch  20 Jan 2006 20:30:40 -0000      1.1
+++ snns.patch  2 Nov 2009 09:52:26 -0000       1.2
@@ -1,18 +1,18 @@
-diff -ru SNNSv4.2/xgui/sources/ui_config.c 
SNNSv4.2-patched/xgui/sources/ui_config.c
---- SNNSv4.2/xgui/sources/ui_config.c  1998-09-03 15:39:32.000000000 +0200
-+++ SNNSv4.2-patched/xgui/sources/ui_config.c  2004-02-28 21:10:11.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 -ru -x *~ SNNSv4.2/kernel/sources/kr_mem.c 
SNNSv4.2-patched/kernel/sources/kr_mem.c
---- SNNSv4.2/kernel/sources/kr_mem.c   Thu Sep  3 15:38:16 1998
-+++ SNNSv4.2-patched/kernel/sources/kr_mem.c   Thu Sep 13 19:32:29 2001
+diff -ru SNNSv4.2/configuration/Makefile.din 
SNNSv4.2-patched/configuration/Makefile.din
+--- SNNSv4.2/configuration/Makefile.din        1998-09-03 15:44:26.000000000 
+0200
++++ SNNSv4.2-patched/configuration/Makefile.din        2009-11-02 
10:44:34.000000000 +0100
+@@ -72,7 +72,7 @@
+ XGUIBINDIR         = $(INSTALLDIR)$(XGUIBINEXT)/bin$(HOSTBINEXT)
+ XGUISRCDIR         = xgui/sources
+ XGUIICONSDIR       = xgui/iconsXgui
+-MANDIR             = $(INSTALLDIR)/man
++MANDIR             = $(INSTALLDIR)/share/man
+ MAN1DIR            = $(MANDIR)/man1
+ MANSRCDIR          = man
+ 
+diff -ru SNNSv4.2/kernel/sources/kr_mem.c 
SNNSv4.2-patched/kernel/sources/kr_mem.c
+--- SNNSv4.2/kernel/sources/kr_mem.c   1998-09-03 15:38:16.000000000 +0200
++++ SNNSv4.2-patched/kernel/sources/kr_mem.c   2009-11-02 10:43:56.000000000 
+0100
 @@ -27,7 +27,9 @@
  #else
  #include <math.h>
@@ -23,9 +23,9 @@
  
  #include "kr_typ.h"    /*  Kernel Types and Constants  */
  #include "kernel.h"
-diff -ru -x *~ SNNSv4.2/kernel/sources/learn_f.c 
SNNSv4.2-patched/kernel/sources/learn_f.c
---- SNNSv4.2/kernel/sources/learn_f.c  Thu Sep  3 15:38:22 1998
-+++ SNNSv4.2-patched/kernel/sources/learn_f.c  Thu Sep 13 19:41:38 2001
+diff -ru SNNSv4.2/kernel/sources/learn_f.c 
SNNSv4.2-patched/kernel/sources/learn_f.c
+--- SNNSv4.2/kernel/sources/learn_f.c  1998-09-03 15:38:22.000000000 +0200
++++ SNNSv4.2-patched/kernel/sources/learn_f.c  2009-11-02 10:43:56.000000000 
+0100
 @@ -36,6 +36,8 @@
  #endif
  #include <ctype.h>
@@ -35,3 +35,15 @@
  #include "kr_typ.h"           /* Kernel Types and Constants  */
  #include "kr_const.h"         /* Constant Declarators for SNNS-Kernel  */
  #include "kr_def.h"           /* Default Values  */
+diff -ru SNNSv4.2/xgui/sources/ui_config.c 
SNNSv4.2-patched/xgui/sources/ui_config.c
+--- SNNSv4.2/xgui/sources/ui_config.c  1998-09-03 15:39:32.000000000 +0200
++++ SNNSv4.2-patched/xgui/sources/ui_config.c  2009-11-02 10:43:56.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++;

Index: snns.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci/snns.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- snns.info   12 Jan 2009 05:05:49 -0000      1.3
+++ snns.info   2 Nov 2009 09:52:26 -0000       1.4
@@ -16,23 +16,25 @@
 
 Package: snns
 Version: 4.2
-Revision: 11
+Revision: 12
 Maintainer: Max Horn <[email protected]>
 BuildDepends: fink (>= 0.24.12-1), x11-dev
 Depends: x11
 Source: http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/SNNSv%v.tar.gz
 UpdateConfigGuessInDirs: configuration
-ConfigureParams: --with-x --mandir='${prefix}/share/man' --enable-global
-CompileScript: <<
- ./configure --prefix=%i --mandir=%i/share/man --with-x --enable-global
- make
+ConfigureParams: <<
+ --with-x \
+ --enable-global \
+ --x-includes=/usr/X11R6/include \
+ --x-libraries=/usr/X11R6/lib
 <<
 InstallScript: <<
- make install
+ mkdir -p %i/share/man/man1
+ make install install-man INSTALLDIR=%i
  ln -s %p/bin/xgui %i/bin/snns
 <<
 PatchFile: %n.patch
-PatchFile-MD5: 194fe0495d8b6273d915d1e6f302c177
+PatchFile-MD5: 99a9ce4ed0006485b9d138b0f8d1e536
 DocFiles: Readme Readme.bugs Readme.getSNNS Readme.license
 Description: Software Simulator for Neural Networks
 DescPackaging: <<


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to