commit: 4cfc73b1ce33e2987958d12c7f4079cea3820fd1 Author: Brahmajit Das <listout <AT> listout <DOT> xyz> AuthorDate: Sun Sep 7 07:49:17 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Sun Sep 7 11:29:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cfc73b1
app-text/pandoc-bin: add 3.8 Signed-off-by: Brahmajit Das <listout <AT> listout.xyz> Part-of: https://github.com/gentoo/gentoo/pull/43696 Closes: https://github.com/gentoo/gentoo/pull/43696 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> app-text/pandoc-bin/Manifest | 2 + app-text/pandoc-bin/pandoc-bin-3.8.ebuild | 67 +++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/app-text/pandoc-bin/Manifest b/app-text/pandoc-bin/Manifest index 6ef406fb9ad2..3d192499dd10 100644 --- a/app-text/pandoc-bin/Manifest +++ b/app-text/pandoc-bin/Manifest @@ -4,3 +4,5 @@ DIST pandoc-3.7.0.1-linux-amd64.tar.gz 33675488 BLAKE2B 0a840b9cbcbcefecdafa0cca DIST pandoc-3.7.0.1-linux-arm64.tar.gz 36553069 BLAKE2B 29c349710e7be592c97ad2b6e734c5bf2f8a2252f3a690bda9fa3c122db5505df0f6fd3ba97210c07b32ea4a789fc31b8034e11ea6e474e05619d313bbb632bd SHA512 100195ff0051dde590a0f8830daa29bc0f8a45855beac639fee752bf3bee670ae4c0559a302cfa10714e43f71269462dd9c900eea8baf8355d1017aca753787a DIST pandoc-3.7.0.2-linux-amd64.tar.gz 33678610 BLAKE2B e52e3f016e05e8786f07d06fde9bc39e0e3ae1b3e739403ef130aabbbdfa74fdad14dcefb919ef39eaf92e574a7caae9123badcee229b21a90c9096501554c33 SHA512 e3a64cc47f775fa1456a2a9339ecc47b442181a12cfc94b24453711b7d32d8f3b53d816cc962fe446ba9b3141a6e62e383ba3c7284529977e672480e68e0f8b5 DIST pandoc-3.7.0.2-linux-arm64.tar.gz 36571354 BLAKE2B 6c16c2e156e644ca785dc223885348ac0297e914a757a9ff7d1dbf3bdcace9b04c4ab34fda60a7db265860fd05614aedbc36e3cb65d409f846684adb3de41378 SHA512 dc377e6447439156e41fd12c18ad07881afbe714db0764546f23b201568af612abca620411489235c0b37506651420d955fc3c71c409d4f64af3db2e505f5115 +DIST pandoc-3.8-linux-amd64.tar.gz 34067480 BLAKE2B ec6f5a7e1f52fb86828917d2ba37b9d46852f75abf0339eab85c88c31de2e8a6263aaf56b713e62e02121675880313f16fc2debdfe0569f413d3f2275706a2d4 SHA512 12c6d67f600bb6c9488c8d30194b73f06418911b283ef30e64ffe481e1600ed63bbd47fdddbee175a11ccd5dc11f3557a49400a6e310f465fc0653390efe3caf +DIST pandoc-3.8-linux-arm64.tar.gz 36980605 BLAKE2B afc20832edf71b6cd0da77f4300ec8f68dbec34bff01d9939187dfc17118466df8aed88f76475e5877637daf360d1e6606e477beff4762fd735e768477899955 SHA512 4f95c5d2502387167fe677bb496e75d0e6a7fd41c06d79272e57a3f38d331c7378c6fadac5f9dfdfeb4806defa639ebb5fa1dbc9c4c04c87cee6aba9ef109eef diff --git a/app-text/pandoc-bin/pandoc-bin-3.8.ebuild b/app-text/pandoc-bin/pandoc-bin-3.8.ebuild new file mode 100644 index 000000000000..11c2135c22ab --- /dev/null +++ b/app-text/pandoc-bin/pandoc-bin-3.8.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2025 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}.1" "${PN}.1" + newman "${WORKDIR}/${MY_PN}-lua.1" pandoc-lua-bin.1 + newman "${WORKDIR}/${MY_PN}-server.1" pandoc-server-bin.1 + + if use pandoc-symlink ; then + local -a exes=( + pandoc + pandoc-lua + pandoc-server + ) + + local exe="" + for exe in "${exes[@]}" ; do + dosym "${exe}-bin" "/usr/bin/${exe}" + dosym "${exe}-bin.1" "/usr/share/man/man1/${exe}.1" + done + fi +}
