From 65243f2f7dafefd7eab8d268babffeca20df819f Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Mon, 23 Aug 2010 09:31:23 +0000 Subject: [PATCH] Import epte-2.0.7. 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. Based on a submission from Anthony Bentley. ok sthen@ --- education/epte/Makefile | 26 ++++++++++ education/epte/distinfo | 5 ++ education/epte/patches/patch-definitions_h | 14 ++++++ education/epte/patches/patch-do_constants_c | 11 +++++ education/epte/patches/patch-do_conversion_c | 11 +++++ education/epte/patches/patch-do_element_c | 12 +++++ education/epte/patches/patch-do_help_c | 12 +++++ education/epte/patches/patch-do_radii_c | 12 +++++ education/epte/patches/patch-epte_1 | 20 ++++++++ .../epte/patches/patch-fill_information_c | 12 +++++ education/epte/patches/patch-makefile | 47 +++++++++++++++++++ education/epte/patches/patch-periodic_h | 12 +++++ education/epte/patches/patch-setaudio_c | 20 ++++++++ education/epte/pkg/DESCR | 3 ++ education/epte/pkg/PLIST | 3 ++ 15 files changed, 220 insertions(+) create mode 100644 education/epte/Makefile create mode 100644 education/epte/distinfo create mode 100644 education/epte/patches/patch-definitions_h create mode 100644 education/epte/patches/patch-do_constants_c create mode 100644 education/epte/patches/patch-do_conversion_c create mode 100644 education/epte/patches/patch-do_element_c create mode 100644 education/epte/patches/patch-do_help_c create mode 100644 education/epte/patches/patch-do_radii_c create mode 100644 education/epte/patches/patch-epte_1 create mode 100644 education/epte/patches/patch-fill_information_c create mode 100644 education/epte/patches/patch-makefile create mode 100644 education/epte/patches/patch-periodic_h create mode 100644 education/epte/patches/patch-setaudio_c create mode 100644 education/epte/pkg/DESCR create mode 100644 education/epte/pkg/PLIST diff --git a/education/epte/Makefile b/education/epte/Makefile new file mode 100644 index 00000000000..1635833fd9b --- /dev/null +++ b/education/epte/Makefile @@ -0,0 +1,26 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ + +COMMENT= electronic periodic table of the elements + +DISTNAME= epte-2.0.7 +CATEGORIES= education + +HOMEPAGE= http://www.toddmiller.com/epte/ + +WANTLIB += c ncurses + +# GPLv2 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WRKDIST= ${WRKDIR}/epte +MAKE_FILE= makefile +ALL_TARGET= epte + +MASTER_SITES= ${HOMEPAGE} + +NO_REGRESS= Yes + +.include diff --git a/education/epte/distinfo b/education/epte/distinfo new file mode 100644 index 00000000000..aaf855d97b0 --- /dev/null +++ b/education/epte/distinfo @@ -0,0 +1,5 @@ +MD5 (epte-2.0.7.tar.gz) = XtxmNEZfGh+OSXOicuGCqQ== +RMD160 (epte-2.0.7.tar.gz) = nEAtxLUQfG6DwnwnCxkBC+pxSRM= +SHA1 (epte-2.0.7.tar.gz) = Cu+uPwLo4rll2SmhBRlJpgJ++qc= +SHA256 (epte-2.0.7.tar.gz) = 6fAnQNJHQOHCKwez97/ZAJvSqiOFKxj8JBjEL/c4Y4E= +SIZE (epte-2.0.7.tar.gz) = 9037342 diff --git a/education/epte/patches/patch-definitions_h b/education/epte/patches/patch-definitions_h new file mode 100644 index 00000000000..118164d959b --- /dev/null +++ b/education/epte/patches/patch-definitions_h @@ -0,0 +1,14 @@ +$OpenBSD: patch-definitions_h,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- definitions.h.orig Sat Aug 14 22:56:33 2010 ++++ definitions.h Sat Aug 14 22:56:45 2010 +@@ -516,8 +516,8 @@ in a way that gives the maximum number of unpaired ele + 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/education/epte/patches/patch-do_constants_c b/education/epte/patches/patch-do_constants_c new file mode 100644 index 00000000000..c582baebb14 --- /dev/null +++ b/education/epte/patches/patch-do_constants_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-do_constants_c,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- do_constants.c.orig Mon Aug 23 07:47:28 2010 ++++ do_constants.c Mon Aug 23 07:47:40 2010 +@@ -290,6 +290,7 @@ modification follow. + + */ + ++#include + + #include "periodic.h" + diff --git a/education/epte/patches/patch-do_conversion_c b/education/epte/patches/patch-do_conversion_c new file mode 100644 index 00000000000..5f4fba178c0 --- /dev/null +++ b/education/epte/patches/patch-do_conversion_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-do_conversion_c,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- do_conversion.c.orig Mon Aug 23 07:50:25 2010 ++++ do_conversion.c Mon Aug 23 07:50:46 2010 +@@ -292,6 +292,7 @@ modification follow. + + + #include ++#include + #include "periodic.h" + + struct CONVERTS{ diff --git a/education/epte/patches/patch-do_element_c b/education/epte/patches/patch-do_element_c new file mode 100644 index 00000000000..d93f59baa66 --- /dev/null +++ b/education/epte/patches/patch-do_element_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-do_element_c,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- do_element.c.orig Mon Aug 23 07:51:01 2010 ++++ do_element.c Mon Aug 23 07:51:25 2010 +@@ -290,6 +290,8 @@ modification follow. + + */ + #include ++#include ++#include + #include "periodic.h" + #include "info.h" + diff --git a/education/epte/patches/patch-do_help_c b/education/epte/patches/patch-do_help_c new file mode 100644 index 00000000000..73970b44838 --- /dev/null +++ b/education/epte/patches/patch-do_help_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-do_help_c,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- do_help.c.orig Mon Aug 23 07:49:59 2010 ++++ do_help.c Mon Aug 23 07:50:13 2010 +@@ -293,6 +293,8 @@ modification follow. + /* This routine is expected to clear the screen, draw the help screen, + wait for a key and then return */ + ++#include ++ + #include "periodic.h" + + struct GNU { diff --git a/education/epte/patches/patch-do_radii_c b/education/epte/patches/patch-do_radii_c new file mode 100644 index 00000000000..beb88d6cf73 --- /dev/null +++ b/education/epte/patches/patch-do_radii_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-do_radii_c,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- do_radii.c.orig Mon Aug 23 07:53:31 2010 ++++ do_radii.c Mon Aug 23 07:53:52 2010 +@@ -290,6 +290,8 @@ modification follow. + + */ + ++#include ++#include + + #include "periodic.h" + #include "info.h" diff --git a/education/epte/patches/patch-epte_1 b/education/epte/patches/patch-epte_1 new file mode 100644 index 00000000000..766e3d5143e --- /dev/null +++ b/education/epte/patches/patch-epte_1 @@ -0,0 +1,20 @@ +$OpenBSD: patch-epte_1,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- epte.1.orig Mon Aug 23 07:55:55 2010 ++++ epte.1 Mon Aug 23 07:57:56 2010 +@@ -38,14 +38,11 @@ Do not display the periodic table with element focus. + Do not display the periodic table with group labels. + + .SH FILES +-.B /usr/bin/epte ++.B ${PREFIX}/bin/epte + Executable image. + +-.B /usr/man/man1/epte.1 ++.B ${PREFIX}/man/man1/epte.1 + Manual page. +- +-.B /usr/bin/sounds +-Sound files. + + + .SH AUTHOR diff --git a/education/epte/patches/patch-fill_information_c b/education/epte/patches/patch-fill_information_c new file mode 100644 index 00000000000..695e6aa56c9 --- /dev/null +++ b/education/epte/patches/patch-fill_information_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-fill_information_c,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- fill_information.c.orig Mon Aug 23 07:45:28 2010 ++++ fill_information.c Mon Aug 23 07:45:44 2010 +@@ -290,6 +290,8 @@ modification follow. + + */ + ++#include ++ + #include "periodic.h" + #include "info.h" + #include "text.h" diff --git a/education/epte/patches/patch-makefile b/education/epte/patches/patch-makefile new file mode 100644 index 00000000000..15af9936c90 --- /dev/null +++ b/education/epte/patches/patch-makefile @@ -0,0 +1,47 @@ +$OpenBSD: patch-makefile,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- makefile.orig Wed Apr 7 21:06:02 1999 ++++ makefile Mon Aug 23 07:53:15 2010 +@@ -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 + + +@@ -340,11 +340,11 @@ DISTNAME = [system] + LIBS = -lcursesX -o epte + #endif + # Use ncurses library for linux & FreeBSD +-#if defined(linux) || defined(__FreeBSD__) ++#if defined(linux) || defined(__FreeBSD__) || defined(__OpenBSD__) + 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 + +@@ -364,10 +364,8 @@ clean: + + #ifndef VMS + install : epte +- chmod 555 epte +- cp epte ${DISTNAME}/epte +- chmod 555 /usr/man/man1 +- cp epte.1 /usr/man/man1 ++ ${BSD_INSTALL_PROGRAM} epte ${DISTNAME}/bin/epte ++ ${BSD_INSTALL_MAN} epte.1 ${DISTNAME}/man/man1 + + install-with-sound : epte + chmod 555 diff --git a/education/epte/patches/patch-periodic_h b/education/epte/patches/patch-periodic_h new file mode 100644 index 00000000000..ffa9cf7cbda --- /dev/null +++ b/education/epte/patches/patch-periodic_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-periodic_h,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- periodic.h.orig Sat Aug 14 22:55:52 2010 ++++ periodic.h Sat Aug 14 22:56:09 2010 +@@ -296,7 +296,7 @@ modification follow. + #ifdef VMS + #include + #endif +-#if defined(linux) || defined(__FreeBSD) ++#if defined(linux) || defined(__FreeBSD) || defined(__OpenBSD__) + #include + #endif + diff --git a/education/epte/patches/patch-setaudio_c b/education/epte/patches/patch-setaudio_c new file mode 100644 index 00000000000..a4dae6278e7 --- /dev/null +++ b/education/epte/patches/patch-setaudio_c @@ -0,0 +1,20 @@ +$OpenBSD: patch-setaudio_c,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +--- setaudio.c.orig Wed Apr 7 22:06:21 1999 ++++ setaudio.c Mon Aug 23 07:59:21 2010 +@@ -292,6 +292,7 @@ modification follow. + #include + #include + #include ++#include + #include + #include + #include +@@ -312,7 +313,7 @@ void setaudio ( void ) + char File_Name[1024]; + char *file_name; + +-#ifdef VMS ++#if defined VMS || defined __OpenBSD__ + #else + + /* The audio device sometimes does not work if it is left open for a long diff --git a/education/epte/pkg/DESCR b/education/epte/pkg/DESCR new file mode 100644 index 00000000000..51eb15ee98b --- /dev/null +++ b/education/epte/pkg/DESCR @@ -0,0 +1,3 @@ +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. diff --git a/education/epte/pkg/PLIST b/education/epte/pkg/PLIST new file mode 100644 index 00000000000..b114aa903d2 --- /dev/null +++ b/education/epte/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $ +@bin bin/epte +@man man/man1/epte.1