summaryrefslogtreecommitdiff
path: root/dev-tex/lgrind
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-tex/lgrind
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-tex/lgrind')
-rw-r--r--dev-tex/lgrind/Manifest4
-rw-r--r--dev-tex/lgrind/files/lgrind-3.67-fgets.patch13
-rw-r--r--dev-tex/lgrind/lgrind-3.67-r3.ebuild51
-rw-r--r--dev-tex/lgrind/metadata.xml8
4 files changed, 76 insertions, 0 deletions
diff --git a/dev-tex/lgrind/Manifest b/dev-tex/lgrind/Manifest
new file mode 100644
index 000000000000..24f0d3e1b2bc
--- /dev/null
+++ b/dev-tex/lgrind/Manifest
@@ -0,0 +1,4 @@
+AUX lgrind-3.67-fgets.patch 530 BLAKE2B 4865cc198841f075af91d76aab3f5fa4771bc21ea909bd4288a456b9a0d0a3d08800a92c546d93c02631930e43375411302a2bb844f1bde2ae7c81c0ced87f9a SHA512 cb16d6e43240be974e5833618f8539e9155f70f7c0f47c83124e79de71cbe9545bfefcb0078c8c6017b27f1aef709957cbdaeae2995bf66a2cc6bb93fe1a8a32
+DIST lgrind.tar.gz 73205 BLAKE2B f19c5ed96251a4c9e5b8ec2cc2115a2b3581c067c26468dc80bfbeece1cb40f72964d60115221c52ab6c0067d670d6497c26eabc3743573248c77e63df24d416 SHA512 89dffec60b6cbac82e9633690412961cb619d6d86d39bea2fb6f3026e1317eb00494d7ed68865a943b1872346eaecdc1b8502de41517023a47309e1e803da2c6
+EBUILD lgrind-3.67-r3.ebuild 1113 BLAKE2B 91733f2fcd2edfce9ce9c5e3e1dd0d20fb5ee46fd74ad9be7bd3a11def5b4eb73e23b5960cf2ba4c5ba8029f7519cd0cdb2203b24ac2f7e80450333456b715fe SHA512 b82175587cf982067b7e03f404dbdd74b6a50f80fdc59d62a7ce59856c96ada97ce902dd497758fdeb3f6b7fb5e4b64b4328cf13ab5f1a2db43095187b62b468
+MISC metadata.xml 245 BLAKE2B ee3a163cfe0a4bc59c0dfb46f9ddb580e2d259b4d0e33cb4e684eb9e6d4b901bf97c6edd891f3b75a613a782f1b89318d0ee3ec9bee4e34c4441d9e8f4267678 SHA512 1653777623e2c15e1ce13229e396723b2cc9c214983e0f8592de98c01a31badc6c38c6735ed44f937d145883b43fb6f049af3eddb9ff96b18c96ccf8f67dd690
diff --git a/dev-tex/lgrind/files/lgrind-3.67-fgets.patch b/dev-tex/lgrind/files/lgrind-3.67-fgets.patch
new file mode 100644
index 000000000000..5c8e802dc18a
--- /dev/null
+++ b/dev-tex/lgrind/files/lgrind-3.67-fgets.patch
@@ -0,0 +1,13 @@
+Index: lgrind/source/lgutil.c
+===================================================================
+--- lgrind.orig/source/lgutil.c
++++ lgrind/source/lgutil.c
+@@ -113,7 +113,7 @@ void Internal_Help_Language_List()
+ check=0;
+ if (*config=='\n' || config[strlen(config)-2]!='\\')
+ check=1;
+- if (fgets(config, BUFFERSIZE, tf)==NULL) break;
++ if (fgets(config, BUFFERSIZE/4, tf)==NULL) break;
+ if (check!=0) AddToLList(config, &currlch, &llch);
+ } while (strcmp((*currlch).name, "EndOfLanguageDefinitions")!=0);
+ rch=lch;
diff --git a/dev-tex/lgrind/lgrind-3.67-r3.ebuild b/dev-tex/lgrind/lgrind-3.67-r3.ebuild
new file mode 100644
index 000000000000..fa373590f4b7
--- /dev/null
+++ b/dev-tex/lgrind/lgrind-3.67-r3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=0
+
+inherit latex-package toolchain-funcs eutils
+
+DESCRIPTION="A pretty printer for various programming languages with tex output."
+SRC_URI="mirror://gentoo/${PN}.tar.gz"
+
+LICENSE="BSD LGrind-Jacobson"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE="examples"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ echo 'CFLAGS+=-DDEFSFILE=\"$(DEFSFILE)\" -DVERSION=\"$(VERSION)\"' > source/Makefile
+ echo 'lgrind: lgrind.o lgrindef.o regexp.o' >> source/Makefile
+ epatch "${FILESDIR}/${P}-fgets.patch"
+}
+
+src_compile() {
+ tc-export CC
+
+ latex-package_src_compile
+ cd "${S}"/source
+ emake DEFSFILE="/usr/share/texmf/tex/latex/${PN}/lgrindef" VERSION="${PV}" || die
+}
+
+src_install() {
+ # binary first
+ dobin source/lgrind
+
+ # then the texmf stuff
+ latex-package_src_install
+ insinto /usr/share/texmf/tex/latex/${PN}
+ doins lgrindef
+
+ # and finally, the documentation
+ dodoc FAQ README
+ if use examples ; then
+ docinto examples
+ dodoc example/*
+ fi
+ cd "${S}"/source
+ doman lgrind.1 lgrindef.5
+}
diff --git a/dev-tex/lgrind/metadata.xml b/dev-tex/lgrind/metadata.xml
new file mode 100644
index 000000000000..13170c3184d8
--- /dev/null
+++ b/dev-tex/lgrind/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+</maintainer>
+</pkgmetadata>