summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-05-12 13:29:43 +0200
committerMaciej Barć <xgqt@gentoo.org>2024-05-12 13:33:35 +0200
commit2317006553669f02697f172b46771b88db3ec268 (patch)
tree8b1160b8c9d99eba1bdd6fa7c5dbed5c224eb970 /app-text
parentx11-terms/wezterm: use system cairo (diff)
downloadgentoo-2317006553669f02697f172b46771b88db3ec268.tar.gz
gentoo-2317006553669f02697f172b46771b88db3ec268.tar.bz2
gentoo-2317006553669f02697f172b46771b88db3ec268.zip
app-text/pandoc-bin: bump to 3.2
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.2.ebuild62
2 files changed, 64 insertions, 0 deletions
diff --git a/app-text/pandoc-bin/Manifest b/app-text/pandoc-bin/Manifest
index af266be83b82..808732ffd862 100644
--- a/app-text/pandoc-bin/Manifest
+++ b/app-text/pandoc-bin/Manifest
@@ -2,3 +2,5 @@ DIST pandoc-3.1.12.3-linux-amd64.tar.gz 32038834 BLAKE2B 829ab9be9923af1b655e294
DIST pandoc-3.1.12.3-linux-arm64.tar.gz 34805145 BLAKE2B 87d4ebf9eebbbc0145ae733e662ff28a9e2d1ff4d6dacb3a191c798efc021bc58c574675ce64e41f557fffaf6864fb776e66b2c3dfcaac0281a4e180e07c8455 SHA512 2128d50e7e5ad93744eee99aaef0d6b0a69fd15ec00c8049e35659050101845a3930146568e34af5ba6d254ccd0098158a4b6485a5eb8fd49a6006d41161ca2a
DIST pandoc-3.1.13-linux-amd64.tar.gz 32092762 BLAKE2B 87e55905550cc6289241b399faa0ae65e913bf1105ba6309a7b7ed63685cc43f267b065c811a335b0774a3b7d6f082f607015f8558b66c8098591513e26c6f4c SHA512 68986e691895770ad51018e5643a02fb848517a1ab68dd0cd99e8511a2a681f9c2bcf1ebc0088c39e1c0f8ebbf4032795b2427696f92ef4a64eab18b7aa588c2
DIST pandoc-3.1.13-linux-arm64.tar.gz 34869977 BLAKE2B 485a33645c580edf28ebbcee4ce67fa9c7bebb84d4771b0ba23a6b78beb9b92e125d2e8024b061a6b6da839b96969add6f27d420a102ad01305c9a9a120e5478 SHA512 36253cc908c147ee7cda398c52f4ec0a7493e7f0525a3f97cba7cf53e39cf3fd225ecb2f77508fae7c59aa6c79ca85644b9759a0eb0dc918f86fb2049e17858a
+DIST pandoc-3.2-linux-amd64.tar.gz 32159847 BLAKE2B 5eec253ba208925fe5cab08151e4ec5566db7cda13db7562d19fceafa1e5b898e5e3174df8c6af0f0f1f6494b48011806f2def55c11460b7bda8b152199ad95c SHA512 b3236fc265c54290e2e913980a1f7a7133a2f3a1f9381c7fbe28437f4c034b6c83edb3ab1ebf39ddb59bea8085c7e97eff4de013b5f30c283464a6d8df780b70
+DIST pandoc-3.2-linux-arm64.tar.gz 34897786 BLAKE2B 656c74f2cb820a0391e462e2e92c44f274cb3a9fc8faee8f5f07d7edec70b74e6484c7842248ae9cf13a5c32c99b0b6be1824247b8b8a565599dea5486ed9d0b SHA512 dd88a7aff58a52d7f69a710dc5e6a457332296a2d9b027247fa94d626ac6a682e16c4b1540c74b4aafc719a0ec7169bd1634f98a6c2e5b904800022f451329f0
diff --git a/app-text/pandoc-bin/pandoc-bin-3.2.ebuild b/app-text/pandoc-bin/pandoc-bin-3.2.ebuild
new file mode 100644
index 000000000000..6c205a599708
--- /dev/null
+++ b/app-text/pandoc-bin/pandoc-bin-3.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 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}-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
+}