commit:     44fd986e8da1564ee879b2959387cc9b9b864a64
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 02:27:39 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 03:03:45 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44fd986e

app-text/mdbook: add 0.4.51

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-text/mdbook/Manifest             |  2 ++
 app-text/mdbook/mdbook-0.4.51.ebuild | 53 ++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/app-text/mdbook/Manifest b/app-text/mdbook/Manifest
index 9a5b5a3e8844..88deb1967145 100644
--- a/app-text/mdbook/Manifest
+++ b/app-text/mdbook/Manifest
@@ -6,3 +6,5 @@ DIST mdbook-0.4.49-vendor.tar.xz 9718296 BLAKE2B 
9fb7e830229cfefb919a26a837904d4
 DIST mdbook-0.4.49.tar.gz 1552268 BLAKE2B 
3f809c2d3f53433632f73dc215ad51f3ea3752a3609ed5e9945c59ecb5731c29c8ae812baa0eefe2974a63b955f21a26bc9cc68cf5fafe0b3460bc61d0aaae9a
 SHA512 
92046a3f4f38914b9b868a11d58c2807e865e9f84b0e11e12db51718c6673f7776c63c62270a01aab357622b11608388a388a00bc94abd706b5459b20cceeb12
 DIST mdbook-0.4.50-vendor.tar.xz 8419888 BLAKE2B 
e742caa6eb7d65b53673b168506992b7ec30ab37103b5e3e2e8b6331a79c87ac0daba1247b1948b6230369c602397068d37f975a4a37e64a46d7736f5a288dd8
 SHA512 
69337e90b4886c58042de5838dc5cdd878858585623d64b34af314bcd656931951d7251f77762d73372d730d399490a287d227679df43dbd369b334e5bd54248
 DIST mdbook-0.4.50.tar.gz 1552608 BLAKE2B 
59203e3112935e30ee68f794def1a7e2289a5ce39898608c6decbec5faec09b6c5a3b20cdbf0366051879f8ab274b40488f707b998dadf26bb65df56ca2cf78a
 SHA512 
5d4bebc6ece55cb6189a6d246b73256cadf5bebc61a6296d9f7fd04892137e155b707ba3ecfadbc1181926960ac3bf020eddcfad8b7898dc4b0800afbc637e59
+DIST mdbook-0.4.51-vendor.tar.xz 8421132 BLAKE2B 
ac02297ffc22b757b7eb54e92bd9a89439620445fafcbf7a3e18f7eddfa13a0c18be577652f3a9d07c8686b92ab45eb2bf217ba1f9aaabf303bc0f8867b85780
 SHA512 
c7f073e76acec89b723c1de4446eaba14ccdcff00fad9b1d979615b07b6c1202a61de45c15d47cfdbc6fbc84d01edb910d9a97811d13e39231372509ae75775d
+DIST mdbook-0.4.51.tar.gz 1552597 BLAKE2B 
d7e6831f07cc575b539a73d23b6e216d49a0b11f8213b6a1e17aaf13c1b48a5461efd1c57a376d8648147e810f988a23799f2679ced2fbba8f775a8c3a7df1a5
 SHA512 
1b0af344977e95d0d54f3e97eae1c3e0c803999aabca184aace2b03b466ef73cb7d70cb3875022591a48555c319326711a2972feca93b0ba3803e55b754fb580

diff --git a/app-text/mdbook/mdbook-0.4.51.ebuild 
b/app-text/mdbook/mdbook-0.4.51.ebuild
new file mode 100644
index 000000000000..646f76f99bb0
--- /dev/null
+++ b/app-text/mdbook/mdbook-0.4.51.ebuild
@@ -0,0 +1,53 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER=1.82.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}
+
+# CC-BY-4.0/OFL-1.1: embeds fonts inside the executable
+LICENSE="MPL-2.0 CC-BY-4.0 OFL-1.1"
+LICENSE+=" Apache-2.0 CC0-1.0 ISC MIT 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 html guide || die
+               fi
+       fi
+}
+
+src_test() {
+       local skip=(
+               # fails with usersandbox
+               --skip test_ignore_canonical
+       )
+
+       cargo_src_test -- "${skip[@]}"
+}
+
+src_install() {
+       cargo_src_install
+
+       dodoc CHANGELOG.md README.md
+       use doc && ! tc-is-cross-compiler && dodoc -r guide/html
+}

Reply via email to