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@
This commit is contained in:
parent
0372e74f53
commit
65243f2f7d
26
education/epte/Makefile
Normal file
26
education/epte/Makefile
Normal file
@ -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 <bsd.port.mk>
|
5
education/epte/distinfo
Normal file
5
education/epte/distinfo
Normal file
@ -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
|
14
education/epte/patches/patch-definitions_h
Normal file
14
education/epte/patches/patch-definitions_h
Normal file
@ -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."},
|
11
education/epte/patches/patch-do_constants_c
Normal file
11
education/epte/patches/patch-do_constants_c
Normal file
@ -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 <string.h>
|
||||||
|
|
||||||
|
#include "periodic.h"
|
||||||
|
|
11
education/epte/patches/patch-do_conversion_c
Normal file
11
education/epte/patches/patch-do_conversion_c
Normal file
@ -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 <string.h>
|
||||||
|
+#include <ctype.h>
|
||||||
|
#include "periodic.h"
|
||||||
|
|
||||||
|
struct CONVERTS{
|
12
education/epte/patches/patch-do_element_c
Normal file
12
education/epte/patches/patch-do_element_c
Normal file
@ -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 <errno.h>
|
||||||
|
+#include <string.h>
|
||||||
|
+#include <ctype.h>
|
||||||
|
#include "periodic.h"
|
||||||
|
#include "info.h"
|
||||||
|
|
12
education/epte/patches/patch-do_help_c
Normal file
12
education/epte/patches/patch-do_help_c
Normal file
@ -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 <string.h>
|
||||||
|
+
|
||||||
|
#include "periodic.h"
|
||||||
|
|
||||||
|
struct GNU {
|
12
education/epte/patches/patch-do_radii_c
Normal file
12
education/epte/patches/patch-do_radii_c
Normal file
@ -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 <string.h>
|
||||||
|
+#include <ctype.h>
|
||||||
|
|
||||||
|
#include "periodic.h"
|
||||||
|
#include "info.h"
|
20
education/epte/patches/patch-epte_1
Normal file
20
education/epte/patches/patch-epte_1
Normal file
@ -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
|
12
education/epte/patches/patch-fill_information_c
Normal file
12
education/epte/patches/patch-fill_information_c
Normal file
@ -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 <string.h>
|
||||||
|
+
|
||||||
|
#include "periodic.h"
|
||||||
|
#include "info.h"
|
||||||
|
#include "text.h"
|
47
education/epte/patches/patch-makefile
Normal file
47
education/epte/patches/patch-makefile
Normal file
@ -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
|
12
education/epte/patches/patch-periodic_h
Normal file
12
education/epte/patches/patch-periodic_h
Normal file
@ -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 <curses.h>
|
||||||
|
#endif
|
||||||
|
-#if defined(linux) || defined(__FreeBSD)
|
||||||
|
+#if defined(linux) || defined(__FreeBSD) || defined(__OpenBSD__)
|
||||||
|
#include <ncurses.h>
|
||||||
|
#endif
|
||||||
|
|
20
education/epte/patches/patch-setaudio_c
Normal file
20
education/epte/patches/patch-setaudio_c
Normal file
@ -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 <stdio.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
+#include <string.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
@@ -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
|
3
education/epte/pkg/DESCR
Normal file
3
education/epte/pkg/DESCR
Normal file
@ -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.
|
3
education/epte/pkg/PLIST
Normal file
3
education/epte/pkg/PLIST
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user