summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-01-19 11:07:02 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-01-19 22:48:27 +0100
commit05ecae0db858dce16720cc3a122f794848963cbd (patch)
tree8838b721df6b2e61f8dcfcdad16d7b12a1c7fcfb /app-text
parentdev-java/openjdk: add 17.0.6_p10 (diff)
downloadgentoo-05ecae0db858dce16720cc3a122f794848963cbd.tar.gz
gentoo-05ecae0db858dce16720cc3a122f794848963cbd.tar.bz2
gentoo-05ecae0db858dce16720cc3a122f794848963cbd.zip
app-text/pandoc-bin: bump to 3.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/pandoc-bin/Manifest2
-rw-r--r--app-text/pandoc-bin/pandoc-bin-3.0.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/app-text/pandoc-bin/Manifest b/app-text/pandoc-bin/Manifest
index 939f3230291a..909cb8927fbd 100644
--- a/app-text/pandoc-bin/Manifest
+++ b/app-text/pandoc-bin/Manifest
@@ -4,3 +4,5 @@ DIST pandoc-2.19.1-linux-amd64.tar.gz 17167943 BLAKE2B 7799baa54cf340581113eac5e
DIST pandoc-2.19.1-linux-arm64.tar.gz 19030188 BLAKE2B de56902e276e9df89e88c92cb470e177d23a957542bfb11ff8449fec3c5af4a461b36b3093c5523e273d68a28784de9b88af862aa5d1be6f493c3a7485c001ca SHA512 8e74784690bb14d2239f83a52992548f7e27ad5ff93cf844cdb93f6e74d904592cd64cd98b6e93daa66b5cf83ce6c3e5968ab4ae86f23d69557b863ffea60ce4
DIST pandoc-2.19.2-linux-amd64.tar.gz 17174200 BLAKE2B effed9eab23fb5e957e3f6282fe0356935819e5a89ac02bd687b6b635fd0a1f5ba65b5b8b40d5bbd8f89d3b17d290184dd84555442eae15f1c1d5c916711d43a SHA512 c3c2ea179601cf9fea3826e6e6d148b951e5d5fe440db80759bdd49de2200660e6b66100453bd1714623bd98ac46fd51a4fb6e715668de04a122181949eee82a
DIST pandoc-2.19.2-linux-arm64.tar.gz 19033935 BLAKE2B c6964e708d6f0fbb4be4c3ba226dbc31629c466caa75f97ec450296f2c546d587db6c7d9145c65147d5c7ac7949e1dbd3fa3f6944276b4af8ccca2d896010403 SHA512 adb4eb5e3fa79d188d2123d132493c131dbedb408380012876b8ee80950cde4315ac179e9126d30d55221c3637b911b153ee4e6f550ccbc4dcd1f4828229974a
+DIST pandoc-3.0-linux-amd64.tar.gz 26474024 BLAKE2B 0abbeae952861061f05d5c1ff98d47d26b59e75c73655a215725020b588f06864ffce29c73b1bb37b19fa0805029883055791057edf4d133f7953ed1ac207d02 SHA512 30253053bad2ffc29fe3758db0007156657b567cf10b0e8febea17eafacc65cb6646801b9425c2c8d42654c8219ee1fe0753f7edaf3ba17b6bc1b41d91ba25e7
+DIST pandoc-3.0-linux-arm64.tar.gz 28539589 BLAKE2B 33d06d52b56e230042d07f304e065a3059ca08f6ec4e2ebb6f0fbe4d2e5af33d0d50e4b1811ca78da385be40504997b75ad3ec60080c866013f49ff17514cd0f SHA512 745f1db8335689eece8db5f1ca9c4b8a0f56cf6ad13b18d8dfceaf8fbf6c2b7e4244d9d599400ca8d8248fe9a1dcc73ada3135b8950f1532423a1316fd645439
diff --git a/app-text/pandoc-bin/pandoc-bin-3.0.ebuild b/app-text/pandoc-bin/pandoc-bin-3.0.ebuild
new file mode 100644
index 000000000000..a394f723b587
--- /dev/null
+++ b/app-text/pandoc-bin/pandoc-bin-3.0.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" # Upstream provides only AMD and ARM 64-bit binaries
+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
+}