summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2004-02-29 00:01:22 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2004-02-29 00:01:22 +0000
commitaf059ef6612eba7c637369612c1d5815da2b011e (patch)
treeac2b276d7dd5da76601c166783fb98bdfe9bb46b /app-sci/gempak
parentversion bump. fixes #43103 (diff)
downloadgentoo-2-af059ef6612eba7c637369612c1d5815da2b011e.tar.gz
gentoo-2-af059ef6612eba7c637369612c1d5815da2b011e.tar.bz2
gentoo-2-af059ef6612eba7c637369612c1d5815da2b011e.zip
Initial commit. Submitted by Donald Giuliano <guido@ou.edu> with extensive reworking by him and me.
Diffstat (limited to 'app-sci/gempak')
-rw-r--r--app-sci/gempak/ChangeLog12
-rw-r--r--app-sci/gempak/Manifest17
-rw-r--r--app-sci/gempak/files/5.6m-gui.c.patch200
-rw-r--r--app-sci/gempak/files/Makeinc.common97
-rw-r--r--app-sci/gempak/files/digest-gempak-5.6m1
-rw-r--r--app-sci/gempak/files/gempak.env.d56
-rw-r--r--app-sci/gempak/gempak-5.6m.ebuild165
-rw-r--r--app-sci/gempak/metadata.xml5
8 files changed, 553 insertions, 0 deletions
diff --git a/app-sci/gempak/ChangeLog b/app-sci/gempak/ChangeLog
new file mode 100644
index 000000000000..6c2b212b3cf7
--- /dev/null
+++ b/app-sci/gempak/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for app-sci/gempak
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/gempak/ChangeLog,v 1.1 2004/02/29 00:01:22 spyderous Exp $
+
+*gempak-5.6m (28 Feb 2004)
+
+ 28 Feb 2004; Donnie Berkholz <spyderous@gentoo.org>; gempak-5.6m.ebuild,
+ metadata.xml, files/5.6m-gui.c.patch, files/Makeinc.common,
+ files/gempak.env.d:
+ Initial commit. Submitted by Donald Giuliano <guido@ou.edu> with extensive
+ reworking by him and me.
+
diff --git a/app-sci/gempak/Manifest b/app-sci/gempak/Manifest
new file mode 100644
index 000000000000..e345179d849b
--- /dev/null
+++ b/app-sci/gempak/Manifest
@@ -0,0 +1,17 @@
+MD5 6dbd80693251bd6acca7f9a83be96202 gempak-5.6j.ebuild 4469
+MD5 b77b98ad9cba4cbdebd7578610f26e9b gempak-5.6l.ebuild 5699
+MD5 96f8603d25ddea2758c2bf50dd0a8f18 gempak-5.6l-r2.ebuild 4824
+MD5 1a7437e70c1b6e7b6ecaba45e2786b28 gempak-5.6l-r1.ebuild 5363
+MD5 44f52c64b2b954cc389e547827e32d59 gempak-5.6l-r2.ebuild.orig 4823
+MD5 e01e42721192b106800e330193a1f9f3 gempak-5.6m.ebuild 4947
+MD5 336e991851fe76b9782dc803b8fb4d83 files/Gemenviron.bash 1846
+MD5 383c439dc0d098a8831042edd485d90d files/Gemenviron.tcsh 6747
+MD5 97929898710347638aca8dfc11ba2b9f files/Makeinc.common 3395
+MD5 1aeb7d2a1b139a694ed2949d4be6c95c files/gui.c.patch 11734
+MD5 d388a9c35dca1ae0bd77aafe0a757457 files/digest-gempak-5.6j 69
+MD5 78f4764481e5074cba2e68bb55febc9a files/digest-gempak-5.6l 71
+MD5 0b58c4c5cdbc6c22fb5f7b7bd2390d02 files/log.c.patch 712
+MD5 a4dbc4519609c4b1f0497780767f56f9 files/gprint.c.patch 1264
+MD5 78f4764481e5074cba2e68bb55febc9a files/digest-gempak-5.6l-r1 71
+MD5 560e697d377c41709d431556bac2944e files/gempak.env.d 1888
+MD5 39e7076109806924e3a099256cf2f3cb files/digest-gempak-5.6m 72
diff --git a/app-sci/gempak/files/5.6m-gui.c.patch b/app-sci/gempak/files/5.6m-gui.c.patch
new file mode 100644
index 000000000000..a3f80578694f
--- /dev/null
+++ b/app-sci/gempak/files/5.6m-gui.c.patch
@@ -0,0 +1,200 @@
+--- comet/garp/gui/gui.c.gentoo 2003-11-02 23:50:00.000000000 -0600
++++ comet/garp/gui/gui.c 2003-11-02 23:49:17.000000000 -0600
+@@ -6950,7 +6950,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(anim_loop_backward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_loop_backward ), "/pub/nawips-dv/comet/garp/icons/iconbak.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_loop_backward ), "/usr/gempak/comet/garp/icons/iconbak.xbm", fg, bg )); ac++;
+ XtSetValues ( anim_loop_backward,al, ac );
+ ac = 0;
+ anim_loop_forward = XmCreatePushButton ( rowcol16, "anim_loop_forward", al, ac );
+@@ -6958,7 +6958,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(anim_loop_forward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_loop_forward ), "/pub/nawips-dv/comet/garp/icons/iconfor.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_loop_forward ), "/usr/gempak/comet/garp/icons/iconfor.xbm", fg, bg )); ac++;
+ XtSetValues ( anim_loop_forward,al, ac );
+ ac = 0;
+ anim_loop_forward_backward = XmCreatePushButton ( rowcol16, "anim_loop_forward_backward", al, ac );
+@@ -6966,7 +6966,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(anim_loop_forward_backward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_loop_forward_backward ), "/pub/nawips-dv/comet/garp/icons/iconstep.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_loop_forward_backward ), "/usr/gempak/comet/garp/icons/iconstep.xbm", fg, bg )); ac++;
+ XtSetValues ( anim_loop_forward_backward,al, ac );
+ ac = 0;
+ anim_step_backward = XmCreatePushButton ( rowcol16, "anim_step_backward", al, ac );
+@@ -6974,7 +6974,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(anim_step_backward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_step_backward ), "/pub/nawips-dv/comet/garp/icons/iconbak1.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_step_backward ), "/usr/gempak/comet/garp/icons/iconbak1.xbm", fg, bg )); ac++;
+ XtSetValues ( anim_step_backward,al, ac );
+ ac = 0;
+ anim_stop_loop = XmCreatePushButton ( rowcol16, "anim_stop_loop", al, ac );
+@@ -6982,7 +6982,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(anim_stop_loop, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_stop_loop ), "/pub/nawips-dv/comet/garp/icons/iconstop.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_stop_loop ), "/usr/gempak/comet/garp/icons/iconstop.xbm", fg, bg )); ac++;
+ XtSetValues ( anim_stop_loop,al, ac );
+ ac = 0;
+ anim_step_forward = XmCreatePushButton ( rowcol16, "anim_step_forward", al, ac );
+@@ -6990,7 +6990,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(anim_step_forward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_step_forward ), "/pub/nawips-dv/comet/garp/icons/iconfora.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( anim_step_forward ), "/usr/gempak/comet/garp/icons/iconfora.xbm", fg, bg )); ac++;
+ XtSetValues ( anim_step_forward,al, ac );
+ ac = 0;
+ label144 = XmCreateLabel ( frame49, "label144", al, ac );
+@@ -8852,7 +8852,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(satellite_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( satellite_icon ), "/pub/nawips-dv/comet/garp/icons/icon03.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( satellite_icon ), "/usr/gempak/comet/garp/icons/icon03.xbm", fg, bg )); ac++;
+ XtSetValues ( satellite_icon,al, ac );
+ ac = 0;
+ sfc_icon = XmCreatePushButton ( icon_rowcol, "sfc_icon", al, ac );
+@@ -8860,7 +8860,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(sfc_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( sfc_icon ), "/pub/nawips-dv/comet/garp/icons/icon07.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( sfc_icon ), "/usr/gempak/comet/garp/icons/icon07.xbm", fg, bg )); ac++;
+ XtSetValues ( sfc_icon,al, ac );
+ ac = 0;
+ profiler_icon = XmCreatePushButton ( icon_rowcol, "profiler_icon", al, ac );
+@@ -8868,7 +8868,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(profiler_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( profiler_icon ), "/pub/nawips-dv/comet/garp/icons/icon09.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( profiler_icon ), "/usr/gempak/comet/garp/icons/icon09.xbm", fg, bg )); ac++;
+ XtSetValues ( profiler_icon,al, ac );
+ ac = 0;
+ upperair_icon = XmCreatePushButton ( icon_rowcol, "upperair_icon", al, ac );
+@@ -8876,7 +8876,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(upperair_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( upperair_icon ), "/pub/nawips-dv/comet/garp/icons/icon08.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( upperair_icon ), "/usr/gempak/comet/garp/icons/icon08.xbm", fg, bg )); ac++;
+ XtSetValues ( upperair_icon,al, ac );
+ ac = 0;
+ gridh_icon = XmCreatePushButton ( icon_rowcol, "gridh_icon", al, ac );
+@@ -8884,7 +8884,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(gridh_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( gridh_icon ), "/pub/nawips-dv/comet/garp/icons/icon12.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( gridh_icon ), "/usr/gempak/comet/garp/icons/icon12.xbm", fg, bg )); ac++;
+ XtSetValues ( gridh_icon,al, ac );
+ ac = 0;
+ gridc_icon = XmCreatePushButton ( icon_rowcol, "gridc_icon", al, ac );
+@@ -8892,7 +8892,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(gridc_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( gridc_icon ), "/pub/nawips-dv/comet/garp/icons/icon14.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( gridc_icon ), "/usr/gempak/comet/garp/icons/icon14.xbm", fg, bg )); ac++;
+ XtSetValues ( gridc_icon,al, ac );
+ ac = 0;
+ gridt_icon = XmCreatePushButton ( icon_rowcol, "gridt_icon", al, ac );
+@@ -8900,7 +8900,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(gridt_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( gridt_icon ), "/pub/nawips-dv/comet/garp/icons/icon19.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( gridt_icon ), "/usr/gempak/comet/garp/icons/icon19.xbm", fg, bg )); ac++;
+ XtSetValues ( gridt_icon,al, ac );
+ ac = 0;
+ gridz_icon = XmCreatePushButton ( icon_rowcol, "gridz_icon", al, ac );
+@@ -8908,7 +8908,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(gridz_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( gridz_icon ), "/pub/nawips-dv/comet/garp/icons/icon21.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( gridz_icon ), "/usr/gempak/comet/garp/icons/icon21.xbm", fg, bg )); ac++;
+ XtSetValues ( gridz_icon,al, ac );
+ ac = 0;
+ main_clear_icon = XmCreatePushButton ( icon_rowcol, "main_clear_icon", al, ac );
+@@ -8916,7 +8916,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(main_clear_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( main_clear_icon ), "/pub/nawips-dv/comet/garp/icons/iconclr.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( main_clear_icon ), "/usr/gempak/comet/garp/icons/iconclr.xbm", fg, bg )); ac++;
+ XtSetValues ( main_clear_icon,al, ac );
+ ac = 0;
+ main_reset_icon = XmCreatePushButton ( icon_rowcol, "main_reset_icon", al, ac );
+@@ -8924,7 +8924,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(main_reset_icon, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( main_reset_icon ), "/pub/nawips-dv/comet/garp/icons/icon26.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( main_reset_icon ), "/usr/gempak/comet/garp/icons/icon26.xbm", fg, bg )); ac++;
+ XtSetValues ( main_reset_icon,al, ac );
+ ac = 0;
+ form48 = XmCreateForm ( form47, "form48", al, ac );
+@@ -8938,7 +8938,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(loop_backward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( loop_backward ), "/pub/nawips-dv/comet/garp/icons/iconbak.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( loop_backward ), "/usr/gempak/comet/garp/icons/iconbak.xbm", fg, bg )); ac++;
+ XtSetValues ( loop_backward,al, ac );
+ ac = 0;
+ loop_forward = XmCreatePushButton ( rowcol12, "loop_forward", al, ac );
+@@ -8946,7 +8946,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(loop_forward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( loop_forward ), "/pub/nawips-dv/comet/garp/icons/iconfor.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( loop_forward ), "/usr/gempak/comet/garp/icons/iconfor.xbm", fg, bg )); ac++;
+ XtSetValues ( loop_forward,al, ac );
+ ac = 0;
+ loop_forward_backward = XmCreatePushButton ( rowcol12, "loop_forward_backward", al, ac );
+@@ -8954,7 +8954,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(loop_forward_backward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( loop_forward_backward ), "/pub/nawips-dv/comet/garp/icons/iconstep.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( loop_forward_backward ), "/usr/gempak/comet/garp/icons/iconstep.xbm", fg, bg )); ac++;
+ XtSetValues ( loop_forward_backward,al, ac );
+ ac = 0;
+ step_backward = XmCreatePushButton ( rowcol12, "step_backward", al, ac );
+@@ -8962,7 +8962,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(step_backward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( step_backward ), "/pub/nawips-dv/comet/garp/icons/iconbak1.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( step_backward ), "/usr/gempak/comet/garp/icons/iconbak1.xbm", fg, bg )); ac++;
+ XtSetValues ( step_backward,al, ac );
+ ac = 0;
+ stop_loop = XmCreatePushButton ( rowcol12, "stop_loop", al, ac );
+@@ -8970,7 +8970,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(stop_loop, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( stop_loop ), "/pub/nawips-dv/comet/garp/icons/iconstop.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( stop_loop ), "/usr/gempak/comet/garp/icons/iconstop.xbm", fg, bg )); ac++;
+ XtSetValues ( stop_loop,al, ac );
+ ac = 0;
+ step_forward = XmCreatePushButton ( rowcol12, "step_forward", al, ac );
+@@ -8978,7 +8978,7 @@
+ XtSetArg(al[ac], XmNbackground, &bg ); ac++;
+ XtGetValues(step_forward, al, ac );
+ ac = 0;
+- XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( step_forward ), "/pub/nawips-dv/comet/garp/icons/iconfora.xbm", fg, bg )); ac++;
++ XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( step_forward ), "/usr/gempak/comet/garp/icons/iconfora.xbm", fg, bg )); ac++;
+ XtSetValues ( step_forward,al, ac );
+ ac = 0;
+ loop_count = XmCreatePushButton ( form48, "loop_count", al, ac );
diff --git a/app-sci/gempak/files/Makeinc.common b/app-sci/gempak/files/Makeinc.common
new file mode 100644
index 000000000000..14cbbf173b39
--- /dev/null
+++ b/app-sci/gempak/files/Makeinc.common
@@ -0,0 +1,97 @@
+###################################################################
+###################################################################
+#
+# Makefile for GEMPAK6
+# Unidata 11/99 Chiz - configured for UPC distribution
+#
+####################################################################
+####################################################################
+####################################################################
+# The following shell environment variables *MUST* be defined before
+# invoking this Makefile:
+#
+# $NAWIPS - points to the toplevel of the NAWIPS directory tree.
+# $GEMPAKHOME - points to the toplevel of the gempak part
+# of the NAWIPS tree. Usually directly under $NAWIPS.
+#
+# $NA_OS - Used in $(NAWIPS)/config/Makeinc.common to decide which
+# OS specific Makeinc.* to include. It also cooresponds
+# to the directories in the NAWIPS tree where the executables
+# and libraries are installed.
+#
+####################################################################
+GEMPAKHOME = $(NAWIPS)/gempak
+GEMPAK = $(GEMPAKHOME)
+GEMTBL = $(GEMPAKHOME)/tables
+GEMPDF = $(GEMPAKHOME)/pdf
+GEMERR = $(GEMPAKHOME)/error
+GEMPARM = $(GEMPAKHOME)/parm
+GEMPTXT = $(GEMPAKHOME)/ptxt
+GEMHLP = $(GEMPAKHOME)/help
+SHELL = /bin/sh
+FC = f77
+CC = cc
+AR = ar
+ARFLAGS = rv
+RANLIB = ranlib
+RM = rm -f
+INSTALL = install -s
+AUXINSTALL = install
+LN = ln -s
+STRIP = strip
+CP = cp
+COMPILE.c = $(CC) $(CFLAGS) -c
+COMPILE.f = $(FC) $(FFLAGS) -c
+LINK.c = $(PURIFY) $(CC) $(CFLAGS) $(LDFLAGS)
+LINK.f = $(PURIFY) $(FC) $(FFLAGS) $(LDFLAGS)
+
+LDM_FLAGS =
+
+GEMOLB = $(NAWIPS)/lib/$(NA_OS)
+INCDIR = $(GEMPAKHOME)/include
+GEMINC = -I$(INCDIR)
+NAWIPS_INC = -I$(NAWIPS)/include
+GEMEXE = $(NAWIPS)/bin/$(NA_OS)
+SCRIPTS_EXE = $(NAWIPS)/bin/scripts
+
+APPL = $(GEMOLB)/appl.a
+DEVICE = $(GEMOLB)/device.a
+GEMLIB = $(GEMOLB)/gemlib.a
+CGEMLIB = $(GEMOLB)/cgemlib.a
+NXMLIB = $(GEMOLB)/Nxmlib.a
+BRIDGE = $(GEMOLB)/bridge.a
+LDMLOG = $(GEMOLB)/ldmlog.a
+GPLT = $(GEMOLB)/gplt.a
+GPLT_NC = $(GEMOLB)/ginitp_alt.o $(GEMOLB)/gendp_alt.o
+GPLTDEV = $(GEMOLB)/gpltdev.a
+SYSLIB = $(GEMOLB)/syslib.a
+
+GN = $(GEMOLB)/gn.a
+XW = $(GEMOLB)/xw.a
+GF = $(GEMOLB)/gf.a
+GIF = $(GEMOLB)/gif.a
+PS = $(GEMOLB)/ps.a
+NC = $(GEMOLB)/nc.a
+FAX = $(GEMOLB)/fax.a
+RBK = $(GEMOLB)/rbk.a
+TIFF = $(GEMOLB)/tiff.a
+VG = $(GEMOLB)/vg.a
+XWP = $(GEMOLB)/xwp.a
+UTF = $(GEMOLB)/utf.a
+
+X11LIB = -lX11
+GUILIBS = $(MOTIFLIBS) $(X11LIBDIR) -lXt -lX11
+NETCDFHOME = $(NAWIPS)/netcdf/$(NA_OS)
+NETCDFINC = $(NETCDFHOME)/include
+NETCDF = $(NETCDFHOME)/lib/libnetcdf.a
+
+ZLIB = $(GEMOLB)/libz.a
+ZLIBINC = $(GEMPAKHOME)/source/zlib
+PNGLIB = $(GEMOLB)/libpng.a
+PNGINC = $(GEMPAKHOME)/source/pnglib
+
+BUFRFLAGS = -O
+
+HAVEMOTIF = yes
+
+include $(NAWIPS)/config/Makeinc.$(NA_OS)
diff --git a/app-sci/gempak/files/digest-gempak-5.6m b/app-sci/gempak/files/digest-gempak-5.6m
new file mode 100644
index 000000000000..495f40b9cc77
--- /dev/null
+++ b/app-sci/gempak/files/digest-gempak-5.6m
@@ -0,0 +1 @@
+MD5 aae633e9398e9972c4c3d21b60859a45 gempak_upc5-1.6.m.tar.gz 104862420
diff --git a/app-sci/gempak/files/gempak.env.d b/app-sci/gempak/files/gempak.env.d
new file mode 100644
index 000000000000..4fd015a31fdd
--- /dev/null
+++ b/app-sci/gempak/files/gempak.env.d
@@ -0,0 +1,56 @@
+NAWIPS=/usr/gempak
+GARPHOME=/usr/gempak/comet/garp
+GARP_PATH=/usr/gempak/comet/garp/config
+NA_OS=linux
+GEMPAK=/usr/gempak/gempak
+GEMPAKHOME=/usr/gempak/gempak
+GEMLIB=/usr/gempak/lib/linux
+GEMEXE=/usr/gempak/bin/linux
+GEMPDF=/usr/gempak/gempak/pdf
+GEMTBL=/usr/gempak/gempak/tables
+GEMERR=/usr/gempak/gempak/error
+GEMHLP=/usr/gempak/gempak/help
+GEMMAPS=/usr/gempak/gempak/maps
+GEMNTS=/usr/gempak/gempak/nts
+GEMPARM=/usr/gempak/gempak/parm
+GEMPTXT=/usr/gempak/gempak/txt/programs
+GEMGTXT=/usr/gempak/gempak/txt/gemlib
+NAWIPS_EXE=/usr/gempak/bin/linux
+NAWIPS_LIB=/usr/gempak/lib/linux
+NAWIPS_INC=/usr/gempak/include
+NAWIPS_HELP=/usr/gempak/help
+NAWIPS_TABLES=/usr/gempak/tables
+NWX_TABLES=/usr/gempak/tables/nwx
+NMAP_RESTORE=/usr/gempak/gempak/nts/nmap/restore
+MEL_BUFR=/usr/gempak/gempak/source/melbufr
+MEL_BUFR_TABLES=/usr/gempak/gempak/tables/melbufr
+BRDGDIR=/usr/gempak/unidata/ldmbridge
+xresources="/usr/gempak/resource/%N"
+SCRIPTS_EXE=/usr/gempak/bin/scripts
+PATH=/usr/gempak/bin/linux:/usr/gempak/bin/scripts
+ROOTPATH=/usr/gempak/bin/linux:/usr/gempak/bin/scripts
+GEMDATA=/usr/gempak/data
+OBS=/usr/gempak/data
+NTRANS_META=/usr/gempak/data/meta
+TEXT_DATA=/usr/gempak/data/nwx
+SAT=/usr/gempak/data/images/sat
+RAD=/usr/gempak/data/images/radar
+RADDIR=/usr/gempak/data/images/radar
+LDMDATA=/usr/ldm/data
+GOES8=/usr/gempak/data/images/sat/GOES-8
+GOES9=/usr/gempak/data/images/sat/GOES-9
+HDS=/usr/gempak/data/hds
+MODEL=/usr/gempak/data/model
+SAO=/usr/gempak/data/surface
+UPA=/usr/gempak/data/upperair
+RAW_SAO=/usr/ldm/data/surface/sao
+RAW_SYN=/usr/ldm/data/surface/syn
+RAW_UPA=/usr/ldm/data/upperair
+NLDN=/usr/gempak/data/nldn
+TORN_WARN=/usr/gempak/data/nwx/watch_warn/torn_warn
+TSTRM_WARN=/usr/gempak/data/nwx/watch_warn/tstrm_warn
+TEXT_WARN=/usr/gempak/data/nwx/watch_warn
+RBKGPH=/usr/gempak/data/redbook
+LP="lpr"
+XUSERFILESEARCHPATH="/usr/gempak/resource/%N"
+grids=/usr/gempak/data/model
diff --git a/app-sci/gempak/gempak-5.6m.ebuild b/app-sci/gempak/gempak-5.6m.ebuild
new file mode 100644
index 000000000000..b53a2e7646a3
--- /dev/null
+++ b/app-sci/gempak/gempak-5.6m.ebuild
@@ -0,0 +1,165 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/gempak/gempak-5.6m.ebuild,v 1.1 2004/02/29 00:01:22 spyderous Exp $
+
+inherit gcc eutils
+
+# They can't seem to retain a normal naming scheme, so hacks are required.
+# Often the hacks change on every bump.
+MY_PV="${PV:0:${#PV}-1}.${PV:${#PV}-1}"
+MY_P="${PN}_upc${MY_PV/./-1.}"
+
+DESCRIPTION="GEMPAK Meteorological Plotting and Analysis Package"
+HOMEPAGE="http://www.unidata.ucar.edu/packages/gempak"
+SRC_URI="${MY_P}.tar.gz"
+LICENSE="as-is"
+DEPEND=""
+RDEPEND="${DEPEND}
+ x11-libs/openmotif
+ !x11-libs/lesstif"
+SLOT="0"
+KEYWORDS="~x86"
+RESTRICT="fetch"
+S="${WORKDIR}"
+
+pkg_setup() {
+ # Define this here so we don't have to have it more than once.
+ GENTOO_VARS="NAWIPS GARPHOME GARP_PATH NA_OS GEMPAK GEMPAKHOME GEMLIB GEMEXE
+ GEMPDF GEMTBL GEMERR GEMHLP GEMMAPS GEMNTS GEMPARM GEMPTXT GEMGTXT
+ NAWIPS_EXE NAWIPS_LIB NAWIPS_INC NAWIPS_HELP NAWIPS_TABLES NWX_TABLES
+ NMAP_RESTORE MEL_BUFR MEL_BUFR_TABLES BRDGDIR xresources SCRIPTS_EXE
+ GEMDATA OBS NTRANS_META TEXT_DATA SAT RAD RADDIR LDMDATA GOES8 GOES9 HDS
+ MODEL SAO UPA RAW_SAO RAW_SYN RAW_UPA NLDN TORN_WARN TSTRM_WARN
+ TEXT_WARN RBKGPH LP XUSERFILESEARCHPATH grids"
+}
+
+pkg_nofetch() {
+ einfo "Please visit ${HOMEPAGE}"
+ einfo "and place ${A} in ${DISTDIR}."
+}
+
+src_unpack() {
+ setup_vars
+
+ unpack ${A}
+
+ ebegin "Applying miscellaneous fixes"
+ # Add needed definition
+ sed -e '/^GEMPAKHOME/iNAWIPS = ${S}' ${FILESDIR}/Makeinc.common >> ${CONFIGDIR}/Makeinc.common
+
+ # One of the GEMPAK cleanup scripts uses '$RM' instead of 'rm'.
+ sed -i -e 's/^\$RM/rm/' ${S}/bin/scripts/cleanvgf
+
+ # Eliminate bad symlink
+ rm ${S}/unidata/programs/gpnexr2/rsl_colors
+
+ # This is necessary because otherwise it freaks out due to a missing
+ # lib/linux.
+ mkdir -p lib/linux
+ eend 0
+
+ # This is necessary because the paths to some bitmaps are hard-coded.
+ epatch ${FILESDIR}/${PV}-gui.c.patch
+
+ # Fix changed header
+ header_replace varargs.h stdarg.h
+
+ # Can't install to /usr/local
+ ebegin "Fixing bad install locations"
+ for BADFILE in `grep -lr '/usr/local' ${S}`
+ do sed -i "s:/usr/local:/usr:g" ${BADFILE} ;
+ done
+ eend 0
+}
+
+src_compile() {
+ setup_vars
+
+ make || die
+}
+
+src_install() {
+ setup_vars
+
+ einfo "Pre-installing GEMPAK..."
+ make install || die
+
+ # This eliminates all the Makefiles, source code, header files,
+ # and sundry other useless files.
+ ebegin "Removing unnecessary files"
+ rm -rf ${S}/{config,include,ldm,lib,netcdf,nprogs,unidata,gempak/source}
+ rm -rf ${S}/comet/{dcshef,etamap,garp/{gempak,gui,include,init,object,util}}
+ rm ${S}/{,gempak/,comet/{,garp/}}Makefile
+ eend 0
+
+ # Create the directory to install GEMPAK to.
+ dodir usr/gempak
+
+ # Create the skeleton directory hierarchy for GEMPAK data.
+ keepdir usr/gempak/data/images/radar/nids
+ keepdir usr/gempak/data/images/sat/GOES-East
+ keepdir usr/gempak/data/meta
+ keepdir usr/gempak/data/model
+ keepdir usr/gempak/data/nldn
+ keepdir usr/gempak/data/nwx
+ keepdir usr/gempak/data/redbook
+ keepdir usr/gempak/data/surface
+ keepdir usr/gempak/data/upperair
+ dosym usr/gempak/data/model usr/gempak/data/model/hds
+ dosym usr/gempak/data/model usr/gempak/data/model/hrs
+
+ # Put all the necessary files in the correct place.
+ einfo "Installing GEMPAK..."
+ cp -Rfv ${S}/* ${D}/usr/gempak
+
+ # This is necessary, because otherwise some of the files will not be
+ # world-readable
+ ebegin "Fixing permissions to ensure world-readability"
+ chmod +r -Rf ${D}
+ eend 0
+
+ # Install env.d file
+ insinto /etc/env.d
+ newins ${FILESDIR}/gempak.env.d 10gempak
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "A skeleton directory hierarchy has been automatically"
+ einfo "created in /usr/gempak/data. If you wish to use a"
+ einfo "different path you will need to edit /etc/env.d/10gempak"
+ einfo "to reflect the change. If you already have a directory"
+ einfo "hierarchy of your own, then simply remove /usr/gempak/data"
+ einfo "and create a symbolic link from your data path to"
+ einfo "/usr/gempak/data. Updates/uninstalls of GEMPAK will not"
+ einfo "affect the symlinked directories, so long as they have data"
+ einfo "inside them."
+ einfo ""
+ einfo "NOTE: Some of the programs in the GEMPAK suite have paths"
+ einfo "hardcoded into the executables. It is ill-advised"
+ einfo "to start playing around with paths unless you know"
+ einfo "what you are doing."
+ einfo ""
+}
+
+header_replace() {
+ # Replace obsoleted header
+ # Usage: header_fix oldheader newheader
+ ebegin "Replacing obsolete header references"
+ for OLDFILE in `grep -lr "${1}" ${S}`
+ do sed -i "s:${1}:${2}:g" ${OLDFILE} ;
+ done
+ eend 0
+}
+
+setup_vars() {
+ # All GEMPAK paths need to be unset before attempting to compile.
+ unset ${GENTOO_VARS}
+
+ # These GEMPAK paths must be set to their new values before
+ # compiling.
+ export CONFIGDIR="${S}/config"
+ export GARPHOME="${S}/comet/garp"
+ export NA_OS="linux"
+ export NAWIPS="${S}"
+}
diff --git a/app-sci/gempak/metadata.xml b/app-sci/gempak/metadata.xml
new file mode 100644
index 000000000000..b229aec85b8f
--- /dev/null
+++ b/app-sci/gempak/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>