summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2005-06-25 23:44:04 +0000
committerOlivier Fisette <ribosome@gentoo.org>2005-06-25 23:44:04 +0000
commit21bb914bfa39c2404566f36cbca36a5321593be8 (patch)
tree10c927406082189412585ffff3243c953fc0b7fc /sci-geosciences/gempak
parentnew upstream release (diff)
downloadgentoo-2-21bb914bfa39c2404566f36cbca36a5321593be8.tar.gz
gentoo-2-21bb914bfa39c2404566f36cbca36a5321593be8.tar.bz2
gentoo-2-21bb914bfa39c2404566f36cbca36a5321593be8.zip
Removed obsolete version.
(Portage version: 2.0.51.19)
Diffstat (limited to 'sci-geosciences/gempak')
-rw-r--r--sci-geosciences/gempak/ChangeLog6
-rw-r--r--sci-geosciences/gempak/files/5.6m-gui.c.patch200
-rw-r--r--sci-geosciences/gempak/files/digest-gempak-5.6m1
-rw-r--r--sci-geosciences/gempak/gempak-5.6m.ebuild166
4 files changed, 5 insertions, 368 deletions
diff --git a/sci-geosciences/gempak/ChangeLog b/sci-geosciences/gempak/ChangeLog
index 402aad22070f..1d31b0ef3056 100644
--- a/sci-geosciences/gempak/ChangeLog
+++ b/sci-geosciences/gempak/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-geosciences/gempak
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gempak/ChangeLog,v 1.4 2005/06/02 15:43:01 ribosome Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gempak/ChangeLog,v 1.5 2005/06/25 23:44:04 ribosome Exp $
+
+ 25 Jun 2005; Olivier Fisette <ribosome@gentoo.org>
+ -files/5.6m-gui.c.patch, -gempak-5.6m.ebuild:
+ Removed obsolete version.
02 Jun 2005; Olivier Fisette <ribosome@gentoo.org> gempak-5.6m.ebuild,
gempak-5.7.2_p2.ebuild, gempak-5.7.4.ebuild:
diff --git a/sci-geosciences/gempak/files/5.6m-gui.c.patch b/sci-geosciences/gempak/files/5.6m-gui.c.patch
deleted file mode 100644
index a3f80578694f..000000000000
--- a/sci-geosciences/gempak/files/5.6m-gui.c.patch
+++ /dev/null
@@ -1,200 +0,0 @@
---- 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/digest-gempak-5.6m b/sci-geosciences/gempak/files/digest-gempak-5.6m
deleted file mode 100644
index 495f40b9cc77..000000000000
--- a/sci-geosciences/gempak/files/digest-gempak-5.6m
+++ /dev/null
@@ -1 +0,0 @@
-MD5 aae633e9398e9972c4c3d21b60859a45 gempak_upc5-1.6.m.tar.gz 104862420
diff --git a/sci-geosciences/gempak/gempak-5.6m.ebuild b/sci-geosciences/gempak/gempak-5.6m.ebuild
deleted file mode 100644
index ea2465be4ff6..000000000000
--- a/sci-geosciences/gempak/gempak-5.6m.ebuild
+++ /dev/null
@@ -1,166 +0,0 @@
-# Copyright 1999-2005 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.3 2005/06/02 15:43:01 ribosome Exp $
-
-inherit 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}
- virtual/motif
- !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}"
-}