summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-visualization/gri
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-visualization/gri')
-rw-r--r--sci-visualization/gri/Manifest2
-rw-r--r--sci-visualization/gri/files/50gri-gentoo.el3
-rw-r--r--sci-visualization/gri/files/gri-2.12.18-postscript.patch97
-rw-r--r--sci-visualization/gri/files/gri-2.12.23-perl-5.16.patch23
-rw-r--r--sci-visualization/gri/files/gri-2.12.23-texinfo5.patch32
-rw-r--r--sci-visualization/gri/gri-2.12.19.ebuild84
-rw-r--r--sci-visualization/gri/gri-2.12.23.ebuild85
-rw-r--r--sci-visualization/gri/metadata.xml18
8 files changed, 344 insertions, 0 deletions
diff --git a/sci-visualization/gri/Manifest b/sci-visualization/gri/Manifest
new file mode 100644
index 000000000000..683c8207cab4
--- /dev/null
+++ b/sci-visualization/gri/Manifest
@@ -0,0 +1,2 @@
+DIST gri-2.12.19.tar.gz 1658449 SHA256 9c1b315f309268a64c538c691644ac83665c88a65c408d427afe8ed22592b6e6 SHA512 cf4c4675b5e5d38b3ef3f6db1209bd29e08b9d5547edc245ec78bbd0f0549937c6de0298c3bd3a565206ab2f8742c45a2344b227136f13412faf9734c5bbe3c6 WHIRLPOOL 5fa851fb8f13bcc3bdbf9d07c2af75295c3014a52b65e723e8ce9c9186af5c7a6a49df45cd3a9115fce562676df1ee07c1df68c6a19fec3e4f6134a528b5fe4b
+DIST gri-2.12.23.tar.gz 1668587 SHA256 a24e703f30250ed705c0a242aa59a24748259ea7355fca52152f367f45bfd2e7 SHA512 0b028c56e9603fd00480ad7a92461c1e60f7879d89bffb5b83a2ee52c8870546e584c75478777dbb2d4934095fe9a9d4efd2aa2ff756c1860459a1e0cc0b4216 WHIRLPOOL f272827cfa5fa65604dc2a116660a78b7b0ac1df6d5ddacd943fae5ab258d05546285bffb89779aabe710c79a04d3f665b25484af3bbf5ffa1762ca3cee0c245
diff --git a/sci-visualization/gri/files/50gri-gentoo.el b/sci-visualization/gri/files/50gri-gentoo.el
new file mode 100644
index 000000000000..e07d47c854a4
--- /dev/null
+++ b/sci-visualization/gri/files/50gri-gentoo.el
@@ -0,0 +1,3 @@
+(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/files/gri-2.12.23-perl-5.16.patch b/sci-visualization/gri/files/gri-2.12.23-perl-5.16.patch
new file mode 100644
index 000000000000..14c89978ce7c
--- /dev/null
+++ b/sci-visualization/gri/files/gri-2.12.23-perl-5.16.patch
@@ -0,0 +1,23 @@
+ doc/texinfo2HTML | 6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/doc/texinfo2HTML b/doc/texinfo2HTML
+index 39bed0e..43d3fe6 100755
+--- a/doc/texinfo2HTML
++++ b/doc/texinfo2HTML
+@@ -54,12 +54,12 @@ BUGS:
+ the end is here} and more blah
+ will not get the \@code{} item converted correctly.
+ ";
+-require "ctime.pl";
+-require "getopts.pl";
++use POSIX qw(strftime ctime);
++use Getopt::Std;
+
+ $debug = 0;
+
+-die if !&Getopts('h');
++die if !getopts('h');
+ $print_help = 0;
+ $print_help = $opt_h if $opt_h;
+ if ($print_help) {
diff --git a/sci-visualization/gri/files/gri-2.12.23-texinfo5.patch b/sci-visualization/gri/files/gri-2.12.23-texinfo5.patch
new file mode 100644
index 000000000000..dfc56fc574b3
--- /dev/null
+++ b/sci-visualization/gri/files/gri-2.12.23-texinfo5.patch
@@ -0,0 +1,32 @@
+From 93a40c0b444fb5265b21a344b884b1c7bed49b5a Mon Sep 17 00:00:00 2001
+From: Dan Kelley <kelley.dan@gmail.com>
+Date: Mon, 5 Aug 2013 21:01:46 -0300
+Subject: [PATCH] Bug#718821 fixed
+
+Problem with a subsubsection following a section.
+---
+ doc/gri.texi | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/doc/gri.texi b/doc/gri.texi
+index 57c5e76..d16b6ff 100644
+--- a/doc/gri.texi
++++ b/doc/gri.texi
+@@ -18486,7 +18486,7 @@ Versions exist for MSDOS, windows, and Linux operating systems.
+ (Actually, the windows version is just the MSDOS version, which can be
+ run inside an msdos window within windows-95, windows-NT, etc.)
+
+-@subsubsection MSDOS Operating System
++@subsection MSDOS Operating System
+ @cindex compilation under MSDOS
+ @cindex MSDOS compilation
+
+@@ -18543,7 +18543,7 @@ To view the output, use a PostScript viewer such as GSview.
+
+
+
+-@subsubsection LINUX Operating System
++@subsection LINUX Operating System
+ @cindex compilation under Linux
+ @cindex linux compilation
+ @cindex LINUX compilation
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..754c65e08e27
--- /dev/null
+++ b/sci-visualization/gri/gri-2.12.19.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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[png]
+ app-text/ghostscript-gpl
+ 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/gri-2.12.23.ebuild b/sci-visualization/gri/gri-2.12.23.ebuild
new file mode 100644
index 000000000000..6f551067aec3
--- /dev/null
+++ b/sci-visualization/gri/gri-2.12.23.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils elisp-common
+
+DESCRIPTION="Language for scientific graphics programming"
+HOMEPAGE="http://gri.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc emacs examples hdf5"
+
+DEPEND="
+ >=sci-libs/netcdf-4
+ virtual/latex-base
+ || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png,imagemagick] )
+ app-text/ghostscript-gpl
+ emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}"
+
+SITEFILE="50gri-gentoo.el"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-2.12.18-postscript.patch \
+ "${FILESDIR}"/${P}-perl-5.16.patch \
+ "${FILESDIR}"/${P}-texinfo5.patch
+ # Makefile.am contains a call to the missing script that triggers gentoo qa
+ sed -i -e 's|${SHELL} ../missing --run tex|tex|g' \
+ doc/Makefile.in || die
+ sed \
+ -e "/system/d" \
+ -i doc/tst_suite/tst_rpn.gri || die
+}
+
+src_compile() {
+ # gentoo bug #302621
+ use hdf5 && has_version sci-libs/hdf5[mpi] && \
+ export CXX=mpicxx CC=mpicc
+ VARTEXFONTS="${T}/fonts" emake
+ use emacs && elisp-compile src/*.el
+}
+
+src_install() {
+ default
+ # license text not necessary
+ rm "${ED}"/usr/share/gri/doc/license.txt || die
+
+ # 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 "${ED}"/usr/share/emacs || die
+
+ if ! use doc; then
+ sed -i -e "s/Manual at.*//" "${ED}"/usr/share/gri/startup.msg || die
+ rm "${ED}"/usr/share/gri/doc/{cmd,}refcard.ps || die
+ rm -rf "${ED}"/usr/share/gri/doc/html || die
+ fi
+ if ! use examples; then
+ sed -i -e "s/Examples at.*//" "${ED}"/usr/share/gri/startup.msg || die
+ rm -rf "${ED}"/usr/share/gri/doc/examples || die
+ fi
+ #move docs to the proper place
+ use doc || use examples && \
+ mv -f "${ED}"/usr/share/gri/doc/* "${ED}"/usr/share/doc/${PF}
+ rm -rf "${ED}"/usr/share/gri/doc || die
+
+ if use emacs; then
+ cd src
+ elisp-install ${PN} *.{el,elc}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ 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..afedbe7220bc
--- /dev/null
+++ b/sci-visualization/gri/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <longdescription lang="en">
+ Gri is a language for scientific graphics programming. The word
+ "language" is important: Gri is command-driven, not
+ point/click. Some users liken Gri to LaTeX, since both provide
+ extensive power in exchange for patience in learning syntax. Gri can
+ make x-y graphs, contour graphs, and image graphs, in PostScript and
+ (someday) SVG formats. Control is provided over all aspects of
+ drawing, e.g. line widths, colors, and fonts. A TeX-like syntax
+ provides common mathematical symbols.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">gri</remote-id>
+ </upstream>
+</pkgmetadata>