commit:     181e2350bcffb743a26cb66029abaaf2d8583d7b
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 26 02:58:44 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Mar 26 07:50:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=181e2350

app-text/mdbook: add 0.4.47

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

 app-text/mdbook/Manifest             |  2 ++
 app-text/mdbook/mdbook-0.4.47.ebuild | 52 ++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/app-text/mdbook/Manifest b/app-text/mdbook/Manifest
index 13599e851f75..d186eace9805 100644
--- a/app-text/mdbook/Manifest
+++ b/app-text/mdbook/Manifest
@@ -120,6 +120,8 @@ DIST markup5ever_rcdom-0.2.0.crate 222948 BLAKE2B 
2105ceee730f5fbb3c14ddb7bfe8ee
 DIST mdbook-0.4.43.tar.gz 1542646 BLAKE2B 
844b7a0d40b0477cd702baa3be29576c83d5b76653c756bc8d9bdd8b36e4cdf02e838a4c83732096c94355e102ddcf383c5413dc61e9994f28b1730687abaad7
 SHA512 
b410f4490e4fa0058c981335c09e3cd993ed174a7b9104522da9719f18f310e5996eeb9cd154c7e196b87385277267167307d327d4a6e6979c217c8808772898
 DIST mdbook-0.4.46-vendor.tar.xz 8893432 BLAKE2B 
fd075811c3e0e9b8bcdf760149262585239e63595f2bfe1587ba06ef19512063f91f7b89aeccfe5db2760a72b05dcc80eaf9d6bd95bbd2b073deb0f2f142cd1e
 SHA512 
00d823c1c799f5a0c3ceed0e56feb383c82384277ac0ca26404bd5b4a46f5f426e26f87bc8e1b82e361c57eb83582026881262bb1e0cebcab0544f4145bc2678
 DIST mdbook-0.4.46.tar.gz 1551625 BLAKE2B 
7239b5fd3e13aacbd718d0a9b96d8a78652a73ddbca130076895a0a2217997b487741205d0f7af63466432f0f8d5ad8327e8060c609f5ba2e6eb21d8450d42d3
 SHA512 
c1aa8a8680de0626e224a30aa89e3ff1a089febbedabc5e2312558977c1060d5fa3ba0d8fd6db305307720f1182e25b24463a1f4f9a2456146cbe3b8008c915c
+DIST mdbook-0.4.47-vendor.tar.xz 8893860 BLAKE2B 
d37b421878f408c85d8af01c6ca4e2e8a9d341c003e19080a19dd8c81a2324df2249c1db016488ab54a29c3650cb037c1e892c0ae1411f4938ba8d7b19fd9dc7
 SHA512 
1e4f0eed569c64c47a3de8086005df5d75bcd1ad4c8205abb1c8921051bd50f6c194d272f222195789b466a9de369fe5a2d766111e09be6cb17f19373ee28249
+DIST mdbook-0.4.47.tar.gz 1551584 BLAKE2B 
30755c8035a2653be50f232a4d6f064626f9b0fb1a459c7150392afda73e2aaeede36e1ac785e184878ab8cfc1c7a6da20721fb1b2c9cd615b1fce18efd51a2b
 SHA512 
76fbc342503baf4bb06b6411dbd086627743e55bcb83f1553cf055a4596a47dd6b5bbd08abd078a762a91a5b2e4c4ba84d13b5ddac1ac3135dd02c0765e64d42
 DIST memchr-2.7.4.crate 96670 BLAKE2B 
da38114beca670467c3e1fbf4e415af6f22d52e3223715d52e181babb89b872b46511563985bcc16d7ff4e82f812c6e83ad904b0fe2501b14445119dfa8240e6
 SHA512 
8d0e8b9c30208897d4b1b920f1bdcccd0c2b75d92a06abe4a1b2407938768abb6487d63de56c6a80419798fe69517210643dfaf11f5f5540185f0eccf220adb2
 DIST mime-0.3.17.crate 15712 BLAKE2B 
abb892b75b40657d356b6b53b9a45b2c822a05873453e919f2bbfeed9e5c06104f24db9cef2716f302198020870eaf96b2c62aff55cc11d8ca4f4f614d7c8e17
 SHA512 
e6d2ca92bb58fc747c1bb65a7f9023e5dbf4b94966003a72e4913bcaaeccdd6752725cdbd5081e0fd69d9e8f364d79664fcbe70061737d5c39e5b3e3a154a0d1
 DIST mime_guess-2.0.5.crate 27166 BLAKE2B 
a8ec67e16a336e7d07c9aaa55025c24c3d4a62aae25213ce768786d9f292b76930132a880d662cd9a5d63aa899e9d488ab76fa9d99350e9f448ef484705ba4d9
 SHA512 
433c876e28394282cfbe14bb9543616cd296879f253ed331c15ace8a7d9f3629f5b596c2d5a64823a97ca9b774acc711b65006c46d54d1e9ee0553cbf1f13b7c

diff --git a/app-text/mdbook/mdbook-0.4.47.ebuild 
b/app-text/mdbook/mdbook-0.4.47.ebuild
new file mode 100644
index 000000000000..3072b2705737
--- /dev/null
+++ b/app-text/mdbook/mdbook-0.4.47.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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