the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: euler
Version: 1.61.0
Revision: 5
Maintainer: None
BuildDepends: glib2-dev, gtk+2-dev (>= 2.12.0-1), libgettext3-dev, gettext-bin, gettext-tools, x11-dev, atk1 (>= 1.20.0-1), pango1-xft2-ft219-dev (>= 1.18.4-4), pixman (>= 0.10.0-1), libiconv-dev, cairo (>= 1.6-1), expat1, freetype219, glitz, libpng3, fontconfig2-dev
Depends: glib2-shlibs, gtk+2-shlibs (>= 2.12.0-1), libgettext3-shlibs, atk1-shlibs, pango1-xft2-ft219-shlibs (>= 1.18.4-4), libiconv
Source: mirror:sourceforge:%n/%n-%v.tgz
Source-MD5: 4a45d7aaba2b73c7978e6d5623141103
Patch: %n.patch
ConfigureParams: --disable-dependency-tracking PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
InstallScript: <<
mkdir -p %i/share
mkdir -p %i/bin
make install DESTDIR=%d
mv %i/bin/euler %i/bin/eulerx
echo "#!/bin/sh" > %i/bin/euler
echo "(cd %p/share/euler/progs; %p/bin/eulerx $*)" >> %i/bin/euler
chmod 755 %i/bin/euler
<<
DocFiles: AUTHORS COPYING README TODO ChangeLog
Description: Numerical laboratory with a programming language
DescDetail: <<
The system can handle real, complex and interval numbers, vectors and matrices.
It can produce 2D/3D plots. Included is a modern programming language.
Euler is not a MatLab clone, but very similar to this program.
<<
DescPort: <<
The patch takes care of
- a wrong static declaration, causing compiler crash
- wrong use of the system times() function, causing runime bus error.
<<
License: GPL
Homepage: http://euler.sourceforge.net/
diff -ur -x Makefile -x 'config*' -x libtool euler-1.61.0/src/command.c euler-1.61.0_corr/src/command.c
--- euler-1.61.0/src/command.c 2005-10-24 02:38:24.000000000 +0200
+++ euler-1.61.0_corr/src/command.c 2007-10-06 09:05:14.000000000 +0200
@@ -235,7 +235,7 @@
extern int builtin_count;
extern builtintyp builtin_list[];
-extern int command_count;
+static int command_count;
extern commandtyp command_list[];
static void do_list (void)
@@ -732,7 +732,6 @@
}
-static int command_count;
commandtyp command_list[] = {
{"quit",c_quit,do_quit},
diff -ur -x Makefile -x 'config*' -x libtool euler-1.61.0/src/main.c euler-1.61.0_corr/src/main.c
--- euler-1.61.0/src/main.c 2005-10-30 23:54:17.000000000 +0100
+++ euler-1.61.0_corr/src/main.c 2007-10-06 09:55:07.000000000 +0200
@@ -439,7 +439,8 @@
gettimer(TIMEOFDAY,&t);
return (t.tv_sec+t.tv_nsec/1000000000.0);
#else
- return ((double)(times(NULL)))/CLK_TCK;
+ static struct tms tp;
+ return ((double)(times(&tp)))/CLK_TCK;
#endif
}
Package: euler
Version: 1.61.0
Revision: 5
Maintainer: None
BuildDepends: glib2-dev, gtk+2-dev (>= 2.12.0-1), libgettext3-dev, gettext-bin, gettext-tools, x11-dev, atk1 (>= 1.20.0-1), pango1-xft2-ft219-dev (>= 1.18.4-4), pixman (>= 0.10.0-1), libiconv-dev, cairo (>= 1.6-1), expat1, freetype219, glitz, libpng3, fontconfig2-dev
Depends: glib2-shlibs, gtk+2-shlibs (>= 2.12.0-1), libgettext3-shlibs, atk1-shlibs, pango1-xft2-ft219-shlibs (>= 1.18.4-4), libiconv
Source: mirror:sourceforge:%n/%n-%v.tgz
Source-MD5: 4a45d7aaba2b73c7978e6d5623141103
Patch: %n.patch
ConfigureParams: --disable-dependency-tracking PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
InstallScript: <<
mkdir -p %i/share
mkdir -p %i/bin
make install DESTDIR=%d
mv %i/bin/euler %i/bin/eulerx
echo "#!/bin/sh" > %i/bin/euler
echo "(cd %p/share/euler/progs; %p/bin/eulerx $*)" >> %i/bin/euler
chmod 755 %i/bin/euler
<<
DocFiles: AUTHORS COPYING README TODO ChangeLog
Description: Numerical laboratory with a programming language
DescDetail: <<
The system can handle real, complex and interval numbers, vectors and matrices.
It can produce 2D/3D plots. Included is a modern programming language.
Euler is not a MatLab clone, but very similar to this program.
<<
DescPort: <<
The patch takes care of
- a wrong static declaration, causing compiler crash
- wrong use of the system times() function, causing runime bus error.
<<
License: GPL
Homepage: http://euler.sourceforge.net/
diff -ur -x Makefile -x 'config*' -x libtool euler-1.61.0/src/command.c euler-1.61.0_corr/src/command.c
--- euler-1.61.0/src/command.c 2005-10-24 02:38:24.000000000 +0200
+++ euler-1.61.0_corr/src/command.c 2007-10-06 09:05:14.000000000 +0200
@@ -235,7 +235,7 @@
extern int builtin_count;
extern builtintyp builtin_list[];
-extern int command_count;
+static int command_count;
extern commandtyp command_list[];
static void do_list (void)
@@ -732,7 +732,6 @@
}
-static int command_count;
commandtyp command_list[] = {
{"quit",c_quit,do_quit},
diff -ur -x Makefile -x 'config*' -x libtool euler-1.61.0/src/main.c euler-1.61.0_corr/src/main.c
--- euler-1.61.0/src/main.c 2005-10-30 23:54:17.000000000 +0100
+++ euler-1.61.0_corr/src/main.c 2007-10-06 09:55:07.000000000 +0200
@@ -439,7 +439,8 @@
gettimer(TIMEOFDAY,&t);
return (t.tv_sec+t.tv_nsec/1000000000.0);
#else
- return ((double)(times(NULL)))/CLK_TCK;
+ static struct tms tp;
+ return ((double)(times(&tp)))/CLK_TCK;
#endif
}