aboutsummaryrefslogtreecommitdiff
path: root/science/epte
diff options
context:
space:
mode:
authorSahil Tandon <sahil@FreeBSD.org>2010-09-08 03:09:31 +0000
committerSahil Tandon <sahil@FreeBSD.org>2010-09-08 03:09:31 +0000
commita5408a406d04ba711430f73395c7e9b8e5cd741a (patch)
tree80f7eadd38dcb151f8bf11194f1dd1593eb002f3 /science/epte
parentf40739f9aeb057bed666a7fd772d70935849f408 (diff)
downloadports-a5408a406d04ba711430f73395c7e9b8e5cd741a.tar.gz
ports-a5408a406d04ba711430f73395c7e9b8e5cd741a.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>
Notes
Notes: svn path=/head/; revision=260744
Diffstat (limited to 'science/epte')
-rw-r--r--science/epte/Makefile31
-rw-r--r--science/epte/distinfo3
-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
-rw-r--r--science/epte/pkg-descr5
11 files changed, 145 insertions, 0 deletions
diff --git a/science/epte/Makefile b/science/epte/Makefile
new file mode 100644
index 000000000000..c54bac9f1abd
--- /dev/null
+++ b/science/epte/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: epte
+# Date created: 2010-09-01
+# Whom: Frederic Culot <frederic@culot.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= epte
+PORTVERSION= 2.0.7
+CATEGORIES= science
+MASTER_SITES= http://www.toddmiller.com/epte/
+
+MAINTAINER= frederic@culot.org
+COMMENT= Electronic Periodic Table of the Elements
+
+MAKEFILE= makefile
+ALL_TARGET= ${PORTNAME}
+
+MAN1= epte.1
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+PLIST_FILES= bin/epte
+
+post-patch:
+ @${REINPLACE_CMD} 's|/usr|${PREFIX}|' ${WRKSRC}/epte.1
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/epte ${PREFIX}/bin
+ @${INSTALL_MAN} ${WRKSRC}/epte.1 ${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/science/epte/distinfo b/science/epte/distinfo
new file mode 100644
index 000000000000..268aa292cf20
--- /dev/null
+++ b/science/epte/distinfo
@@ -0,0 +1,3 @@
+MD5 (epte-2.0.7.tar.gz) = 5edc6634465f1a1f8e4973a272e182a9
+SHA256 (epte-2.0.7.tar.gz) = e9f02740d24740e1c22b07b3f7bfd9009bd2aa23852b18fc2418c42ff7386381
+SIZE (epte-2.0.7.tar.gz) = 9037342
diff --git a/science/epte/files/patch-definitions.h b/science/epte/files/patch-definitions.h
new file mode 100644
index 000000000000..94b446c2e3d9
--- /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 000000000000..2e5e2c60a394
--- /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 000000000000..0d2b204bc42a
--- /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 000000000000..998dd49cc373
--- /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 000000000000..c29d3c542191
--- /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 000000000000..b5fd844ccb35
--- /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 000000000000..dd6c5c4159cd
--- /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 000000000000..8e0da6673155
--- /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
diff --git a/science/epte/pkg-descr b/science/epte/pkg-descr
new file mode 100644
index 000000000000..fba41728abe5
--- /dev/null
+++ b/science/epte/pkg-descr
@@ -0,0 +1,5 @@
+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/