dev-tex/tectonic: add doc use flag and improve dependencies
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
fd8253781b
commit
9f1e501088
@ -245,20 +245,18 @@ RESTRICT="mirror"
|
|||||||
LICENSE="0BSD all-rights-reserved Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0 ISC MIT MPL-2.0 Unlicense ZLIB"
|
LICENSE="0BSD all-rights-reserved Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0 ISC MIT MPL-2.0 Unlicense ZLIB"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
#IUSE="doc"
|
IUSE="doc"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
dev-libs/icu
|
dev-libs/icu
|
||||||
dev-libs/openssl
|
dev-libs/openssl
|
||||||
media-libs/fontconfig
|
media-libs/fontconfig
|
||||||
media-gfx/graphite2
|
media-gfx/graphite2
|
||||||
media-libs/harfbuzz
|
media-libs/harfbuzz[graphite,icu]
|
||||||
sys-libs/zlib
|
sys-libs/zlib
|
||||||
"
|
"
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="doc? ( app-text/mdbook )"
|
||||||
# TODO:
|
|
||||||
# Add mdbook and then enable documentation
|
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
# Test fails with -ftree-slp-vectorize, therefore disable
|
# Test fails with -ftree-slp-vectorize, therefore disable
|
||||||
@ -270,17 +268,17 @@ src_configure() {
|
|||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
cargo_src_compile
|
cargo_src_compile
|
||||||
#if use doc; then
|
if use doc; then
|
||||||
# pushd docs
|
pushd docs || die
|
||||||
# mdbook build
|
mdbook build || die
|
||||||
# HTML_DOCS="${S}/docs"
|
HTML_DOCS="${S}/docs/book"
|
||||||
# popd
|
popd || die
|
||||||
#fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
cargo_src_install
|
cargo_src_install
|
||||||
#einstalldocs
|
einstalldocs
|
||||||
}
|
}
|
||||||
|
|
||||||
# There is feature called serialization that is enabled by default,
|
# There is feature called serialization that is enabled by default,
|
||||||
|
Loading…
Reference in New Issue
Block a user