summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2004-12-29 01:15:45 +0000
committerOlivier Fisette <ribosome@gentoo.org>2004-12-29 01:15:45 +0000
commit963e1dbe534f51ef84390e7125c209c9b8df7c96 (patch)
treea664ed9b59a2f54c00285c9b10142a93ffd0d249 /sci-geosciences/gempak
parentMoved dev-libs/fftw to sci-libs/fftw (diff)
downloadgentoo-2-963e1dbe534f51ef84390e7125c209c9b8df7c96.tar.gz
gentoo-2-963e1dbe534f51ef84390e7125c209c9b8df7c96.tar.bz2
gentoo-2-963e1dbe534f51ef84390e7125c209c9b8df7c96.zip
Moved from app-sci/gempak to sci-geosciences/gempak.
Diffstat (limited to 'sci-geosciences/gempak')
-rw-r--r--sci-geosciences/gempak/ChangeLog40
-rw-r--r--sci-geosciences/gempak/Manifest11
-rw-r--r--sci-geosciences/gempak/files/5.6m-gui.c.patch200
-rw-r--r--sci-geosciences/gempak/files/Makeinc.common97
-rw-r--r--sci-geosciences/gempak/files/digest-gempak-5.6m1
-rw-r--r--sci-geosciences/gempak/files/digest-gempak-5.7.2_p21
-rw-r--r--sci-geosciences/gempak/files/digest-gempak-5.7.41
-rw-r--r--sci-geosciences/gempak/files/gempak.env.d56
-rw-r--r--sci-geosciences/gempak/gempak-5.6m.ebuild166
-rw-r--r--sci-geosciences/gempak/gempak-5.7.2_p2.ebuild167
-rw-r--r--sci-geosciences/gempak/gempak-5.7.4.ebuild165
-rw-r--r--sci-geosciences/gempak/metadata.xml5
12 files changed, 910 insertions, 0 deletions
diff --git a/sci-geosciences/gempak/ChangeLog b/sci-geosciences/gempak/ChangeLog
new file mode 100644
index 000000000000..5c684876a591
--- /dev/null
+++ b/sci-geosciences/gempak/ChangeLog
@@ -0,0 +1,40 @@
+# ChangeLog for app-sci/gempak
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gempak/ChangeLog,v 1.1 2004/12/29 01:15:45 ribosome Exp $
+
+*gempak-5.6m (28 Dec 2004)
+
+ 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +files/5.6m-gui.c.patch, +files/Makeinc.common, +files/gempak.env.d,
+ +gempak-5.6m.ebuild, +gempak-5.7.2_p2.ebuild, +gempak-5.7.4.ebuild:
+ Moved from app-sci/gempak to sci-geosciences/gempak.
+
+*gempak-5.7.4 (23 Dec 2004)
+
+ 23 Dec 2004; Donnie Berkholz <spyderous@gentoo.org>; +gempak-5.7.4.ebuild:
+ Version bump.
+
+ 23 Dec 2004; Donnie Berkholz <spyderous@gentoo.org>;
+ gempak-5.7.2_p2.ebuild:
+ x86.
+
+ 05 Jun 2004; David Holm <dholm@gentoo.org> gempak-5.7.2_p2.ebuild:
+ Added to ~ppc.
+
+*gempak-5.7.2_p2 (03 Jun 2004)
+
+ 03 Jun 2004; Donnie Berkholz <spyderous@gentoo.org>;
+ +gempak-5.7.2_p2.ebuild:
+ Version bump (#49138).
+
+ 19 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> gempak-5.6m.ebuild:
+ Adding IUSE
+
+*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/sci-geosciences/gempak/Manifest b/sci-geosciences/gempak/Manifest
new file mode 100644
index 000000000000..35eb0f7867dd
--- /dev/null
+++ b/sci-geosciences/gempak/Manifest
@@ -0,0 +1,11 @@
+MD5 3e4b5626cde17acb25d2778402dee3de ChangeLog 1023
+MD5 2889593bb22e60b8c714f69ddf4373d5 gempak-5.6m.ebuild 4977
+MD5 a0c824b52424d82b27a7128ca183f2a9 gempak-5.7.2_p2.ebuild 5032
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 23af284a8f2472240d5988cdcc28b18a gempak-5.7.4.ebuild 5008
+MD5 1aeb7d2a1b139a694ed2949d4be6c95c files/5.6m-gui.c.patch 11734
+MD5 97929898710347638aca8dfc11ba2b9f files/Makeinc.common 3395
+MD5 39e7076109806924e3a099256cf2f3cb files/digest-gempak-5.6m 72
+MD5 760f368f986389c739653dd12ea6dfb8 files/digest-gempak-5.7.2_p2 72
+MD5 560e697d377c41709d431556bac2944e files/gempak.env.d 1888
+MD5 af55ff81e8e47ef2b412c899cba7c2d6 files/digest-gempak-5.7.4 70
diff --git a/sci-geosciences/gempak/files/5.6m-gui.c.patch b/sci-geosciences/gempak/files/5.6m-gui.c.patch
new file mode 100644
index 000000000000..a3f80578694f
--- /dev/null
+++ b/sci-geosciences/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/sci-geosciences/gempak/files/Makeinc.common b/sci-geosciences/gempak/files/Makeinc.common
new file mode 100644
index 000000000000..14cbbf173b39
--- /dev/null
+++ b/sci-geosciences/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/sci-geosciences/gempak/files/digest-gempak-5.6m b/sci-geosciences/gempak/files/digest-gempak-5.6m
new file mode 100644
index 000000000000..495f40b9cc77
--- /dev/null
+++ b/sci-geosciences/gempak/files/digest-gempak-5.6m
@@ -0,0 +1 @@
+MD5 aae633e9398e9972c4c3d21b60859a45 gempak_upc5-1.6.m.tar.gz 104862420
diff --git a/sci-geosciences/gempak/files/digest-gempak-5.7.2_p2 b/sci-geosciences/gempak/files/digest-gempak-5.7.2_p2
new file mode 100644
index 000000000000..d97274e128f0
--- /dev/null
+++ b/sci-geosciences/gempak/files/digest-gempak-5.7.2_p2
@@ -0,0 +1 @@
+MD5 d8f52abb26f083395a65068d4ecd7725 gempak_upc5.7.2p2.tar.gz 118639087
diff --git a/sci-geosciences/gempak/files/digest-gempak-5.7.4 b/sci-geosciences/gempak/files/digest-gempak-5.7.4
new file mode 100644
index 000000000000..f232e9dff482
--- /dev/null
+++ b/sci-geosciences/gempak/files/digest-gempak-5.7.4
@@ -0,0 +1 @@
+MD5 f4f0fea070baebfa57ef1d0967c83855 gempak_upc5.7.4.tar.gz 120491554
diff --git a/sci-geosciences/gempak/files/gempak.env.d b/sci-geosciences/gempak/files/gempak.env.d
new file mode 100644
index 000000000000..4fd015a31fdd
--- /dev/null
+++ b/sci-geosciences/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/sci-geosciences/gempak/gempak-5.6m.ebuild b/sci-geosciences/gempak/gempak-5.6m.ebuild
new file mode 100644
index 000000000000..c7ce1d0dbcf5
--- /dev/null
+++ b/sci-geosciences/gempak/gempak-5.6m.ebuild
@@ -0,0 +1,166 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gempak/gempak-5.6m.ebuild,v 1.1 2004/12/29 01:15:45 ribosome 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"
+IUSE=""
+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/sci-geosciences/gempak/gempak-5.7.2_p2.ebuild b/sci-geosciences/gempak/gempak-5.7.2_p2.ebuild
new file mode 100644
index 000000000000..e7408ab39cd5
--- /dev/null
+++ b/sci-geosciences/gempak/gempak-5.7.2_p2.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gempak/gempak-5.7.2_p2.ebuild,v 1.1 2004/12/29 01:15:45 ribosome 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/_}"
+MY_P="${PN}_upc${MY_PV}"
+
+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"
+IUSE=""
+KEYWORDS="x86 ~ppc"
+RESTRICT="fetch"
+# More inconsistencies, this sometimes changes on bumps.
+S="${WORKDIR}/GEMPAK${MY_PV}"
+
+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/sci-geosciences/gempak/gempak-5.7.4.ebuild b/sci-geosciences/gempak/gempak-5.7.4.ebuild
new file mode 100644
index 000000000000..da9229e3f65d
--- /dev/null
+++ b/sci-geosciences/gempak/gempak-5.7.4.ebuild
@@ -0,0 +1,165 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gempak/gempak-5.7.4.ebuild,v 1.1 2004/12/29 01:15:45 ribosome 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/_}"
+MY_P="${PN}_upc${MY_PV}"
+
+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="x11-libs/openmotif
+ !x11-libs/lesstif"
+SLOT="0"
+IUSE=""
+KEYWORDS="~x86 ~ppc"
+RESTRICT="fetch"
+# More inconsistencies, this sometimes changes on bumps.
+S="${WORKDIR}/GEMPAK${MY_PV}"
+
+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/sci-geosciences/gempak/metadata.xml b/sci-geosciences/gempak/metadata.xml
new file mode 100644
index 000000000000..b229aec85b8f
--- /dev/null
+++ b/sci-geosciences/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>