diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2004-02-29 00:01:22 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2004-02-29 00:01:22 +0000 |
commit | fe43a44f1981908caf02a832f83630e194cad563 (patch) | |
tree | 663e423e1e085d4832f88834e5611928cefa7818 /app-sci/gempak | |
parent | version bump. fixes #43103 (diff) | |
download | historical-fe43a44f1981908caf02a832f83630e194cad563.tar.gz historical-fe43a44f1981908caf02a832f83630e194cad563.tar.bz2 historical-fe43a44f1981908caf02a832f83630e194cad563.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/ChangeLog | 12 | ||||
-rw-r--r-- | app-sci/gempak/Manifest | 7 | ||||
-rw-r--r-- | app-sci/gempak/files/5.6m-gui.c.patch | 200 | ||||
-rw-r--r-- | app-sci/gempak/files/Makeinc.common | 97 | ||||
-rw-r--r-- | app-sci/gempak/files/digest-gempak-5.6m | 1 | ||||
-rw-r--r-- | app-sci/gempak/files/gempak.env.d | 56 | ||||
-rw-r--r-- | app-sci/gempak/gempak-5.6m.ebuild | 165 | ||||
-rw-r--r-- | app-sci/gempak/metadata.xml | 5 |
8 files changed, 543 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..eeb2d483818c --- /dev/null +++ b/app-sci/gempak/Manifest @@ -0,0 +1,7 @@ +MD5 f5760af6277578b8dcbb0f837119b8d5 gempak-5.6m.ebuild 4979 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 8b52d48ab8e7b3a2bccc1e2367a72063 ChangeLog 505 +MD5 97929898710347638aca8dfc11ba2b9f files/Makeinc.common 3395 +MD5 560e697d377c41709d431556bac2944e files/gempak.env.d 1888 +MD5 39e7076109806924e3a099256cf2f3cb files/digest-gempak-5.6m 72 +MD5 1aeb7d2a1b139a694ed2949d4be6c95c files/5.6m-gui.c.patch 11734 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> |