mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-text/pandoc-bin: bump to 3.10
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST pandoc-3.10-linux-amd64.tar.gz 34661245 BLAKE2B d12928ccc1ced98b17e867bc968cdfa704bd395c9df7fe4fa02d1dd09e4c6bc6b4f5b6e86678028c9d4d1fff4b69f9804374a518dbc3b4da8c754fe8175da822 SHA512 bfdc77993ebbe7ce28e0f9f4f5b3704681b0e550dc6725c73626979c438559d559bc5c3778dbe4a78a4b01af22b9d690b658cf84c683f0e12ee8eb4b72efe229
|
||||
DIST pandoc-3.10-linux-arm64.tar.gz 37109798 BLAKE2B a0e8656e4a7246060ab61118dfde45f779d1f90c677272fb98049ff53894beec9911ca881f9c600a8e5a76c4e493e48d67cd856a0c2bdc80f3e5ed806ebc9b03 SHA512 04abb8b36fc39246d400fed8adce0fd88fca97aba4af2f01711a857bd49034a51610014a92e3f41d7a3447ae0a3697c690586b0fb25abd5c1309daa04aa87ebe
|
||||
DIST pandoc-3.9.0.2-linux-amd64.tar.gz 34520947 BLAKE2B c6defeface350d69905d861487029e2fcb3b25e6ea5fc9162e8e7a24b943ac6155ffff681331093cd09e6cefe35621896e9c57e76bdee157038659ef65375184 SHA512 844a78782d66d2a63e712a5239829cc495f0bacaa8412d89eb2a3f48ece1b99edff3cb2f6a52dc38737583682152eb19e33b0ec647e2a198fcd5685f16330c68
|
||||
DIST pandoc-3.9.0.2-linux-arm64.tar.gz 36948718 BLAKE2B 659191527034f7019287446052cf84aa3f059fbbba26a969084e55d12ac2fc8e994504c0e160b152d230eac58f1a75d6372dc61394d9b176eec94110cd455768 SHA512 c42df48081aab247f6769d02224084e8bea58aae49afdea6206f5f648598af964a34c844316fcbebe1ac601bbb469f3d80368d79cd040f6ee2b5e62bd7368314
|
||||
|
||||
67
app-text/pandoc-bin/pandoc-bin-3.10.ebuild
Normal file
67
app-text/pandoc-bin/pandoc-bin-3.10.ebuild
Normal file
@@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=9
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user