mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
app-text/pandoc-bin: bump to 3.9
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST pandoc-3.8.3-linux-amd64.tar.gz 34949607 BLAKE2B 4ede6aff3a09cec1931296c7034fbbdf8a0a44e77aae5c40d901493bc34e6ef20582860e9df779ef11108ef76d12402df49487fa1e653fbe11386d566abc2c62 SHA512 838786d4b6bc83f8d83c802a5997985f4b82a12fa11fdf846bd27a423b7819175a82ba94f3cfe04dddacad60be840a9e7476b5b91ca0dd8d7bac203e26362302
|
||||
DIST pandoc-3.8.3-linux-arm64.tar.gz 37949860 BLAKE2B 104d3ba3b906180e761f1d82e9752ad8f8a6a57771db2ece5f4e12694884d576c7e7846dee711362658a515660d0f84b84b1637d1d23084a4a5865090eb94f91 SHA512 49156d471c4b4e5009e9471c6b6f984bfc198d28c5c591278acb1a35d26424a1a2d9df8ad8b9d3714ef463fd807dbe3fd6f2919fd2088e6f6bc9458fb5a230b1
|
||||
DIST pandoc-3.9-linux-amd64.tar.gz 34653874 BLAKE2B c94fc70784b7a4438724f0c1c449c3dda42b68694d30ddbda343ed7d6d8768a62b6ea8c62590928e101f3e3bb765c75a4f9f63715096b8967331c37715112b36 SHA512 456acf1072babd276a411c33276529a4f5b661332a0b9a9ba9f0eda13e199b443f35ece71200bce54ceeef53627cf6b2c9e4f7c5d28b4053838eb54f5d33c02b
|
||||
DIST pandoc-3.9-linux-arm64.tar.gz 37089130 BLAKE2B 7d76f72e44f53f62bc640770add58ec156bb725dbd6929acb4e486cd24875f66442bbd4dbc07255ea415975c1a46ea816f541773cad9d62b373a513588e1fc06 SHA512 769d955043c106c4582ae151b7c97d248e3de3642a4a8a993bdddae91e907e1abd02c2d654fb0f8834cd6285da8c3e2e2831eded787ecb5370ebfdb2eb043151
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2026 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
|
||||
}
|
||||
Reference in New Issue
Block a user