commit: 9967b9d665824b0389d5e030753446f2425286d8 Author: Petr Vaněk <arkamar <AT> gentoo <DOT> org> AuthorDate: Thu Feb 27 15:20:39 2025 +0000 Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org> CommitDate: Thu Feb 27 15:21:18 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9967b9d6
www-apps/hugo: drop 0.127.0, 0.129.0 Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org> www-apps/hugo/Manifest | 4 - .../hugo/files/hugo-0.123.0-skip-some-tests.patch | 65 ----------- www-apps/hugo/hugo-0.127.0.ebuild | 101 ----------------- www-apps/hugo/hugo-0.129.0.ebuild | 125 --------------------- 4 files changed, 295 deletions(-) diff --git a/www-apps/hugo/Manifest b/www-apps/hugo/Manifest index c233d10d0bf6..b6c6ef8de9f8 100644 --- a/www-apps/hugo/Manifest +++ b/www-apps/hugo/Manifest @@ -1,7 +1,3 @@ -DIST hugo-0.127.0-vendor.tar.xz 6747376 BLAKE2B 28569618b1398effe5eeafe72b43576986a9680371100812b546c5c62936754ebc4ecda2c8fea77ec93761b5e3746509b065bd6e1000815135be31a8ba8077c8 SHA512 f88d7a98d2d012e48beb239941a0a485b3ac761b055c7e76b5823550275e19b4ced6977765a7cc34342c5e9113f208793f483794afefa9689c76b3b4dedca94f -DIST hugo-0.127.0.tar.gz 21132608 BLAKE2B 6fa8ae09d325292715d94f28e13d3bce8efcecc5e729da3644a054857aa3e11893068bd25524857e7dde6bab92efc9acb5b0de823c8a6246b9f5e83b07c4e279 SHA512 829d118f12f153794ed882572a37ec2a3b3ade9c8160a754d3d411d6aede22c15e44dd75a52443e3cc7fc8ea1f65febecac5a47b4e09cc42006d7badd1a0fa2f -DIST hugo-0.129.0-vendor.tar.xz 6766128 BLAKE2B 31f723bdefd45a8e595c09b2d579ff68e2d3dc2e48c276a7963348c0d791c443b1a7e09c15a6aec955dca4928e695516c3777c6550230f455bb7f9c7ac3b6483 SHA512 97044f53cab10484731fc42aabcb63484759f00e80e29237d9819af49c6ab5fefeddde37fc971f9c47c9f24e607c0691cfb8a564e6de7f5a017b0ef93e8c7d89 -DIST hugo-0.129.0.tar.gz 20241492 BLAKE2B aaa6ced77b936a34e0ebe24f2a2c51cd992464cbfd93b33682f0b0c501e6809d5c13960c1bec82611ebd043631bb2e2bae13348475641e8b7736b4980a3b3a1f SHA512 0845f417af97ee068ad0c971684522fa49fcfca47de5db71f0026fd3c59baddcc03c73560275ff91e4c85286cf855a2b3b0271ee019141d71e04f6b31a91ae87 DIST hugo-0.131.0-vendor.tar.xz 6925652 BLAKE2B 352cf39d95cf30ab502d91a816b151e2e94e1b57e59e6b3171caf83908dbc8726e03413fdf89a6fa7a360ee8b6ee0a3122f9f1fff2143985e1d33693ee3de114 SHA512 e1265f15e19f531360d447f9fc77da5dc894a3fd1d289df41bfbcfcc740b10e43ce1c872c69d0dfcf32cdff5c5a5edf34df64f107e6c20869eec3bf1668bdea1 DIST hugo-0.131.0.tar.gz 20323531 BLAKE2B b88be13c6d1008a777114e5c0f42dac0277f37ba36ea601903f9a6e63b06fad3d847950aada082ad32dea544df54f1ad90c2ecbddebbcd70e73a74c416aebaf9 SHA512 53bb387bde6c6e92568036d06db1dfeaa9f897806f7f51cb4b9c3fd93026a41410ea61598370da79abb5df20e81b18616e3ec49e7cec1bb1e470d5035b594ef6 DIST hugo-0.144.2-vendor.tar.xz 7508632 BLAKE2B 9ba0bfed07fca2f7184222dc292e1e0cadc011dbe570aeff9e63b8273b4b9ebf3984abdcdcd575928fad1a878f433eca9b2415318e2bbe1c35d26fe3a304c6e5 SHA512 16a06dbecea91dc9f74649401d611a217225bd78c4ad60f42c56a30e21cb50ae3b855faaf20669a2cd61342cc585f37d0d41f82e1c8c60ab4e82ec2a92c0f063 diff --git a/www-apps/hugo/files/hugo-0.123.0-skip-some-tests.patch b/www-apps/hugo/files/hugo-0.123.0-skip-some-tests.patch deleted file mode 100644 index c6b075998caf..000000000000 --- a/www-apps/hugo/files/hugo-0.123.0-skip-some-tests.patch +++ /dev/null @@ -1,65 +0,0 @@ -From 1a3938e8c133573f35abe58edd42204575aeffeb Mon Sep 17 00:00:00 2001 -From: tastytea <[email protected]> -Date: Fri, 8 Sep 2023 20:01:03 +0200 -Subject: [PATCH] skip some tests - -reasons: - - needs to be in a git repo - - needs special test dependencies - - requires network access ---- - modules/client_test.go | 4 ++++ - .../resource_factories/create/create_integration_test.go | 1 + - 2 files changed, 5 insertions(+) - -diff --git a/modules/client_test.go b/modules/client_test.go -index ea910580f..b957ba984 100644 ---- a/modules/client_test.go -+++ b/modules/client_test.go -@@ -68,6 +68,7 @@ github.com/gohugoio/hugoTestModules1_darwin/[email protected] github.com/gohugoio/h - } - - c.Run("All", func(c *qt.C) { -+ c.Skip("Test dependencies not available") - client, clean := newClient(c, func(cfg *ClientConfig) { - cfg.ModuleConfig = DefaultModuleConfig - }, defaultImport) -@@ -107,6 +108,7 @@ project github.com/gohugoio/hugoTestModules1_darwin/[email protected]+vendor - }) - - c.Run("IgnoreVendor", func(c *qt.C) { -+ c.Skip("Test dependencies not available") - client, clean := newClient( - c, func(cfg *ClientConfig) { - cfg.ModuleConfig = DefaultModuleConfig -@@ -125,6 +127,7 @@ project github.com/gohugoio/hugoTestModules1_darwin/[email protected]+vendor - }) - - c.Run("NoVendor", func(c *qt.C) { -+ c.Skip("Test dependencies not available") - mcfg := DefaultModuleConfig - mcfg.NoVendor = "**" - client, clean := newClient( -@@ -144,6 +147,7 @@ project github.com/gohugoio/hugoTestModules1_darwin/[email protected]+vendor - }) - - c.Run("VendorClosest", func(c *qt.C) { -+ c.Skip("Test dependencies not available") - mcfg := DefaultModuleConfig - mcfg.VendorClosest = true - -diff --git a/resources/resource_factories/create/create_integration_test.go b/resources/resource_factories/create/create_integration_test.go -index 61bc17adb..13cd6f33f 100644 ---- a/resources/resource_factories/create/create_integration_test.go -+++ b/resources/resource_factories/create/create_integration_test.go -@@ -25,6 +25,7 @@ import ( - ) - - func TestGetRemoteHead(t *testing.T) { -+ t.Skip("Requires network access") - files := ` - -- config.toml -- - [security] --- -2.43.0 - diff --git a/www-apps/hugo/hugo-0.127.0.ebuild b/www-apps/hugo/hugo-0.127.0.ebuild deleted file mode 100644 index 5a68aca92a7e..000000000000 --- a/www-apps/hugo/hugo-0.127.0.ebuild +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright 2018-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module shell-completion - -DESCRIPTION="Fast static HTML and CSS website generator" -HOMEPAGE="https://gohugo.io https://github.com/gohugoio/hugo" -SRC_URI=" - https://github.com/gohugoio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://tastytea.de/files/gentoo/${P}-vendor.tar.xz -" - -# NOTE: To create the vendor tarball, run: -# `go mod vendor && cd .. && tar -caf ${P}-vendor.tar.xz ${P}/vendor` - -LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0 Unlicense" -SLOT="0" -KEYWORDS="amd64 ~arm64 ~loong ~riscv ~x86" -IUSE="doc +extended test" - -BDEPEND=" - >=dev-lang/go-1.22.2 - test? ( - dev-python/docutils - dev-ruby/asciidoctor - virtual/pandoc - ) -" -RDEPEND=" - extended? ( - dev-libs/libsass:= - >=media-libs/libwebp-1.3.2:= - ) -" -DEPEND="${RDEPEND}" - -RESTRICT="!test? ( test )" - -PATCHES=( - "${FILESDIR}"/${PN}-0.121.0-unbundle-libwebp-and-libsass.patch - "${FILESDIR}"/${PN}-0.123.0-skip-some-tests.patch -) - -src_configure() { - export CGO_ENABLED=1 - export CGO_CFLAGS="${CFLAGS}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export MY_BUILD_FLAGS="$(usev extended "-tags extended")" - - default -} - -src_prepare() { - # wants to run command that require network access - rm testscripts/commands/mod{,_vendor,__disable,_get,_get_u,_npm{,_withexisting}}.txt || die - - default -} - -src_compile() { - mkdir -pv bin || die - ego build -ldflags "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=gentoo:${PVR}" \ - ${MY_BUILD_FLAGS} -o "${S}/bin/hugo" - - bin/hugo gen man --dir man || die - - mkdir -pv completions || die - bin/hugo completion bash > completions/hugo || die - bin/hugo completion fish > completions/hugo.fish || die - bin/hugo completion zsh > completions/_hugo || die - - if use doc ; then - bin/hugo gen doc --dir doc || die - fi -} - -src_test() { - ego test "./..." ${MY_BUILD_FLAGS} -} - -src_install() { - dobin bin/* - doman man/* - - dobashcomp completions/${PN} - dofishcomp completions/${PN}.fish - dozshcomp completions/_${PN} - - if use doc ; then - dodoc -r doc/* - fi -} - -pkg_postinst() { - elog "the sass USE-flag was renamed to extended. the functionality is the" \ - "same, except it also toggles the dependency on libwebp (for encoding)" -} diff --git a/www-apps/hugo/hugo-0.129.0.ebuild b/www-apps/hugo/hugo-0.129.0.ebuild deleted file mode 100644 index e9550f242204..000000000000 --- a/www-apps/hugo/hugo-0.129.0.ebuild +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright 2018-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit check-reqs go-module shell-completion - -DESCRIPTION="Fast static HTML and CSS website generator" -HOMEPAGE="https://gohugo.io https://github.com/gohugoio/hugo" -SRC_URI=" - https://github.com/gohugoio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://tastytea.de/files/gentoo/${P}-vendor.tar.xz -" - -# NOTE: To create the vendor tarball, run: -# `go mod vendor && cd .. && tar -caf ${P}-vendor.tar.xz ${P}/vendor` - -LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0 Unlicense" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86" -IUSE="doc +extended test" - -BDEPEND=" - >=dev-lang/go-1.22.2 - test? ( - dev-python/docutils - dev-ruby/asciidoctor - ) -" -RDEPEND=" - extended? ( - dev-libs/libsass:= - >=media-libs/libwebp-1.3.2:= - ) -" -DEPEND="${RDEPEND}" - -RESTRICT="!test? ( test )" - -PATCHES=( - "${FILESDIR}"/${PN}-0.121.0-unbundle-libwebp-and-libsass.patch - "${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}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export MY_BUILD_FLAGS="$(usev extended "-tags extended")" - - default -} - -src_prepare() { - # wants to run command that require network access - rm testscripts/commands/mod{,_vendor,__disable,_get,_get_u,_npm{,_withexisting}}.txt || die - - default -} - -src_compile() { - mkdir -pv bin || die - ego build -ldflags "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=gentoo:${PVR}" \ - ${MY_BUILD_FLAGS} -o "${S}/bin/hugo" - - bin/hugo gen man --dir man || die - - mkdir -pv completions || die - bin/hugo completion bash > completions/hugo || die - bin/hugo completion fish > completions/hugo.fish || die - bin/hugo completion zsh > completions/_hugo || die - - if use doc ; then - bin/hugo gen doc --dir doc || die - fi -} - -src_test() { - if ! has_version -b virtual/pandoc ; then - elog "You're missing virtual/pandoc - some tests will be skipped." - fi - - ego test "./..." ${MY_BUILD_FLAGS} -} - -src_install() { - dobin bin/* - doman man/* - - dobashcomp completions/${PN} - dofishcomp completions/${PN}.fish - dozshcomp completions/_${PN} - - if use doc ; then - dodoc -r doc/* - fi -} - -pkg_postinst() { - elog "the sass USE-flag was renamed to extended. the functionality is the" \ - "same, except it also toggles the dependency on libwebp (for encoding)" -}
