summaryrefslogtreecommitdiff
path: root/dev-tex/lgrind
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-11-10 13:21:36 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-11-10 13:21:36 +0000
commit77398e424e45d9e98c1cef3c43bdadb9d56e81ef (patch)
tree5aeffd3fc7b92fc615bd2c222fa8831aeda1925b /dev-tex/lgrind
parentbd4aeefe33e63f613512604e47bfca7b2187697d (diff)
gentoo resync : 10.11.2019
Diffstat (limited to 'dev-tex/lgrind')
-rw-r--r--dev-tex/lgrind/Manifest2
-rw-r--r--dev-tex/lgrind/lgrind-3.67-r3.ebuild20
2 files changed, 12 insertions, 10 deletions
diff --git a/dev-tex/lgrind/Manifest b/dev-tex/lgrind/Manifest
index ed6fe12a9101..ff597dd390e6 100644
--- a/dev-tex/lgrind/Manifest
+++ b/dev-tex/lgrind/Manifest
@@ -1,4 +1,4 @@
AUX lgrind-3.67-fgets.patch 530 BLAKE2B 4865cc198841f075af91d76aab3f5fa4771bc21ea909bd4288a456b9a0d0a3d08800a92c546d93c02631930e43375411302a2bb844f1bde2ae7c81c0ced87f9a SHA512 cb16d6e43240be974e5833618f8539e9155f70f7c0f47c83124e79de71cbe9545bfefcb0078c8c6017b27f1aef709957cbdaeae2995bf66a2cc6bb93fe1a8a32
DIST lgrind-3.67.tgz 73205 BLAKE2B f19c5ed96251a4c9e5b8ec2cc2115a2b3581c067c26468dc80bfbeece1cb40f72964d60115221c52ab6c0067d670d6497c26eabc3743573248c77e63df24d416 SHA512 89dffec60b6cbac82e9633690412961cb619d6d86d39bea2fb6f3026e1317eb00494d7ed68865a943b1872346eaecdc1b8502de41517023a47309e1e803da2c6
-EBUILD lgrind-3.67-r3.ebuild 1134 BLAKE2B d90289902ef80b2e88a07e27552d515c35a7328a6dc2a0c9a831527e060e1f2506f634a27ce6959d075be3c2c54dca369ff0d1f605e66a5615135847208343d3 SHA512 3eb6ec682784a32ffbe1895bb745bf91db08a85950a4604c84f4ee92ae8b10354f841882b923bf5590448e1dc7c2c253141cd9c717e8f82d480d0ea7fcc4da2a
+EBUILD lgrind-3.67-r3.ebuild 1177 BLAKE2B c61ade32f0045779aab20412656365b45a926e27e1f7f5bdd4bcfa23440d63cdc5e9a309d38be95b6fbc02eb9a76aad02ec2c1a633a10aea6839e48b4147163a SHA512 35c58f202b1ad192cde5285c1d7fc659b36ce8a048d5f91afd6a315aaa5c6f3044331f625459bed199165e440f0e0a5e151ec7b475f0d852d73981e42e90aa35
MISC metadata.xml 245 BLAKE2B ee3a163cfe0a4bc59c0dfb46f9ddb580e2d259b4d0e33cb4e684eb9e6d4b901bf97c6edd891f3b75a613a782f1b89318d0ee3ec9bee4e34c4441d9e8f4267678 SHA512 1653777623e2c15e1ce13229e396723b2cc9c214983e0f8592de98c01a31badc6c38c6735ed44f937d145883b43fb6f049af3eddb9ff96b18c96ccf8f67dd690
diff --git a/dev-tex/lgrind/lgrind-3.67-r3.ebuild b/dev-tex/lgrind/lgrind-3.67-r3.ebuild
index 7c92be12ec1b..bf0507cc8966 100644
--- a/dev-tex/lgrind/lgrind-3.67-r3.ebuild
+++ b/dev-tex/lgrind/lgrind-3.67-r3.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
-inherit latex-package toolchain-funcs eutils
+inherit latex-package toolchain-funcs
DESCRIPTION="A pretty printer for various programming languages with tex output."
SRC_URI="https://dev.gentoo.org/~dilfridge/distfiles/${P}.tgz"
@@ -15,12 +15,12 @@ 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"
+PATCHES=( "${FILESDIR}/${P}-fgets.patch" )
+
+src_prepare() {
+ echo 'CFLAGS+=-DDEFSFILE=\"$(DEFSFILE)\" -DVERSION=\"$(VERSION)\"' > source/Makefile || die "Fixing Makefile failed"
+ echo 'lgrind: lgrind.o lgrindef.o regexp.o' >> source/Makefile || die "Fixing Makefile failed"
+ default
}
src_compile() {
@@ -28,7 +28,7 @@ src_compile() {
latex-package_src_compile
cd "${S}"/source
- emake DEFSFILE="/usr/share/texmf/tex/latex/${PN}/lgrindef" VERSION="${PV}" || die
+ emake DEFSFILE="/usr/share/texmf/tex/latex/${PN}/lgrindef" VERSION="${PV}"
}
src_install() {
@@ -42,10 +42,12 @@ src_install() {
# and finally, the documentation
dodoc FAQ README
+
if use examples ; then
docinto examples
dodoc example/*
fi
+
cd "${S}"/source
doman lgrind.1 lgrindef.5
}