summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-02-10 11:16:51 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-02-10 14:25:33 +0100
commitbd0492cc7a6f24c09dd4f1e97fa673ee74ccf65c (patch)
tree607533211407ef5870d2cc5fd052919c5e9b7ee5
parentnet-im/signal-desktop-bin: remove old version (diff)
downloadgentoo-bd0492cc7a6f24c09dd4f1e97fa673ee74ccf65c.tar.gz
gentoo-bd0492cc7a6f24c09dd4f1e97fa673ee74ccf65c.tar.bz2
gentoo-bd0492cc7a6f24c09dd4f1e97fa673ee74ccf65c.zip
app-text/pandoc-bin: bump to 3.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r--app-text/pandoc-bin/Manifest2
-rw-r--r--app-text/pandoc-bin/pandoc-bin-3.1.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/app-text/pandoc-bin/Manifest b/app-text/pandoc-bin/Manifest
index efef80c6f791..f91ef829d2b1 100644
--- a/app-text/pandoc-bin/Manifest
+++ b/app-text/pandoc-bin/Manifest
@@ -4,3 +4,5 @@ DIST pandoc-3.0-linux-amd64.tar.gz 26474024 BLAKE2B 0abbeae952861061f05d5c1ff98d
DIST pandoc-3.0-linux-arm64.tar.gz 28539589 BLAKE2B 33d06d52b56e230042d07f304e065a3059ca08f6ec4e2ebb6f0fbe4d2e5af33d0d50e4b1811ca78da385be40504997b75ad3ec60080c866013f49ff17514cd0f SHA512 745f1db8335689eece8db5f1ca9c4b8a0f56cf6ad13b18d8dfceaf8fbf6c2b7e4244d9d599400ca8d8248fe9a1dcc73ada3135b8950f1532423a1316fd645439
DIST pandoc-3.0.1-linux-amd64.tar.gz 26480576 BLAKE2B f74983b0665b015541e53e1f56666110c6587d7b80761a31bdb9b0da7450d934df93571c3e03ecf9561de5d3f0c4800e5b8fb6ef82f7eb5043c39348b11963a4 SHA512 9424af2647211894370a5f268a42add0c1437568e56b2cfd7f2c9b722216201afd2cbce39ab480652d4bc0b54ec8b0efafc5b0726c8ce68ac3d8a2f73e801dde
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
diff --git a/app-text/pandoc-bin/pandoc-bin-3.1.ebuild b/app-text/pandoc-bin/pandoc-bin-3.1.ebuild
new file mode 100644
index 000000000000..f5289c741e6a
--- /dev/null
+++ b/app-text/pandoc-bin/pandoc-bin-3.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
+}