summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <fauli@gentoo.org>2009-07-21 08:20:25 +0000
committerChristian Faulhammer <fauli@gentoo.org>2009-07-21 08:20:25 +0000
commit2732eb2b1b7e494c09b2bf189975732ee75d975c (patch)
tree4d4558da3c911653389e8d5c5485dcec02a4bc92 /sci-visualization
parentversion bump (diff)
downloadhistorical-2732eb2b1b7e494c09b2bf189975732ee75d975c.tar.gz
historical-2732eb2b1b7e494c09b2bf189975732ee75d975c.tar.bz2
historical-2732eb2b1b7e494c09b2bf189975732ee75d975c.zip
move from sci-misc category, as suggested in bug 161787
Package-Manager: portage-2.1.6.13/cvs/Linux i686 RepoMan-Options: --force
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/gri/ChangeLog174
-rw-r--r--sci-visualization/gri/Manifest20
-rw-r--r--sci-visualization/gri/files/50gri-gentoo.el7
-rw-r--r--sci-visualization/gri/files/gri-2.12.18-postscript.patch97
-rw-r--r--sci-visualization/gri/gri-2.12.16-r1.ebuild77
-rw-r--r--sci-visualization/gri/gri-2.12.18.ebuild83
-rw-r--r--sci-visualization/gri/gri-2.12.19.ebuild84
-rw-r--r--sci-visualization/gri/metadata.xml6
8 files changed, 548 insertions, 0 deletions
diff --git a/sci-visualization/gri/ChangeLog b/sci-visualization/gri/ChangeLog
new file mode 100644
index 000000000000..5a5547673031
--- /dev/null
+++ b/sci-visualization/gri/ChangeLog
@@ -0,0 +1,174 @@
+# ChangeLog for sci-visualization/gri
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gri/ChangeLog,v 1.1 2009/07/21 08:20:25 fauli Exp $
+
+ 21 Jul 2009; Christian Faulhammer <fauli@gentoo.org>
+ +files/50gri-gentoo.el, +gri-2.12.16-r1.ebuild, +gri-2.12.18.ebuild,
+ +files/gri-2.12.18-postscript.patch, +gri-2.12.19.ebuild, +metadata.xml:
+ move from sci-misc category, as suggested in bug 161787
+
+*gri-2.12.19 (21 Jul 2009)
+
+ 21 Jul 2009; Christian Faulhammer <fauli@gentoo.org> +gri-2.12.19.ebuild:
+ version bump
+
+ 13 Feb 2009; Patrick Kursawe <phosphan@gentoo.org> gri-2.12.16-r1.ebuild,
+ gri-2.12.18.ebuild:
+ Setting VARTEXFONTS (see bug #223077)
+
+ 13 Feb 2009; Patrick Kursawe <phosphan@gentoo.org> -gri-2.12.17.ebuild:
+ Removed unneeded version.
+
+ 01 Nov 2008; Markus Dittrich <markusle@gentoo.org>
+ +files/gri-2.12.18-postscript.patch, gri-2.12.18.ebuild:
+ Added patch to support proper postscript output (see bug #158828).
+ Thanks much to Sebastiaan for his patch.
+
+*gri-2.12.18 (27 Sep 2008)
+
+ 27 Sep 2008; Markus Dittrich <markusle@gentoo.org> +gri-2.12.18.ebuild:
+ Version bump.
+
+ 24 Aug 2008; Ulrich Mueller <ulm@gentoo.org> -gri-2.12.14.ebuild,
+ gri-2.12.16-r1.ebuild, gri-2.12.17.ebuild:
+ Fix Emacs support, bug 235602. Remove old.
+
+*gri-2.12.17 (09 Jun 2008)
+
+ 09 Jun 2008; Markus Dittrich <markusle@gentoo.org> gri-2.12.14.ebuild,
+ gri-2.12.16-r1.ebuild, +gri-2.12.17.ebuild:
+ Version bump. Also switched virtual/tetex -> virtual/latex-base
+ (see bug #222501).
+
+ 02 Nov 2007; Steve Dibb <beandog@gentoo.org> gri-2.12.16-r1.ebuild:
+ amd64 stable, bug 196887
+
+ 24 Oct 2007; Christian Faulhammer <opfer@gentoo.org>
+ gri-2.12.16-r1.ebuild:
+ stable x86, bug 196887
+
+ 01 Oct 2007; Christian Faulhammer <opfer@gentoo.org> -gri-2.12.9.ebuild:
+ clean up
+
+ 29 Sep 2007; Wulf C. Krueger <philantrop@gentoo.org> gri-2.12.14.ebuild:
+ Marked stable on amd64 as per bug 193684.
+
+ 25 Sep 2007; Christian Faulhammer <opfer@gentoo.org> -gri-2.12.7.ebuild,
+ -gri-2.12.11.ebuild, -gri-2.12.13.ebuild, -gri-2.12.16.ebuild:
+ clean up
+
+*gri-2.12.16-r1 (25 Sep 2007)
+
+ 25 Sep 2007; Christian Faulhammer <opfer@gentoo.org>
+ +gri-2.12.16-r1.ebuild:
+ introduce doc and examples USE flag, handling emacs USE flag correctly by
+ preventing a file to be installed if it is not set
+
+ 25 Sep 2007; Christian Faulhammer <opfer@gentoo.org> gri-2.12.16.ebuild:
+ correct the sed macro so it actually replaces the correct line
+
+ 24 Sep 2007; Christian Faulhammer <opfer@gentoo.org> gri-2.12.14.ebuild:
+ stable x86, bug 193684
+
+ 24 Sep 2007; Christian Faulhammer <opfer@gentoo.org> ChangeLog:
+ fix ChangeLog
+
+*gri-2.12.16 (24 Sep 2007)
+
+ 24 Sep 2007; Christian Faulhammer <opfer@gentoo.org> gri-2.12.14.ebuild,
+ +gri-2.12.16.ebuild:
+ version bump plus some QA fixes; RESTRICT test as they won't succeed
+
+ 22 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
+ Redigest for Manifest2
+
+*gri-2.12.14 (18 Jan 2007)
+
+ 18 Jan 2007; Christian Faulhammer <opfer@gentoo.org>
+ -files/info-install.patch, +gri-2.12.14.ebuild:
+ version bump; adjusted ghostscript dependency to virtual/ghostscript, as the
+ problem is resolved, reported by James Cloos <cloos@jhcloos.com> in bug
+ 162630; added some quotes; removed stray patch
+
+*gri-2.12.13 (07 Dec 2006)
+
+ 07 Dec 2006; Christian Faulhammer <opfer@gentoo.org> +gri-2.12.13.ebuild:
+ version bump
+
+ 23 Nov 2006; Christian Faulhammer <opfer@gentoo.org> gri-2.12.7.ebuild,
+ gri-2.12.9.ebuild, gri-2.12.11.ebuild:
+ Added comment, why app-text/ghostscript-esp is used as a dependency and not
+ virtual/ghostscript
+
+ 22 Nov 2006; Christian Faulhammer <opfer@gentoo.org> gri-2.12.7.ebuild,
+ gri-2.12.9.ebuild, gri-2.12.11.ebuild:
+ hard dependency on app-text/ghostscript-esp, as that is the only version
+ working from virtual/ghostscript, fixex bug #155236 reported by Patrick
+ Lauer <bugs@dev.gentooexperimental.org>
+
+*gri-2.12.11 (19 May 2006)
+
+ 19 May 2006; Matthew Kennedy <mkennedy@gentoo.org> +files/50gri-gentoo.el,
+ metadata.xml, +gri-2.12.11.ebuild:
+ New upstream version; Resolves Bug #117312; Added Emacs Herd to metadata.xml
+ for Emacs portion maintainership; Added missing virtual/ghostscript
+ depdendency; Resolves Bug #133397.
+
+ 15 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> gri-2.12.7.ebuild,
+ gri-2.12.9.ebuild:
+ Added media-gfx/imagemagick to DEPEND, closes bug 111087. Also marked stable
+ on amd64.
+
+*gri-2.12.9 (10 Mar 2005)
+
+ 10 Mar 2005; Patrick Kursawe <phosphan@gentoo.org> -gri-2.12.5.ebuild,
+ gri-2.12.7.ebuild, +gri-2.12.9.ebuild:
+ Bug #82456, version bump and cleanup.
+
+*gri-2.12.5 (27 Dec 2004)
+
+ 27 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +files/info-install.patch, +gri-2.12.5.ebuild, +gri-2.12.7.ebuild:
+ Moved from app-sci/gri to sci-misc/gri.
+
+ 06 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> gri-2.12.7.ebuild:
+ Marked stable on amd64.
+
+ 22 Apr 2004; David Holm <dholm@gentoo.org> gri-2.12.7.ebuild:
+ Added to ~ppc.
+
+ 22 Apr 2004; Danny van Dyk <kugelfang@gentoo.org> gri-2.12.7.ebuild:
+ marked ~amd64
+
+*gri-2.12.7 (22 Apr 2004)
+
+ 22 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> gri-2.12.4.ebuild,
+ gri-2.12.5.ebuild, gri-2.12.7.ebuild:
+ Version bump
+
+ 18 Nov 2003; Patrick Kursawe <phosphan@gentoo.org> gri-2.12.5.ebuild,
+ files/info-install.patch:
+ Fixing bug 33396, no revision bump.
+
+*gri-2.12.5 (30 Jun 2003)
+
+ 30 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> gri-2.12.5.ebuild :
+ Version bump.
+
+*gri-2.12.4 (16 May 2003)
+
+ 16 May 2003; George Shapovalov <george@gentoo.org> gri-2.12.4.ebuild :
+ new version
+
+*gri-2.12.1 (06 Dec 2002)
+
+ 07 Jan 2003; George Shapovalov <george@gentoo.org> gri-2.12.1.ebuild :
+
+ incorporated changes suggested by Jose "to fix the path of the documentation in the startup msg"
+ added IUSE
+
+ 06 Dec 2002; George Shapovalov <george@gentoo.org> ChangeLog, gri-2.12.1.ebuild, files/digest-gri-2.12.1 :
+ initial release (#10695)
+ Gri is a language for scientific graphics programming.
+ ebuild submitted by Jose Fonseca <j_r_fonseca@yahoo.co.uk>
+
diff --git a/sci-visualization/gri/Manifest b/sci-visualization/gri/Manifest
new file mode 100644
index 000000000000..8c22659f0823
--- /dev/null
+++ b/sci-visualization/gri/Manifest
@@ -0,0 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 50gri-gentoo.el 194 RMD160 11c28779dbc9bfcf77fa0a6a050ebbbeed46447d SHA1 6ede13b897b046a5b96fd83c11020f6d8b002c2f SHA256 cbb65e82e4b35f63c3006fe386d4d930f604a12ae12159d1b6c61b9223b68efa
+AUX gri-2.12.18-postscript.patch 3997 RMD160 4b390be9c915573812ba2e3d2289b2d9037e85ad SHA1 c2993812fc3fbbbbb21bd0516c43e094d6a78090 SHA256 2d3c2d44f39507270581744de930fb92bdcab6c5e3d846653e08ccfec07375b9
+DIST gri-2.12.16.tar.gz 1431717 RMD160 c42d77d4af370b7a0119e6b10ba69e18a1ed775a SHA1 941881ad6d8c766b0112d15cfab10889fc6da2f6 SHA256 dfe384cc8ebd82760b9c8a1af9644a69a995b2d4bd0f166abb667c918bd68df3
+DIST gri-2.12.18.tar.gz 1672471 RMD160 fbf66ac8c40010749c40ed96bf5f6b0086cfa0e9 SHA1 978f7ebcff13bbc830b90a5d58b01acbf0321057 SHA256 0f434b0d11775767030ff33d63aefcdf4ae5077b3dd8fd0ea1dbd0d20b3a0ca7
+DIST gri-2.12.19.tar.gz 1658449 RMD160 6243770193d75224a6034688a8d7897ecb63c2bb SHA1 d7d81354b1d06917eeb8b79167832fd223102d55 SHA256 9c1b315f309268a64c538c691644ac83665c88a65c408d427afe8ed22592b6e6
+EBUILD gri-2.12.16-r1.ebuild 2045 RMD160 f8f1aa3b1e74758c098350567a4678c96556326a SHA1 ccc3144c79f59444319f0b4e23948dcb240bffe7 SHA256 747d196961bcd0fd9b84d076e4be3927f28f4a2884bc70637377a8642a7812f4
+EBUILD gri-2.12.18.ebuild 2130 RMD160 61e91d3817779196e776104c1d0839d6aa85b25d SHA1 a5f5c01801b6fa6d849e9c9a07525da73ffd7166 SHA256 d3327c7a5f870bfbd8ab384a1eadf2ef942ec6c16e7b00862a515e80b898281e
+EBUILD gri-2.12.19.ebuild 2001 RMD160 0ca597c84ccfa401696e7386cfda83face66990f SHA1 f1868f9f1ce4eee426fa3bc48f689d0bddf7a634 SHA256 4c039f5f059327022fd978657e092ec8d3cccd36c6ae0ecc4ea8038e68a191f1
+MISC ChangeLog 6129 RMD160 0e0114771fb8120efab593ddb7361ee853b22afd SHA1 93dfa20a5656aa242cc1916180775d6c8a679da6 SHA256 6d46e7a9f49eaf919a660ef679207d6af2e32a34e60cdaada1630788c4e80ef9
+MISC metadata.xml 175 RMD160 369480802064328bcb4b293dcdf9b0db2acc1a14 SHA1 5b64fbb76e5bd297a21b64990d5c87ecd3c3ade0 SHA256 65307ae1ea731454f30f453db37e77be6595a54f7889777b02cf34becf5b6675
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAkplelEACgkQNQqtfCuFneP0owCfVDcM1Dr45VClVbiclgkD5nJw
+K2gAoI4cColaTQhi9v3SZ3Cb93xm8PpX
+=QkDK
+-----END PGP SIGNATURE-----
diff --git a/sci-visualization/gri/files/50gri-gentoo.el b/sci-visualization/gri/files/50gri-gentoo.el
new file mode 100644
index 000000000000..f386eef25da3
--- /dev/null
+++ b/sci-visualization/gri/files/50gri-gentoo.el
@@ -0,0 +1,7 @@
+
+;; site-lisp configuration for sci-misc/gri
+
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'gri-mode "gri-mode" "Enter Gri-mode." t)
+(add-to-list 'auto-mode-alist '("\\.gri\\'" . gri-mode))
diff --git a/sci-visualization/gri/files/gri-2.12.18-postscript.patch b/sci-visualization/gri/files/gri-2.12.18-postscript.patch
new file mode 100644
index 000000000000..b3f3b7301975
--- /dev/null
+++ b/sci-visualization/gri/files/gri-2.12.18-postscript.patch
@@ -0,0 +1,97 @@
+diff -Naur gri-2.12.18/src/extern.hh gri-2.12.18.new/src/extern.hh
+--- gri-2.12.18/src/extern.hh 2003-06-07 13:37:55.000000000 -0400
++++ gri-2.12.18.new/src/extern.hh 2008-11-01 10:46:40.000000000 -0400
+@@ -137,6 +137,7 @@
+
+ extern int _arrow_type;
+ extern bool _warn_offpage;
++extern bool _export_postscript;
+
+ extern std::vector<double> _dash;
+
+diff -Naur gri-2.12.18/src/gr.cc gri-2.12.18.new/src/gr.cc
+--- gri-2.12.18/src/gr.cc 2008-09-04 13:32:21.000000000 -0400
++++ gri-2.12.18.new/src/gr.cc 2008-11-01 10:52:24.000000000 -0400
+@@ -397,7 +397,16 @@
+ /*
+ * write conforming postscript prolog
+ */
+- fprintf(fp, "%%!PS-Adobe-2.0 EPSF-1.2\n");
++ //fprintf(fp, "%%!PS-Adobe-2.0 EPSF-1.2\n");
++ extern bool _export_postscript;
++ if (_export_postscript)
++ {
++ fprintf(fp, "%%!PS-Adobe-2.0\n");
++ }
++ else
++ {
++ fprintf(fp, "%%!PS-Adobe-2.0 EPSF-1.2\n");
++ }
+ if (privacy)
+ fprintf(fp, "%%%%Creator: %s\n", "");
+ else
+diff -Naur gri-2.12.18/src/gri.cc gri-2.12.18.new/src/gri.cc
+--- gri-2.12.18/src/gri.cc 2006-06-16 19:18:40.000000000 -0400
++++ gri-2.12.18.new/src/gri.cc 2008-11-01 10:46:40.000000000 -0400
+@@ -35,6 +35,7 @@
+ // Globals used elsewhere (variables begin with _).
+ int _arrow_type;
+ bool _warn_offpage;
++bool _export_postscript;
+ std::vector<double> _dash;
+ std::vector<DataFile> _dataFILE;
+ std::vector<CmdFile> _cmdFILE;
+diff -Naur gri-2.12.18/src/startup.cc gri-2.12.18.new/src/startup.cc
+--- gri-2.12.18/src/startup.cc 2008-06-12 08:57:26.000000000 -0400
++++ gri-2.12.18.new/src/startup.cc 2008-11-01 10:57:26.000000000 -0400
+@@ -188,6 +188,7 @@
+ _axes_offset = 0.0;
+ _use_default_for_query = false;
+ _warn_offpage = true;
++ _export_postscript = false;
+ PUT_VAR("..use_default_for_query..", 0.0);
+ PUT_VAR("..words_in_dataline..", 0.0); // just in case tested
+ PUT_VAR("..batch..", 0.0);
+@@ -681,6 +682,7 @@
+ #define FLAG_PUBLICATION 1009
+ #define FLAG_SUPERUSER 1010
+ #define FLAG_WARN_OFFPAGE 1011
++#define FLAG_POSTSCRIPT 1012
+ // I use the 'FLAG_...' numbers for options that lack single-character abbreviations.
+ static struct poptOption optionsTable[] = {
+ { "batch", 'b', POPT_ARG_NONE | POPT_ARGFLAG_ONEDASH, NULL, 'b' },
+@@ -703,6 +705,7 @@
+ { "version", 'v', POPT_ARG_NONE | POPT_ARGFLAG_ONEDASH, NULL, 'v' },
+ { "warn_offpage", '\0', POPT_ARG_NONE | POPT_ARGFLAG_ONEDASH, NULL, FLAG_WARN_OFFPAGE },
+ { "yes", 'y', POPT_ARG_NONE | POPT_ARGFLAG_ONEDASH, NULL, 'y' },
++ { "postscript", '\0', POPT_ARG_NONE | POPT_ARGFLAG_ONEDASH, NULL, FLAG_POSTSCRIPT },
+ { 0, 0, 0, 0, 0 }
+ };
+ const poptContext optCon =
+@@ -872,6 +875,8 @@
+ printf("Gri cannot read in '%s'\n",optArg);
+ }
+ break;
++ case FLAG_POSTSCRIPT
++ _export_postscript = true;
+ default:
+ printf("Unknown option\n");
+ break;
+@@ -1058,6 +1063,8 @@
+ } else if (!strcmp(argv[i], "-y") || !strcmp(argv[i], "-yes")) {
+ _use_default_for_query = true;
+ PUT_VAR("..use_default_for_query..", 1.0);
++ } else if (!strcmp(argv[i], "-postscript")){
++ _export_postscript = true;
+ #if 0
+ } else if (!strcmp(argv[i], "-e")) {
+ // User wants to do cmd in argv[i+1]
+@@ -1190,6 +1197,8 @@
+ gr_textput(" Makes Gri print out command lines as they are executed.\n");
+ gr_textput(" -true or -y\n");
+ gr_textput(" Makes Gri think the answer to all `query's is RETURN.\n");
++ gr_textput(" -postscript\n");
++ gr_textput(" Export a PostScript file instead of an EPS file.\n");
+ #if 0
+ gr_textput(" -e cmd\n");
+ gr_textput(" BUG: NOT IMPLEMENTED YET!\n");
diff --git a/sci-visualization/gri/gri-2.12.16-r1.ebuild b/sci-visualization/gri/gri-2.12.16-r1.ebuild
new file mode 100644
index 000000000000..cfa0e9ca9b4b
--- /dev/null
+++ b/sci-visualization/gri/gri-2.12.16-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gri/gri-2.12.16-r1.ebuild,v 1.1 2009/07/21 08:20:25 fauli Exp $
+
+inherit eutils elisp-common
+
+DESCRIPTION="language for scientific graphics programming"
+HOMEPAGE="http://gri.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gri/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="doc emacs examples"
+RESTRICT="test"
+
+DEPEND=">=sci-libs/netcdf-3.5.0
+ virtual/latex-base
+ media-gfx/imagemagick
+ virtual/ghostscript
+ emacs? ( virtual/emacs )"
+
+SITEFILE="50gri-gentoo.el"
+
+src_compile() {
+ econf || die "econf failed."
+ VARTEXFONTS="${T}/fonts" emake || die "emake failed."
+ if use emacs; then
+ elisp-compile src/*.el || die "elisp-compile failed"
+ fi
+}
+
+src_install() {
+ # Replace PREFIX now and correct paths in the startup message.
+ sed -e s,PREFIX/share/gri/doc/,/usr/share/doc/${P}/, -i "${S}/src/startup.msg"
+
+ einstall || die "einstall failed."
+
+ # license text not necessary
+ rm "${D}"/usr/share/gri/doc/license.txt
+
+ # install target installs it always and in the wrong location
+ # remove it here and call elisp-install in case of USE=emacs below
+ rm -rf "${D}"/usr/share/emacs
+
+ if ! use doc; then
+ sed -e "s/Manual at.*//" -i "${D}"/usr/share/gri/startup.msg
+ rm "${D}"/usr/share/gri/doc/cmdrefcard.ps
+ rm "${D}"/usr/share/gri/doc/refcard.ps
+ rm -rf "${D}"/usr/share/gri/doc/html
+ fi
+ if ! use examples; then
+ sed -e "s/Examples at.*//" -i "${D}"/usr/share/gri/startup.msg
+ rm -rf "${D}"/usr/share/gri/doc/examples
+ fi
+
+ dodoc README
+
+ #move docs to the proper place
+ mv "${D}"/usr/share/gri/doc/* "${D}/usr/share/doc/${PF}"
+ rmdir "${D}/usr/share/gri/doc/"
+
+ if use emacs; then
+ cd src
+ elisp-install ${PN} *.{el,elc} || die "elisp-install failed"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
+ || die "elisp-site-file-install failed"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-visualization/gri/gri-2.12.18.ebuild b/sci-visualization/gri/gri-2.12.18.ebuild
new file mode 100644
index 000000000000..b0968f84d6f4
--- /dev/null
+++ b/sci-visualization/gri/gri-2.12.18.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gri/gri-2.12.18.ebuild,v 1.1 2009/07/21 08:20:25 fauli Exp $
+
+inherit eutils elisp-common
+
+DESCRIPTION="language for scientific graphics programming"
+HOMEPAGE="http://gri.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gri/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc emacs examples"
+RESTRICT="test"
+
+DEPEND=">=sci-libs/netcdf-3.5.0
+ virtual/latex-base
+ media-gfx/imagemagick
+ virtual/ghostscript
+ emacs? ( virtual/emacs )"
+
+SITEFILE="50gri-gentoo.el"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-postscript.patch
+}
+
+src_compile() {
+ econf || die "econf failed."
+ VARTEXFONTS="${T}/fonts" emake || die "emake failed."
+ if use emacs; then
+ elisp-compile src/*.el || die "elisp-compile failed"
+ fi
+}
+
+src_install() {
+ # Replace PREFIX now and correct paths in the startup message.
+ sed -e s,PREFIX/share/gri/doc/,/usr/share/doc/${P}/, -i "${S}/src/startup.msg"
+
+ einstall || die "einstall failed."
+
+ # license text not necessary
+ rm "${D}"/usr/share/gri/doc/license.txt
+
+ # install target installs it always and in the wrong location
+ # remove it here and call elisp-install in case of USE=emacs below
+ rm -rf "${D}"/usr/share/emacs
+
+ if ! use doc; then
+ sed -e "s/Manual at.*//" -i "${D}"/usr/share/gri/startup.msg
+ rm "${D}"/usr/share/gri/doc/cmdrefcard.ps
+ rm "${D}"/usr/share/gri/doc/refcard.ps
+ rm -rf "${D}"/usr/share/gri/doc/html
+ fi
+ if ! use examples; then
+ sed -e "s/Examples at.*//" -i "${D}"/usr/share/gri/startup.msg
+ rm -rf "${D}"/usr/share/gri/doc/examples
+ fi
+
+ dodoc README
+
+ #move docs to the proper place
+ mv "${D}"/usr/share/gri/doc/* "${D}/usr/share/doc/${PF}"
+ rmdir "${D}/usr/share/gri/doc/"
+
+ if use emacs; then
+ cd src
+ elisp-install ${PN} *.{el,elc} || die "elisp-install failed"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
+ || die "elisp-site-file-install failed"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-visualization/gri/gri-2.12.19.ebuild b/sci-visualization/gri/gri-2.12.19.ebuild
new file mode 100644
index 000000000000..dad3105bbeb6
--- /dev/null
+++ b/sci-visualization/gri/gri-2.12.19.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gri/gri-2.12.19.ebuild,v 1.1 2009/07/21 08:20:25 fauli Exp $
+
+EAPI=2
+
+inherit eutils elisp-common
+
+DESCRIPTION="language for scientific graphics programming"
+HOMEPAGE="http://gri.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gri/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc emacs examples"
+RESTRICT="test"
+
+DEPEND=">=sci-libs/netcdf-3.5.0
+ virtual/latex-base
+ media-gfx/imagemagick
+ virtual/ghostscript
+ emacs? ( virtual/emacs )"
+
+RDEPEND="${DEPEND}"
+
+SITEFILE="50gri-gentoo.el"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.12.18-postscript.patch
+}
+
+src_compile() {
+ VARTEXFONTS="${T}/fonts" emake || die
+ if use emacs; then
+ elisp-compile src/*.el || die
+ fi
+}
+
+src_install() {
+ # Replace PREFIX now and correct paths in the startup message.
+ sed -e s,PREFIX/share/gri/doc/,/usr/share/doc/${P}/, -i "${S}/src/startup.msg"
+
+ einstall || die
+
+ # license text not necessary
+ rm "${D}"/usr/share/gri/doc/license.txt
+
+ # install target installs it always and in the wrong location
+ # remove it here and call elisp-install in case of USE=emacs below
+ rm -rf "${D}"/usr/share/emacs
+
+ if ! use doc; then
+ sed -e "s/Manual at.*//" -i "${D}"/usr/share/gri/startup.msg
+ rm "${D}"/usr/share/gri/doc/cmdrefcard.ps
+ rm "${D}"/usr/share/gri/doc/refcard.ps
+ rm -rf "${D}"/usr/share/gri/doc/html
+ fi
+ if ! use examples; then
+ sed -e "s/Examples at.*//" -i "${D}"/usr/share/gri/startup.msg
+ rm -rf "${D}"/usr/share/gri/doc/examples
+ fi
+
+ dodoc README
+
+ #move docs to the proper place
+ mv "${D}"/usr/share/gri/doc/* "${D}/usr/share/doc/${PF}"
+ rmdir "${D}/usr/share/gri/doc/"
+
+ if use emacs; then
+ cd src
+ elisp-install ${PN} *.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
+ || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-visualization/gri/metadata.xml b/sci-visualization/gri/metadata.xml
new file mode 100644
index 000000000000..077a573f0377
--- /dev/null
+++ b/sci-visualization/gri/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<herd>emacs</herd>
+</pkgmetadata>