commit: 5ac1b19bd9b11e0b712a856f0e45bb2eda94ea6f Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> AuthorDate: Mon Apr 11 13:11:47 2022 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Mon Apr 11 13:12:50 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ac1b19b
www-apps/hugo: add "test-full" USE flag for optional heavy test deps - the optfeature method was suggested by me, but find this better in the end since this can be automated. Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> www-apps/hugo/hugo-0.96.0.ebuild | 12 +++--------- www-apps/hugo/metadata.xml | 1 + 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/www-apps/hugo/hugo-0.96.0.ebuild b/www-apps/hugo/hugo-0.96.0.ebuild index 03c50c742f9a..50ae5b3634cf 100644 --- a/www-apps/hugo/hugo-0.96.0.ebuild +++ b/www-apps/hugo/hugo-0.96.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit go-module bash-completion-r1 optfeature +inherit go-module bash-completion-r1 DESCRIPTION="Fast static HTML and CSS website generator" HOMEPAGE="https://gohugo.io https://github.com/gohugoio/hugo" @@ -18,13 +18,14 @@ SRC_URI=" LICENSE="Apache-2.0 BSD BSD-2 MIT Unlicense" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="doc +sass test" +IUSE="doc +sass test test-full" BDEPEND=" >=dev-lang/go-1.18 test? ( dev-python/docutils dev-ruby/asciidoctor + test-full? ( app-text/pandoc ) ) " RDEPEND=" @@ -40,13 +41,6 @@ PATCHES=( "${FILESDIR}/${PN}-0.96.0-skip-some-tests.patch" ) -pkg_setup() { - if use test; then - optfeature_header "Install additional packages for optional tests:" - optfeature "pandoc converter tests" "app-text/pandoc" - fi -} - src_configure() { export CGO_ENABLED=1 export CGO_CFLAGS="${CFLAGS}" diff --git a/www-apps/hugo/metadata.xml b/www-apps/hugo/metadata.xml index d3bce6b51931..c1a8bfb7f195 100644 --- a/www-apps/hugo/metadata.xml +++ b/www-apps/hugo/metadata.xml @@ -11,6 +11,7 @@ </maintainer> <use> <flag name="sass">Enable SASS/SCSS support</flag> + <flag name="test-full">Pull optional heavier test-dependency packages</flag> </use> <upstream> <remote-id type="github">gohugoio/hugo</remote-id>
