app-text/mdbook: add 0.5.1

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens 2025-11-19 22:51:31 -05:00
parent 51c0e45d00
commit 7d389133db
No known key found for this signature in database
GPG Key ID: B24406B0B0AC4334
2 changed files with 54 additions and 0 deletions

View File

@ -2,3 +2,5 @@ DIST mdbook-0.4.52-vendor.tar.xz 8394076 BLAKE2B d1e23df18d747cde8dae3b51ad300a4
DIST mdbook-0.4.52.tar.gz 1558690 BLAKE2B 51a942768eec85156f62e65a9c99aa5b409db05ae60b2b1dca66d6b274f768cdf44f0cd3dd21a3cb17951f64f298626ab1838098073a86b2fdf8a7aec2ead782 SHA512 c7b706c5373571a2a55c0e09e79d822db55a150c33a267d60383113fa54ab031616cc90aa6a4240a78ff602f9116d84a20575f1fb8defc0529ad2d578a34cd71
DIST mdbook-0.5.0-vendor.tar.xz 7823968 BLAKE2B 320177583909d42f8d8593464409fec4769a7d23db4d5acce9910728df0c052dfcaad6ec31ff01ebde96f1abb87cb7290a4ae2c6a9db6d4e2a5a01b06883cf24 SHA512 151313ef892815716e093e56cef2ce75f354603394ab19a540c446bcd27b5c34e45313b5c6dd46d6245ef1f884f540570ccfcddda89ee12ff031742b33322c5a
DIST mdbook-0.5.0.tar.gz 970041 BLAKE2B 099ac299730e55c2c02472367b61906d5f80dc641aec6af38256ad577fff41cfc6a904b5c31a6797f1bf3f081b443b0f72fe3ffa749eaa5d54d5c024eb66e848 SHA512 2b206e1120a778c43aaf7ba311f8e308a56ac0af877c54c01ff573b3b886cd5ddb894c7722f3cba0e54df281a521a6df59eefbafa11e5901020ffb519e034e89
DIST mdbook-0.5.1-vendor.tar.xz 7827712 BLAKE2B afa16e45ebaca854b4ecb5131e674cd9e2d31c0ffcfc77dbb49770a3e665a89e60954fcfa995516748591a9b5d091cbe2ca31c4d44d8d978a152297b76e5b45f SHA512 cf1a4153b80d1b6ff590f0c783c109c77ae696485520c2c61dbc1d0c9671af45b82b7a2b9a5a6592af1e3ca0548aeece40494c55787a20f7e2cf88ffa2ee208a
DIST mdbook-0.5.1.tar.gz 971147 BLAKE2B f2f0e6d156efe2a1d89cda8268bc965b9b5c26cbaaba97b31c788225fff7406187359a9789b195eb51dd3ecb468164657a515a298a3a02934ba12c66340d16b3 SHA512 b652854279f0a7c323805fcbd7cc64ca8ee0d4e5ea34902acb1978f9c849aa2233b4255d1d5107826f1d662d76a5d96af2bfe99d7b375c6dbf938cff1dcb39c4

View File

@ -0,0 +1,52 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RUST_MIN_VER=1.85.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://dev.gentoo.org/~ionen/distfiles/${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
}