Install this version:
emerge -a =app-text/pandoc-crossref-bin-0.3.26a
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-text/pandoc-crossref-bin-0.3.26a
Or alternatively:
emerge --autounmask-write -a =app-text/pandoc-crossref-bin-0.3.26a
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
DESCRIPTION="Pandoc filter for cross-references"
HOMEPAGE="https://github.com/lierdakil/pandoc-crossref"
SRC_URI="
amd64? (
https://github.com/lierdakil/pandoc-crossref/releases/download/v${PV}/pandoc-crossref-Linux-X64.tar.xz
-> ${P}-amd64.tar.xz
)
arm64? (
https://github.com/lierdakil/pandoc-crossref/releases/download/v${PV}/pandoc-crossref-Linux-ARM64.tar.xz
-> ${P}-arm64.tar.xz
)
"
S="${WORKDIR}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
# 0.3.26a rebuilds the filter for pandoc 3.13 with no functional change and
# the same JSON interface (pandoc-types 1.23.1.2). The filter only warns on
# pandoc version mismatch. A lower bound keeps pandoc-bin viable after bumps;
# an exact pin instead makes Portage select the source pandoc/GHC stack.
# Verified 2026-10-30 against the release notes.
RDEPEND="
|| ( >=app-text/pandoc-bin-3.10.1 >=app-text/pandoc-3 )
"
src_install() {
exeinto /usr/bin
newexe pandoc-crossref pandoc-crossref
newman pandoc-crossref.1 pandoc-crossref.1
}