mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
app-text/mdbook: add 0.5.2
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
parent
357d4cf094
commit
16e7ce9c70
@ -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.1-vendor.tar.xz 7827712 BLAKE2B afa16e45ebaca854b4ecb5131e674cd9e2d31c0ffcfc77dbb49770a3e665a89e60954fcfa995516748591a9b5d091cbe2ca31c4d44d8d978a152297b76e5b45f SHA512 cf1a4153b80d1b6ff590f0c783c109c77ae696485520c2c61dbc1d0c9671af45b82b7a2b9a5a6592af1e3ca0548aeece40494c55787a20f7e2cf88ffa2ee208a
|
||||
DIST mdbook-0.5.1.tar.gz 971147 BLAKE2B f2f0e6d156efe2a1d89cda8268bc965b9b5c26cbaaba97b31c788225fff7406187359a9789b195eb51dd3ecb468164657a515a298a3a02934ba12c66340d16b3 SHA512 b652854279f0a7c323805fcbd7cc64ca8ee0d4e5ea34902acb1978f9c849aa2233b4255d1d5107826f1d662d76a5d96af2bfe99d7b375c6dbf938cff1dcb39c4
|
||||
DIST mdbook-0.5.2-vendor.tar.xz 7859504 BLAKE2B f37b5464d986d89e466ed40317c392f449bcb65dbfcade1615bbff92f2697b9db7cdf4041c209d3493c9ec0c5dce6353fdf5510a3259fc020344b7ea65044b74 SHA512 43b30410ef5637431b3f8680870cbea62cabf167a9be6203c9b40e587267e676da15017f5114dfa7b419994691b06092899774872b0723e5928e743ca3ad1604
|
||||
DIST mdbook-0.5.2.tar.gz 974882 BLAKE2B 7337eb5930c41f7ee51390f5374e633db6fed4876c17150e34a8b4c1df92a5f4a9b33404cc48cf0eaa55ab20ef4d4540540834e994f3377f15d6b014fc653a1b SHA512 a10078d486b3e2659117cdcf08ba8a7902cc2764b5064b5c0f5ef33d4dadabac691d332f2b40d76cab2b615a2bda6ac5d30f28024ce732a6bb5fc67ce1a47de3
|
||||
|
||||
52
app-text/mdbook/mdbook-0.5.2.ebuild
Normal file
52
app-text/mdbook/mdbook-0.5.2.ebuild
Normal 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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user