summaryrefslogtreecommitdiff
path: root/dev-tex
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-07-07 12:24:47 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-07-07 12:24:47 +0100
commit5d8ffbc273ca664e15618d557ced3e02de1a884b (patch)
treebc22fbc6a07790fd70dc8b5148de3089a1c4db3e /dev-tex
parent4187bba080530c5ca1c7dae9c233e88f3fc8f535 (diff)
gentoo auto-resync : 07:07:2024 - 12:24:46
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/Manifest.gzbin6531 -> 6534 bytes
-rw-r--r--dev-tex/lgrind/Manifest5
-rw-r--r--dev-tex/lgrind/files/lgrind-3.67-fix-return-with-no-value.patch30
-rw-r--r--dev-tex/lgrind/lgrind-3.67-r4.ebuild (renamed from dev-tex/lgrind/lgrind-3.67-r3.ebuild)29
4 files changed, 55 insertions, 9 deletions
diff --git a/dev-tex/Manifest.gz b/dev-tex/Manifest.gz
index 9c84ecfb9360..2c9bb81f0602 100644
--- a/dev-tex/Manifest.gz
+++ b/dev-tex/Manifest.gz
Binary files differ
diff --git a/dev-tex/lgrind/Manifest b/dev-tex/lgrind/Manifest
index a2096f8f4621..888857c48010 100644
--- a/dev-tex/lgrind/Manifest
+++ b/dev-tex/lgrind/Manifest
@@ -1,4 +1,7 @@
AUX lgrind-3.67-fgets.patch 530 BLAKE2B 4865cc198841f075af91d76aab3f5fa4771bc21ea909bd4288a456b9a0d0a3d08800a92c546d93c02631930e43375411302a2bb844f1bde2ae7c81c0ced87f9a SHA512 cb16d6e43240be974e5833618f8539e9155f70f7c0f47c83124e79de71cbe9545bfefcb0078c8c6017b27f1aef709957cbdaeae2995bf66a2cc6bb93fe1a8a32
+AUX lgrind-3.67-fix-return-with-no-value.patch 983 BLAKE2B 098380d57c1ff0b1a6debaf82cc216cd5cabb3a7ed3e907acd4e32a37c5e7aef896871365b5a747b7cedddb2de0e6ad70d424bc5d8f4182a9f1052f4f725dea5 SHA512 5a759df301ff328c234fa8ea918228e30f97167e9cac640a789936deae43eae939771f3bbb4e2e5382716b195e734af5495269a54853c0bab1593224f963c7d3
+DIST lgrind-3.67-fix-begin-document.patch 547 BLAKE2B 8e9af9c73724809d3d312cf7b63df24067d6afb6ebc34c4c7baffa32a0548929991f4ed4dc8fe2ead7127de81f44d19356133149aa219f19153ac1702f458799 SHA512 0837866dc17691bec0867e60f7ae60fd7a76dc6f200e0d5926195c94b1da2c6f888146762a1df17381340def1b28558d8d0639db08f914873a50d437bf243f05
+DIST lgrind-3.67-texlive-2022.patch 551 BLAKE2B 88293027c8bfac609e46e0e873498b4635a42b87a2fa53197d54dac1df256fbcd618e370b348e01f3a0d2d4ccf940ddfe741881fbe93a3688079267ba48e34cb SHA512 8efa78f2792c8ee5bc05a69a46d9c22243f1ff88c1b643e97858e342b6cf8356022ba1155a05d3a9c081fe8b62541720d02a72583ffe9f3117ace4ccb7d1cb64
DIST lgrind-3.67.tgz 73205 BLAKE2B f19c5ed96251a4c9e5b8ec2cc2115a2b3581c067c26468dc80bfbeece1cb40f72964d60115221c52ab6c0067d670d6497c26eabc3743573248c77e63df24d416 SHA512 89dffec60b6cbac82e9633690412961cb619d6d86d39bea2fb6f3026e1317eb00494d7ed68865a943b1872346eaecdc1b8502de41517023a47309e1e803da2c6
-EBUILD lgrind-3.67-r3.ebuild 1176 BLAKE2B fbf18feacff4fa9abc1efe8084079ad24a62699639c90cc8051198c1ae06ee9b52eca26ce5cb6e18731d35cb32cd5b6c885ad4f123c6b5cdc7129a8f926c6598 SHA512 083bc9f2795b8021bf313468f7f1bc5dcf8b036b043f3dade30b51c668fd1623b1c6b02f75e9da150ef29d81353f9b77c9648ca65f40bf67822070b87925836f
+EBUILD lgrind-3.67-r4.ebuild 1766 BLAKE2B 284be812a3b8fec804d3b2f4d51515e7ac7a6784f39f34271855f0fefe8ef750914b519f79d6d344af7c3ec59a71450790c9809e73fd1536e4505c3691875e17 SHA512 dfe396a2e0fb37ffbfe98f14b8a236c659b9c7754284d9c07512d5b7eb9ac0051942601606f7d7890b32b616627759deb3b966dc81d8e097fd40b61932f7d4a8
MISC metadata.xml 246 BLAKE2B b56c934f8eecd3492d6abe15cf5883fdbc1979c37abbc5ad196e345ee17bb865db5eab10ac7de93bbfce94c4e865bf6b86d5f8bc081b5cb1d3d58d1158b81921 SHA512 b61f56c5e078714565ff9e33c81217e788f78bae9cf10d6ca78a82703a8e08119dff3afa68306eced0b7c62db9220d28efa4c9782e943c991e30b25b9ead82f5
diff --git a/dev-tex/lgrind/files/lgrind-3.67-fix-return-with-no-value.patch b/dev-tex/lgrind/files/lgrind-3.67-fix-return-with-no-value.patch
new file mode 100644
index 000000000000..b96018143112
--- /dev/null
+++ b/dev-tex/lgrind/files/lgrind-3.67-fix-return-with-no-value.patch
@@ -0,0 +1,30 @@
+From d9fb07f81dd3a6f3e97d251095dc3d0254c265e6 Mon Sep 17 00:00:00 2001
+From: Florian Schmaus <flo@geekplace.eu>
+Date: Sat, 6 Jul 2024 12:20:56 +0200
+Subject: [PATCH] Fix 'return' with no value in lgutil.c:parsevartab()
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+In file included from lgrind.c:1767:
+lgutil.c: In function ‘parsevartab’:
+lgutil.c:280:22: error: ‘return’ with no value, in function returning non-void [-Wreturn-mismatch]
+ 280 | if (f==NULL) return;
+ | ^~~~~~
+lgutil.c:274:11: note: declared here
+ 274 | varsubst *parsevartab(char* fname)
+ | ^~~~~~~~~~~
+--- a/source/lgutil.c
++++ b/source/lgutil.c
+@@ -277,7 +277,7 @@ varsubst *parsevartab(char* fname)
+ char linebuf[201], *cp;
+ varsubst *varsubsts=NULL, *substitem, *substlistpos;
+
+- if (f==NULL) return;
++ if (f==NULL) return varsubsts;
+ while (!feof(f))
+ {
+ fscanf(f, "%200[^\n]", linebuf);
+--
+2.44.2
+
diff --git a/dev-tex/lgrind/lgrind-3.67-r3.ebuild b/dev-tex/lgrind/lgrind-3.67-r4.ebuild
index ad2f61a9c676..cd2a9c18f39f 100644
--- a/dev-tex/lgrind/lgrind-3.67-r3.ebuild
+++ b/dev-tex/lgrind/lgrind-3.67-r4.ebuild
@@ -1,21 +1,35 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
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"
+SRC_URI="
+ https://dev.gentoo.org/~dilfridge/distfiles/${P}.tgz
+ https://salsa.debian.org/debian/lgrind/-/raw/dbf049621a61720c8350c37659cf6537ac3893a9/debian/patches/texlive-2022.patch
+ -> lgrind-3.67-texlive-2022.patch
+ https://salsa.debian.org/debian/lgrind/-/raw/dbf049621a61720c8350c37659cf6537ac3893a9/debian/patches/texlive-2020.patch
+ -> lgrind-3.67-fix-begin-document.patch
+"
+S="${WORKDIR}/${PN}"
LICENSE="BSD LGrind-Jacobson"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc x86"
+
IUSE="examples"
-S=${WORKDIR}/${PN}
+# Depend on latexextra for hypdoc.sty, see https://bugs.gentoo.org/928305
+DEPEND="dev-texlive/texlive-latexextra"
-PATCHES=( "${FILESDIR}/${P}-fgets.patch" )
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.67-fgets.patch
+ "${FILESDIR}"/${PN}-3.67-fix-return-with-no-value.patch
+ "${DISTDIR}"/${PN}-3.67-texlive-2022.patch
+ "${DISTDIR}"/${PN}-3.67-fix-begin-document.patch
+)
src_prepare() {
echo 'CFLAGS+=-DDEFSFILE=\"$(DEFSFILE)\" -DVERSION=\"$(VERSION)\"' > source/Makefile || die "Fixing Makefile failed"
@@ -27,8 +41,7 @@ src_compile() {
tc-export CC
latex-package_src_compile
- cd "${S}"/source
- emake DEFSFILE="/usr/share/texmf/tex/latex/${PN}/lgrindef" VERSION="${PV}"
+ emake -C source DEFSFILE="/usr/share/texmf/tex/latex/${PN}/lgrindef" VERSION="${PV}"
}
src_install() {
@@ -48,6 +61,6 @@ src_install() {
dodoc example/*
fi
- cd "${S}"/source
+ cd source || die
doman lgrind.1 lgrindef.5
}