aboutsummaryrefslogtreecommitdiffstats
path: root/science/epte/files
diff options
context:
space:
mode:
authorsahil <sahil@FreeBSD.org>2010-09-08 11:09:31 +0800
committersahil <sahil@FreeBSD.org>2010-09-08 11:09:31 +0800
commit9cce9c1991bc2494c8e05addde57e94762852298 (patch)
tree1df43f41fd4b870aec16db34201f8a86fc0b09a4 /science/epte/files
parentdeecc5064a39e6309a199578fe0a377a34774fc3 (diff)
downloadfreebsd-ports-graphics-9cce9c1991bc2494c8e05addde57e94762852298.tar.gz
freebsd-ports-graphics-9cce9c1991bc2494c8e05addde57e94762852298.tar.zst
freebsd-ports-graphics-9cce9c1991bc2494c8e05addde57e94762852298.zip
epte is a curses-based periodic table of the elements. It provides a
set of examples of the basic sets of constants and procedures needed to understand the behavior of matter. WWW: http://www.toddmiller.com/epte/ PR: ports/150183 Submitted by: Frederic Culot <frederic@culot.org>
Diffstat (limited to 'science/epte/files')
-rw-r--r--science/epte/files/patch-definitions.h13
-rw-r--r--science/epte/files/patch-do_element.c10
-rw-r--r--science/epte/files/patch-do_radii.c10
-rw-r--r--science/epte/files/patch-epte.112
-rw-r--r--science/epte/files/patch-fill_information.c11
-rw-r--r--science/epte/files/patch-makefile28
-rw-r--r--science/epte/files/patch-periodic.h11
-rw-r--r--science/epte/files/patch-setaudio.c11
8 files changed, 106 insertions, 0 deletions
diff --git a/science/epte/files/patch-definitions.h b/science/epte/files/patch-definitions.h
new file mode 100644
index 00000000000..94b446c2e3d
--- /dev/null
+++ b/science/epte/files/patch-definitions.h
@@ -0,0 +1,13 @@
+--- definitions.h.orig 2010-09-01 10:59:49.629072046 +0200
++++ definitions.h 2010-09-01 11:00:30.700188068 +0200
+@@ -516,8 +516,8 @@ in a way that gives the maximum number o
+ spins."},
+ {"Hydration := The process in which water molecules are attracted and surrou\
+ nd solute\nparticles in solution."},
+- {"Hydrogen bonding := The bond hydrogen forms with other atoms with hydrogen\n
+-forming an ionic type interaction with negatively charged atoms of other\n
++ {"Hydrogen bonding := The bond hydrogen forms with other atoms with hydrogen\n\
++forming an ionic type interaction with negatively charged atoms of other\n\
+ compounds."},
+ {"Hydrolysis := A reaction of a cation or an anion with water that affects\n\
+ the pH."},
diff --git a/science/epte/files/patch-do_element.c b/science/epte/files/patch-do_element.c
new file mode 100644
index 00000000000..2e5e2c60a39
--- /dev/null
+++ b/science/epte/files/patch-do_element.c
@@ -0,0 +1,10 @@
+--- do_element.c.orig 2010-09-01 11:04:14.025987855 +0200
++++ do_element.c 2010-09-01 11:04:35.003159255 +0200
+@@ -290,6 +290,7 @@ modification follow.
+
+ */
+ #include <errno.h>
++#include <string.h>
+ #include "periodic.h"
+ #include "info.h"
+
diff --git a/science/epte/files/patch-do_radii.c b/science/epte/files/patch-do_radii.c
new file mode 100644
index 00000000000..0d2b204bc42
--- /dev/null
+++ b/science/epte/files/patch-do_radii.c
@@ -0,0 +1,10 @@
+--- do_radii.c.orig 2010-09-01 11:05:44.971100153 +0200
++++ do_radii.c 2010-09-01 11:06:02.362650476 +0200
+@@ -290,6 +290,7 @@ modification follow.
+
+ */
+
++#include <string.h>
+
+ #include "periodic.h"
+ #include "info.h"
diff --git a/science/epte/files/patch-epte.1 b/science/epte/files/patch-epte.1
new file mode 100644
index 00000000000..998dd49cc37
--- /dev/null
+++ b/science/epte/files/patch-epte.1
@@ -0,0 +1,12 @@
+--- epte.1.orig 2010-09-01 11:35:03.058334983 +0200
++++ epte.1 2010-09-01 11:35:12.969438210 +0200
+@@ -44,9 +44,6 @@ Executable image.
+ .B /usr/man/man1/epte.1
+ Manual page.
+
+-.B /usr/bin/sounds
+-Sound files.
+-
+
+ .SH AUTHOR
+ .B epte
diff --git a/science/epte/files/patch-fill_information.c b/science/epte/files/patch-fill_information.c
new file mode 100644
index 00000000000..c29d3c54219
--- /dev/null
+++ b/science/epte/files/patch-fill_information.c
@@ -0,0 +1,11 @@
+--- fill_information.c.orig 2010-09-01 10:57:26.318201810 +0200
++++ fill_information.c 2010-09-01 10:58:12.521662864 +0200
+@@ -290,6 +290,8 @@ modification follow.
+
+ */
+
++#include <string.h>
++
+ #include "periodic.h"
+ #include "info.h"
+ #include "text.h"
diff --git a/science/epte/files/patch-makefile b/science/epte/files/patch-makefile
new file mode 100644
index 00000000000..b5fd844ccb3
--- /dev/null
+++ b/science/epte/files/patch-makefile
@@ -0,0 +1,28 @@
+--- makefile.orig 2010-09-01 10:41:27.655060824 +0200
++++ makefile 2010-09-01 10:46:21.341029572 +0200
+@@ -320,13 +320,13 @@ IS_INTERACTIVE= yes
+ #ifdef VMS
+ CC = cc
+ #else
+-CC = gcc
++CC ?= gcc
+ #endif
+
+ #ifdef DEVELOPER
+-CC_OPTIONS = -c -g
++CC_OPTIONS = -c -g ${CFLAGS}
+ #else
+-CC_OPTIONS = -c -g
++CC_OPTIONS = -c -g ${CFLAGS}
+ #endif
+
+
+@@ -344,7 +344,7 @@ LIBS = -lcursesX -o epte
+ LIBS = -lncurses -o epte
+ #endif
+
+-DISTNAME=/usr/bin
++DISTNAME=${PREFIX}
+
+ MAIN = ask_user.o bell.o bold.o blink.o draw_blocks.o draw_table.o endprog.o listcommand.o epte.o make_coordinates.o reverse.o setaudio.o setinput.o table_key.o ttflush.o ttinp.o
+
diff --git a/science/epte/files/patch-periodic.h b/science/epte/files/patch-periodic.h
new file mode 100644
index 00000000000..dd6c5c4159c
--- /dev/null
+++ b/science/epte/files/patch-periodic.h
@@ -0,0 +1,11 @@
+--- periodic.h.orig 2010-09-01 10:31:23.665697651 +0200
++++ periodic.h 2010-09-01 10:48:57.742657991 +0200
+@@ -296,7 +296,7 @@ modification follow.
+ #ifdef VMS
+ #include <curses.h>
+ #endif
+-#if defined(linux) || defined(__FreeBSD)
++#if defined(linux) || defined(__FreeBSD__)
+ #include <ncurses.h>
+ #endif
+
diff --git a/science/epte/files/patch-setaudio.c b/science/epte/files/patch-setaudio.c
new file mode 100644
index 00000000000..8e0da667315
--- /dev/null
+++ b/science/epte/files/patch-setaudio.c
@@ -0,0 +1,11 @@
+--- setaudio.c.orig 2010-09-01 10:55:30.665968356 +0200
++++ setaudio.c 2010-09-01 10:56:04.763401409 +0200
+@@ -312,7 +312,7 @@ void setaudio ( void )
+ char File_Name[1024];
+ char *file_name;
+
+-#ifdef VMS
++#if defined(VMS) || defined(__FreeBSD__)
+ #else
+
+ /* The audio device sometimes does not work if it is left open for a long