summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-06-07 14:49:04 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-06-07 15:40:19 +0200
commit0902eff8fc76d115f3daf4d7b1548d1a5301f992 (patch)
treee5cc66a8e220fd439c4348c1183746b7976f0e97 /app-text/pandoc-bin
parentapp-text/pandoc-bin: drop old 3.1.1 (diff)
downloadgentoo-0902eff8fc76d115f3daf4d7b1548d1a5301f992.tar.gz
gentoo-0902eff8fc76d115f3daf4d7b1548d1a5301f992.tar.bz2
gentoo-0902eff8fc76d115f3daf4d7b1548d1a5301f992.zip
app-text/pandoc-bin: bump to 3.1.3
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-text/pandoc-bin')
-rw-r--r--app-text/pandoc-bin/Manifest2
-rw-r--r--app-text/pandoc-bin/pandoc-bin-3.1.3.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/app-text/pandoc-bin/Manifest b/app-text/pandoc-bin/Manifest
index 79230445a0d2..9f17241b10d2 100644
--- a/app-text/pandoc-bin/Manifest
+++ b/app-text/pandoc-bin/Manifest
@@ -1,2 +1,4 @@
DIST pandoc-3.1.2-linux-amd64.tar.gz 26813708 BLAKE2B 0ded2b73204d5a9447442a2b0bc7c67ee7b2256583caaf71dbe2d0e2bad66977272a9b7089828ea96b3e88d18532338b224ea752299bdb9a4654cf7b4b02ce6f SHA512 8d16e9d852ab10744d885973f788232f8f0cc768d293873fa253d415a286d73a33b27653ed12e871cbe35908130388d039086712c20baac1dde0b0993e740b8e
DIST pandoc-3.1.2-linux-arm64.tar.gz 28909714 BLAKE2B 2ef53ccdf30df08d2f6819dfeb3cc542ca535b4ff73574681123a1d045dfbd04219adfdcf98becd0796749abaec309ce882714fba3afa5f8543942982f80a03b SHA512 4d36e2afb7c0e7561fa4a9cc6e56706c40435ff175224604cb544cb4c924aafd4ebb09419eebb9d7e30d899828928579ef1ac254eafa387da8e12fce9844e0ce
+DIST pandoc-3.1.3-linux-amd64.tar.gz 28685814 BLAKE2B ecbc685d45ced12f69223ceff4914a876fa631866eb304ea58ab1623a9569de708cc8b85c403881e1f53dfc559885409329dd13cbadc88afb52c490d9c61fb0e SHA512 f97e62154ceeaf47c6bc2b8c28008ff4a30392b9162b387e4181097c359d0244b8c6435c88fcd587eb210612fb274d639bb2058bc565a8400c2fb6cdeda45b8a
+DIST pandoc-3.1.3-linux-arm64.tar.gz 30811766 BLAKE2B 5d5807ea6de49fe87b31f51754d70f781fbd27111980bb14eaafd985a53f7e4fa1c7c0dd66d041184194d5b6a74a429e78b8a0913532645d29b47dbc82e154fb SHA512 6bb8b658e2ea3c96e5781754618104086268dbad45bd95ed7474842993c57cbd18ef1bb909556a1aef118589624d431b17454cd76e8b44dbe441e463e6332a1b
diff --git a/app-text/pandoc-bin/pandoc-bin-3.1.3.ebuild b/app-text/pandoc-bin/pandoc-bin-3.1.3.ebuild
new file mode 100644
index 000000000000..f5289c741e6a
--- /dev/null
+++ b/app-text/pandoc-bin/pandoc-bin-3.1.3.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
+}