diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-visualization/gri |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-visualization/gri')
-rw-r--r-- | sci-visualization/gri/Manifest | 9 | ||||
-rw-r--r-- | sci-visualization/gri/files/50gri-gentoo.el | 3 | ||||
-rw-r--r-- | sci-visualization/gri/files/gri-2.12.18-postscript.patch | 97 | ||||
-rw-r--r-- | sci-visualization/gri/files/gri-2.12.23-perl-5.16.patch | 23 | ||||
-rw-r--r-- | sci-visualization/gri/files/gri-2.12.23-texinfo5.patch | 32 | ||||
-rw-r--r-- | sci-visualization/gri/gri-2.12.23-r1.ebuild | 84 | ||||
-rw-r--r-- | sci-visualization/gri/metadata.xml | 21 |
7 files changed, 269 insertions, 0 deletions
diff --git a/sci-visualization/gri/Manifest b/sci-visualization/gri/Manifest new file mode 100644 index 000000000000..68109c5cfe5c --- /dev/null +++ b/sci-visualization/gri/Manifest @@ -0,0 +1,9 @@ +AUX 50gri-gentoo.el 147 SHA256 d3f04f7eb861ed663013e74d99981ea7c08ebf199de67c0ddd255eabc10ea09d SHA512 a3cbd9953756c48d393eb91f4b4b92021a5409cbe032f1fe697a44e2fca57b29eba295e9e59cc25dda521a91eda5bbfc0f7c3171f2541e83c25c2363ac0c41a7 WHIRLPOOL de48b54c74183ae0eb707b2bf27106966dbf698b80f8bc06558a74ed84d994182e4625b0f85dd9c69f90e34752856d2a34c15d868058761f8d55e12fcbc4cbb5 +AUX gri-2.12.18-postscript.patch 3997 SHA256 2d3c2d44f39507270581744de930fb92bdcab6c5e3d846653e08ccfec07375b9 SHA512 d5ec5209bb1149b7d635c463c39ed21f0c18fc056a8a3ceccfa4b9f589f78f8063cbf59e2a010a3c05ae5cd7dec0ed7f6e7f06b38cd4446feef6297ab49ed464 WHIRLPOOL 50acc993e729061b03b2bdfb1592e494d6cbdc434b1b34d9b4996c8bb5a3d633aaf0615204eaa45fb46b7faf0cf0fd5df54fdb37ed02b90c4836642be5a9dc00 +AUX gri-2.12.23-perl-5.16.patch 554 SHA256 3ac28a5846e69bf74e1844460f1c58fabeb7a9c58b74985d924b0ef9f08caf68 SHA512 63d5ab4d21d1d7382ce750040e88d855e605b1bdcc864f1b5d69d90cbc4f946b29dd976144d9bb68fea84b74ec707c7e00d7813b0d68648f7abf0649a98d1ff4 WHIRLPOOL 9beecebf66423f96fef0510b52260050763488e5bfe3a344563af04c1944dce400387103e42c2b44d9033063f6576126c7e6c69db98fdf6484b51ccbb4fc2428 +AUX gri-2.12.23-texinfo5.patch 1035 SHA256 99b4551dc759633c13391c150dba969a2cfb2c1a7344d547e91afe3334b49a8f SHA512 dff8276bd730c2b75c62775985fe4c9af7b0d8050b4d04e9e951bab60982e9f6d3c9afe9ee7bff6bf9886f7832f4299786855c2edd32d87d4985959bab0d3fda WHIRLPOOL 4361b57d3e7d23cbe925d30a832c5d2fec2967cade88d6ac4ed6dad19942b9aa1fa38b12d116c70198446b588661868b1b2b805b7dd82c07d49fc468edffe1b6 +DIST gri-2.12.23.tar.gz 1668587 SHA256 a24e703f30250ed705c0a242aa59a24748259ea7355fca52152f367f45bfd2e7 SHA512 0b028c56e9603fd00480ad7a92461c1e60f7879d89bffb5b83a2ee52c8870546e584c75478777dbb2d4934095fe9a9d4efd2aa2ff756c1860459a1e0cc0b4216 WHIRLPOOL f272827cfa5fa65604dc2a116660a78b7b0ac1df6d5ddacd943fae5ab258d05546285bffb89779aabe710c79a04d3f665b25484af3bbf5ffa1762ca3cee0c245 +EBUILD gri-2.12.23-r1.ebuild 2158 SHA256 e1933fc4bfc84ee0fe166b244f9b5c9316b851a8e805707cdb7230164261323d SHA512 3520bfdaadc81122cf9d0ee14230b31817b95cce8e90e1873a149706a3855398f5136a489310164b61cdde786a6d0d1d644fa636366d5be0787928ff9b947ff6 WHIRLPOOL b7c3cf60ff6cef34e919bcb9b6e9f938b70da717b3a6ce97ab8a30695848111d960b7acd53bda9d7d614c8a3b05da2a60871c0829ae5387a9afab0d79ce54a82 +MISC ChangeLog 2972 SHA256 90f9ea182dba397c6a0a6f3c7ce642db79e8170d60da5014755ad97059223c57 SHA512 be93e00fd0544744f8f68e0901a45bb549bc477d04abff338c2dd88eef0ac0ed8569016842a9f3dcde36b8aeb39df811d891a0445dc0e2bc7f574414faef5af5 WHIRLPOOL 68cf09ecc532211cc678c82f6e8bd9b106b5277ebdbe97f52260aa5ed44a342234b8f4f6ada1dbd1f90359d3c286c1ffa495d370114863989046aefd2be911a3 +MISC ChangeLog-2015 7928 SHA256 64df5d18dc229cdec769fe0f94d2d3ee707011fe3f26d4af468013b44e4dc319 SHA512 29fd216b0a7385fae970816163355a630863dd3d1e4f6a271f8c336cd108865a40bbae16ec491fe27c8e673b3ba2cbaf6bbd7f7fc121bea7c7713bff46744088 WHIRLPOOL 2d8049a519ef817e3a090b1eec831423fa7fc3fd80c2b530ae57b09be4902374c14bc231ed7511788d106dfcdf55f5ca3e75341399955e473ea8f15b0bacd52e +MISC metadata.xml 883 SHA256 c25d1a5e3de8abfa36f7efce93494192fa0b9df37980d00374ba0b0fbdf6590f SHA512 baf48aea8fd50e2304aec88dc3b62c2d44d1282a411670f7b27696b831a514bfc576a29807d4a43bc9afc2ca766adb402ee794655576fa7c2121afae3a254296 WHIRLPOOL bed60bcc61d5a818a2cf9c5a13db5816a2cdbec63a869150ace9406487070c76bdc45c1cad89fb06dd981f7fc1ab1324d39682622cefed486b1fb16a0e62de84 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.23-r1.ebuild b/sci-visualization/gri/gri-2.12.23-r1.ebuild new file mode 100644 index 000000000000..ad45c30407b0 --- /dev/null +++ b/sci-visualization/gri/gri-2.12.23-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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=" + app-text/ghostscript-gpl + >=sci-libs/netcdf-4 + virtual/latex-base + virtual/imagemagick-tools[png] + 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..d6941215d539 --- /dev/null +++ b/sci-visualization/gri/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <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> |