summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text')
-rw-r--r--app-text/pandoc-bin/Manifest2
-rw-r--r--app-text/pandoc-bin/pandoc-bin-3.1.1.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/app-text/pandoc-bin/Manifest b/app-text/pandoc-bin/Manifest
index 3b3883464440..aab74acf7b76 100644
--- a/app-text/pandoc-bin/Manifest
+++ b/app-text/pandoc-bin/Manifest
@@ -2,3 +2,5 @@ DIST pandoc-3.0.1-linux-amd64.tar.gz 26480576 BLAKE2B f74983b0665b015541e53e1f56
DIST pandoc-3.0.1-linux-arm64.tar.gz 28536489 BLAKE2B 38cfd1c6fda336f445ee58ff1b7d63c6edc72d0c87b9e01d724c2db75bb0bb429eb0b076e999b31149bc76921fc58dca47441233dd5c2cf010283c910107a75f SHA512 beb59675be8b6176c577c4a34e0c3a2dc5789d47dfdac51d22470f2e7ab8238ce12b996f5d8b021bc13d8cb4e4aecff428a5c1ed3703a483d06cd97f09705004
DIST pandoc-3.1-linux-amd64.tar.gz 26480348 BLAKE2B faabb114fde41c51ada10d4bb85ca694f010c2fe30e9f3078d4dc7b2bfb3d35c078bac9b7694de656b1bc4d2558476ead3b2ce2a1085e14a6e5e1ffb18b0a248 SHA512 945f077a2ad8f40546ec83e0a60b0e30b54f066005ef53f92a83e20eb38afda2270a214f35c6c0b2c2c77f53bcfe89cfad56795e58cb834dc2cb1af43b2192ea
DIST pandoc-3.1-linux-arm64.tar.gz 28541921 BLAKE2B c00281dd2b4707b5046a79b83d28d95d6b8bb71076f65904f4c64e9628491ee4e35a9470ca962357dd18776caa9f895fdb8edad1211a3cdf63276c20aa5a9b5f SHA512 4ada611a0748b5607ac97da80925a86bf7f10f723cd3cec276d257d81cf991c6e8d5324bb99f67e5fbf3785558f03e86b2cda6524c3de79f1c68febd17abe635
+DIST pandoc-3.1.1-linux-amd64.tar.gz 26510765 BLAKE2B 5d95137a9d5dabbead7a0a56b67d7f876491e6bb71812958163dae600e6826544d89d5f036c3c6e19b022462014a5c317d73ed59a6955d02c4a5ae70088e2a31 SHA512 f6b99770a173e8ef0136b009a3d646fe60c80133827f6a09c40d1a5a2c59cf757d89fbc1314555c0883fcfc2b8f8b05502e0efdfe57f17b892d13ef49d4e5725
+DIST pandoc-3.1.1-linux-arm64.tar.gz 28579848 BLAKE2B 8933d6d062f51b172bb142a96dd5fcd5057b1c070b90272b8b4f192780e5107b1ef8f143e662a68ac4472b23982dd5def753db0880f15785a40b8a87e116182a SHA512 b420f33114dcf6fa1e9512fdde64d85e00c837eb98c3f3e35b21c49dc8a38dfda3c90ef21aa99108da3349ae1abe27b108c57e969a703e8919105c1918c70aa0
diff --git a/app-text/pandoc-bin/pandoc-bin-3.1.1.ebuild b/app-text/pandoc-bin/pandoc-bin-3.1.1.ebuild
new file mode 100644
index 000000000000..f5289c741e6a
--- /dev/null
+++ b/app-text/pandoc-bin/pandoc-bin-3.1.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 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} )"
+
+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}-lua.1 pandoc-lua-bin.1
+ newman "${WORKDIR}"/${MY_PN}-server.1 pandoc-server-bin.1
+ newman "${WORKDIR}"/${MY_PN}.1 ${PN}.1
+
+ if use pandoc-symlink ; then
+ dosym ${PN} /usr/bin/${MY_PN}
+ dosym pandoc-lua-bin /usr/bin/${MY_PN}-lua
+ dosym pandoc-server-bin /usr/bin/${MY_PN}-server
+
+ dosym ${PN}.1 /usr/share/man/man1/${MY_PN}.1
+ dosym pandoc-lua-bin.1 /usr/share/man/man1/${MY_PN}-lua.1
+ dosym pandoc-server-bin.1 /usr/share/man/man1/${MY_PN}-server.1
+ fi
+}