commit: b7c113f035597dc109f13cdb118ceafbade5df0a Author: tastytea <gentoo <AT> tastytea <DOT> de> AuthorDate: Fri Jul 26 07:10:41 2024 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sun Aug 4 07:03:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7c113f0
www-apps/hugo: add check-reqs to 0.129.0 Bug: https://github.com/gentoo/gentoo/pull/37728 Thanks-To: Eli Schwartz <eschwartz <AT> gentoo.org> Signed-off-by: tastytea <gentoo <AT> tastytea.de> Closes: https://github.com/gentoo/gentoo/pull/37635 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> www-apps/hugo/hugo-0.129.0.ebuild | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/www-apps/hugo/hugo-0.129.0.ebuild b/www-apps/hugo/hugo-0.129.0.ebuild index d49c59a1bdb9..e9550f242204 100644 --- a/www-apps/hugo/hugo-0.129.0.ebuild +++ b/www-apps/hugo/hugo-0.129.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit go-module shell-completion +inherit check-reqs go-module shell-completion DESCRIPTION="Fast static HTML and CSS website generator" HOMEPAGE="https://gohugo.io https://github.com/gohugoio/hugo" @@ -42,6 +42,27 @@ PATCHES=( "${FILESDIR}"/${PN}-0.128.0-skip-some-tests.patch ) +_check_reqs() { + if [[ ${MERGE_TYPE} == binary ]] ; then + return 0 + fi + + if has test ${FEATURES}; then + CHECKREQS_DISK_BUILD="4G" + else + CHECKREQS_DISK_BUILD="1500M" + fi + check-reqs_${EBUILD_PHASE_FUNC} +} + +pkg_pretend() { + _check_reqs +} + +pkg_setup() { + _check_reqs +} + src_configure() { export CGO_ENABLED=1 export CGO_CFLAGS="${CFLAGS}"
