Install this version:
emerge -a =app-text/mdbook-0.5.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-text/mdbook-0.5.3
Or alternatively:
emerge --autounmask-write -a =app-text/mdbook-0.5.3
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.5.3 | 8 | ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 | 0 |
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RUST_MIN_VER=1.87.0
inherit cargo toolchain-funcs
DESCRIPTION="Create a book from markdown files"
HOMEPAGE="https://rust-lang.github.io/mdBook/"
SRC_URI="
https://github.com/rust-lang/mdBook/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz
https://distfiles.gentoo.org/pub/dev/ionen@gentoo.org/${P}-vendor.tar.xz
"
S=${WORKDIR}/${P/b/B}
# OFL-1.1: embeds fonts inside the executable
LICENSE="MPL-2.0 OFL-1.1"
LICENSE+="
Apache-2.0 BSD CC-BY-4.0 CC0-1.0 ISC MIT MPL-2.0 Unicode-3.0
" # crates
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="doc"
QA_FLAGS_IGNORED="usr/bin/${PN}"
src_compile() {
cargo_src_compile
if use doc; then
if tc-is-cross-compiler; then
ewarn "html docs were skipped due to cross-compilation"
else
"$(cargo_target_dir)"/${PN} build -d "${T}"/html guide || die
fi
fi
}
src_test() {
local -x COLUMNS=100 #960393
cargo_src_test
}
src_install() {
cargo_src_install
dodoc CHANGELOG.md README.md
use doc && ! tc-is-cross-compiler && dodoc -r "${T}"/html
}
Manage flags for this package:
euse -i <flag> -p app-text/mdbook |
euse -E <flag> -p app-text/mdbook |
euse -D <flag> -p app-text/mdbook
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | mdbook-0.5.3-vendor.tar.xz | 8377040 bytes | https://distfiles.gentoo.org/pub/dev/ionen@gentoo.org/mdbook-0.5.3-vendor.tar.xz |
| DIST | mdbook-0.5.3.tar.gz | 980947 bytes | https://github.com/rust-lang/mdBook/archive/refs/tags/v0.5.3.tar.gz |