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
commitab9165394702627267ecfb5dbca000b5a2a95ee1 (patch)
tree991a213de2751d8d5bfde53b6dc948fbb4c6edad /sci-visualization
parentversion bump (diff)
downloadgentoo-2-ab9165394702627267ecfb5dbca000b5a2a95ee1.tar.gz
gentoo-2-ab9165394702627267ecfb5dbca000b5a2a95ee1.tar.bz2
gentoo-2-ab9165394702627267ecfb5dbca000b5a2a95ee1.zip
move from sci-misc category, as suggested in bug 161787
(Portage version: 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/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
7 files changed, 528 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/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>