commit:     706a79dfba3a2ef33a10fb07925706c29cfb6e51
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri May 16 15:45:04 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri May 16 20:38:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=706a79df

app-text/pandoc-bin: bump to 3.7

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-text/pandoc-bin/Manifest              |  2 +
 app-text/pandoc-bin/pandoc-bin-3.7.ebuild | 67 +++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/app-text/pandoc-bin/Manifest b/app-text/pandoc-bin/Manifest
index 358dab314e1a..7d973feea566 100644
--- a/app-text/pandoc-bin/Manifest
+++ b/app-text/pandoc-bin/Manifest
@@ -1,2 +1,4 @@
 DIST pandoc-3.6.4-linux-amd64.tar.gz 32917495 BLAKE2B 
241c3b4766bbdc5015e5958e045bab2140d79101f44a78d11b389fc1fb1177bff8fe6485075e6f6893e3b82e4f958fd88700bd983bf63b38bdbedc94fafc2ff7
 SHA512 
62972bbe2b55a039c82b9e26bc9ce55c3ffff0ba4e7eca22338b07a1c3fc7d3064d709d7dee8bd8dac434e850262adea732a376ab1ff8a7dad3b11b2a35012be
 DIST pandoc-3.6.4-linux-arm64.tar.gz 35685198 BLAKE2B 
a52089a2ec64e8d7abf240506175da0216f20d0aab382c4ac6155e37bda4b5edb87f742488c8c7ed28980aa5429b15dc9c08d4bf2fe2f742101d6e98001d3170
 SHA512 
b2e3d490392690816d8a6388f50ce8022044b1d042519cdf770b0f50f0960d6671d1097ec594a66cc8db990fde4cc3964ee13ead8106e56d3e58578db24577e3
+DIST pandoc-3.7-linux-amd64.tar.gz 33669861 BLAKE2B 
0e965da816ad3e4eadbeced12fcfce02ffba083651da62575c96bcf58f08fc3c481fc88047b9efe5c17ead56940b8fcd3ec82e746b2b8b827f5190277ef24439
 SHA512 
ca13dc3622f4d3e18c5199f247e7af968c3f9d35b667b60f35ed8f950e9ede5d58fa1870343746376e96f03e5d0b57c12ef2b626d58f48edefae5f085295e102
+DIST pandoc-3.7-linux-arm64.tar.gz 36555329 BLAKE2B 
a3b58d4f9d531ca13c88819ea0f9c335723245b396af4f93b39d9a0f96e433729e0b3b941500ee556e4e90c500015173d1b9b763706cfb1dc44f63b83ab0ae9e
 SHA512 
b2f47cbe9db826017f55ebeae2fbfed38720d6fa1ff2497136b651f958580d142474a97c13bed084394bce4d34a47773526a4f54c5d5439cd21ada0c1c1c6254

diff --git a/app-text/pandoc-bin/pandoc-bin-3.7.ebuild 
b/app-text/pandoc-bin/pandoc-bin-3.7.ebuild
new file mode 100644
index 000000000000..11c2135c22ab
--- /dev/null
+++ b/app-text/pandoc-bin/pandoc-bin-3.7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="${PN//-bin/}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Conversion between markup formats (binary package)"
+HOMEPAGE="https://pandoc.org/
+       https://github.com/jgm/pandoc/";
+
+BASE_URI="https://github.com/jgm/${MY_PN}/releases/download/${PV}/${MY_P}";
+SRC_URI="
+       amd64? ( ${BASE_URI}-linux-amd64.tar.gz )
+       arm64? ( ${BASE_URI}-linux-arm64.tar.gz )
+"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm64"
+IUSE="+pandoc-symlink"
+
+RDEPEND="
+       pandoc-symlink? (
+               !${CATEGORY}/${MY_PN}
+               !app-text/pandoc-cli
+               !dev-haskell/pandoc
+       )
+"
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+QA_PRESTRIPPED="${QA_FLAGS_IGNORED}"
+
+src_unpack() {
+       default
+
+       # Manpages are gzipped.
+       unpack "${S}/share/man/man1"/*.1.gz
+}
+
+src_install() {
+       exeinto /usr/bin
+       newexe "./bin/${MY_PN}" "${PN}"
+
+       dosym "${PN}" /usr/bin/pandoc-lua-bin
+       dosym "${PN}" /usr/bin/pandoc-server-bin
+
+       newman "${WORKDIR}/${MY_PN}.1" "${PN}.1"
+       newman "${WORKDIR}/${MY_PN}-lua.1" pandoc-lua-bin.1
+       newman "${WORKDIR}/${MY_PN}-server.1" pandoc-server-bin.1
+
+       if use pandoc-symlink ; then
+               local -a exes=(
+                       pandoc
+                       pandoc-lua
+                       pandoc-server
+               )
+
+               local exe=""
+               for exe in "${exes[@]}" ; do
+                       dosym "${exe}-bin" "/usr/bin/${exe}"
+                       dosym "${exe}-bin.1" "/usr/share/man/man1/${exe}.1"
+               done
+       fi
+}

Reply via email to