From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D8F8415808B for ; Mon, 11 Apr 2022 13:12:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1F26DE0960; Mon, 11 Apr 2022 13:12:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A9ADE0960 for ; Mon, 11 Apr 2022 13:12:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2ACAB3414B1 for ; Mon, 11 Apr 2022 13:12:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7330B396 for ; Mon, 11 Apr 2022 13:12:52 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1649682770.5ac1b19bd9b11e0b712a856f0e45bb2eda94ea6f.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/hugo/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/hugo/hugo-0.96.0.ebuild www-apps/hugo/metadata.xml X-VCS-Directories: www-apps/hugo/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 5ac1b19bd9b11e0b712a856f0e45bb2eda94ea6f X-VCS-Branch: master Date: Mon, 11 Apr 2022 13:12:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 639ee6bc-c7fe-4715-9664-9cb597aa9b86 X-Archives-Hash: 2fc3c2b9455a02b512ec178382a0bfb9 commit: 5ac1b19bd9b11e0b712a856f0e45bb2eda94ea6f Author: Joonas Niilola gentoo org> AuthorDate: Mon Apr 11 13:11:47 2022 +0000 Commit: Joonas Niilola gentoo 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 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 @@ Enable SASS/SCSS support + Pull optional heavier test-dependency packages gohugoio/hugo