From 4c51ef39a9b443061a7071e002d7daa2a4d16141 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 29 Jan 2023 14:55:22 +0000 Subject: gentoo auto-resync : 29:01:2023 - 14:55:22 --- www-apps/Manifest.gz | Bin 12938 -> 12938 bytes www-apps/hugo/Manifest | 7 +- .../hugo/files/hugo-0.110.0-skip-some-tests.patch | 78 +++++++++++++++++ www-apps/hugo/hugo-0.107.0.ebuild | 93 -------------------- www-apps/hugo/hugo-0.110.0.ebuild | 96 +++++++++++++++++++++ 5 files changed, 178 insertions(+), 96 deletions(-) create mode 100644 www-apps/hugo/files/hugo-0.110.0-skip-some-tests.patch delete mode 100644 www-apps/hugo/hugo-0.107.0.ebuild create mode 100644 www-apps/hugo/hugo-0.110.0.ebuild (limited to 'www-apps') diff --git a/www-apps/Manifest.gz b/www-apps/Manifest.gz index 2bcef94372a0..2cfc99118163 100644 Binary files a/www-apps/Manifest.gz and b/www-apps/Manifest.gz differ diff --git a/www-apps/hugo/Manifest b/www-apps/hugo/Manifest index 2b37efb4ee0d..9712e8c08fcc 100644 --- a/www-apps/hugo/Manifest +++ b/www-apps/hugo/Manifest @@ -1,10 +1,11 @@ AUX hugo-0.104.3-skip-some-tests.patch 3279 BLAKE2B 725dc64acd0949fe019afb3341613b9e0ca0866e1b8a66cd7b6d0e89c11487ece7ed4ac6fdddcc8b8973798c0c11d4a02c22371114569f5c115c161be7bf42fc SHA512 4d911a092d47dd616be6e3bf1932a6cd854ea88b097ff91c42fe75584014631a17b652b91a2de55eed0e73039660ff906e6c2c1b8e81f55c97b1d7d93b4810c9 +AUX hugo-0.110.0-skip-some-tests.patch 2643 BLAKE2B 817e7301c7ce48fe9cff99964a6f081d6709fe70831456e90d0df17e0b48ca844f3261924ab825789e93bef48e42e91b86af6c5b19289a337bb390c23a290b3b SHA512 8f2bebbbea1f8adabcd88198d92d59e3fd6a9c3affef42089f2ce703f7ba385cf263165b9933c215386301cdeac84393aba68f2aeeaa62b8045dfffe2d2f90ac AUX hugo-0.96.0-unbundle-libwebp-and-libsass.patch 1558 BLAKE2B bce42fce63466424c0e3b2f7f099485cb23ea0e756fe57dfa1a062f9e0afb6ca3213d5b3048c6482e557c8399b392deaca53281866cd8d160ea20e81cb133c89 SHA512 a0ea32e10112047dd3a4536286c853c97d43c548ed4cfaa366711c45ff67960545b317f67fb2f69484b61dabe8d668a0540339a4789f43f8581afe11d611c538 AUX hugo-0.99.1-test-timeout.patch 731 BLAKE2B 677a6ca363f60b875d672df80584734a5feabecea68de57cfe63ebfb97768581372adbe2d171e0f5f746a03b8dc67fad75bd1c0a3bdcb9532f99c1859b31523f SHA512 979161805cc5b7220362b7fefe33d423515b76a366b08500b9765c835399aacff3ff609d6692594739a3f9a078b1708dbfc1c6635416d46d0d8a1279e50417ac -DIST hugo-0.107.0-vendor.tar.xz 5736140 BLAKE2B bca854d21e93b9d6296a6a60d61b800db0be9bdec63e8863f4f96266670ada8ee9e7b072234542c3380b24655c8257c44227c534f65d22b3089608fee3dd78a2 SHA512 0b3fe77d67ad739c8162bd2baff405403a50285ff349826cf5f3b83056f36260288f6efd67f313183e9fd0e27568b2ef6a6e3b3c7ac4d07afc11a179bc80b33c -DIST hugo-0.107.0.tar.gz 29042775 BLAKE2B c03fd0725b3575471eae54549716897a12f83caea62d4c0561531d940529c4a0fae72f29c3a589ec06087a84003a65f6d4914cb9d704360dab67cd362680134a SHA512 39a2b87e18dd91ac0e423f0009434f76c4228b80511233ee742d22964ff2419954e13745b17f0350f64a557c378942a234ca988ce3add7b2ab9127d66c688919 DIST hugo-0.108.0-vendor.tar.xz 5759708 BLAKE2B 6b3f93b0f29cb57afcb5a2e05ec2dc5ba276cb5d30cd2c3996fbed20fa2a9e8f464e580dd42302819d18b5cc35b2f2ab16e9e11faa175fc1c56591da56c2be31 SHA512 b4baaa6acc227e8d169362c9adcf60c2365413231beedb3ff21d7d7103e2a3d3bb19d30950e68978841de2923b3cc2171474ea3811f0dbcc1e0f173c453a8441 DIST hugo-0.108.0.tar.gz 29048088 BLAKE2B dd9654985fe0221ddb6b5f74c4d7f3259e587ee71522d6304d102849e63d2abd926987699fd7bac35c1a3bd5c6a195b4308249039d1a86cadae6dad641b75085 SHA512 450030bd657468bcf62de9d60def0c4f977ed4ba4b8ff830eae146622f678fedf656e3637bbdb44ac4289f857f5a1259ea0cfa66a45a14ea92860eee86dbf9fa -EBUILD hugo-0.107.0.ebuild 2047 BLAKE2B cb5f4ac3655309d4456c37ffafc6405e3cf75a3a888e2922b9c19cf9cf2b776cfb8f176d43c2a04568e0d59f58ff9432cf9039818890fbba8e5d6f0be3f70406 SHA512 5f04e88351367d7ae364028e2dc8a9215d3c9445ce6d97a13b049f144b18b36b63ba26bbceccea253b3bbdc380e97e184c62c03622554f8eae35774d46ebdfcb +DIST hugo-0.110.0-vendor.tar.xz 5792924 BLAKE2B a70283d9b5764c3340591e40d6472c0f14b029e5bed086c4f294951e00a45041a869868884328ea39b75caccf8e2089250a98502a3ec38c730989a77e55c976b SHA512 c6a0cd262934b6434eac7122a0ec257ca4eec1611b938585e6ee22d56991632fd5e52c061d552772e0e8bd10e13c23aecc461d52c23dff009e8e522b651642da +DIST hugo-0.110.0.tar.gz 29055652 BLAKE2B d8c9e04c3141f02eeea1a951ba92c552148b604817e60041a3b944ccea37565ab8a6c3a47300877f5497d4575df4cdf598627d8dea65a1c935073b7bd8e99b70 SHA512 b64a6fa50201c0d95bf49fd0193138123163e0dad077491cc4c3e0d851de03ed2cd2e81482c1e6291d9a10d2d99f89c9dbbcfaafcd17f702906901dc6f28b3de EBUILD hugo-0.108.0.ebuild 2047 BLAKE2B cb5f4ac3655309d4456c37ffafc6405e3cf75a3a888e2922b9c19cf9cf2b776cfb8f176d43c2a04568e0d59f58ff9432cf9039818890fbba8e5d6f0be3f70406 SHA512 5f04e88351367d7ae364028e2dc8a9215d3c9445ce6d97a13b049f144b18b36b63ba26bbceccea253b3bbdc380e97e184c62c03622554f8eae35774d46ebdfcb +EBUILD hugo-0.110.0.ebuild 2220 BLAKE2B a2a6042fe55a4364ab4698c25e206c821358f856abd49a38644b2249ae1037cd7dc5754f2e95f3b2d5f41f783598515313ea31f83760a7d29029a464125e759e SHA512 51319354d6232377269a194a821923b6ee37dd2e9af304678fa1e88051b8f97f2218b2fb597e9f29f2f5ac0ed013b812016800d3ac325032e00b3adff6d29701 MISC metadata.xml 727 BLAKE2B b2632867dbfc5f0d647facb43f54ad3ae6bf5562bc7057dafca2724b4da8574603fff3ab5acf9ce9acb5dd0e20a15bcc052ee1cb5ca3b44d5e02f443c7d9ea2d SHA512 6efed4943de9dd760aac8998fa921d9e38f3ab93baae7c1a808e102619e292d7a067e6fe7c102b89fc432d422d2c8614b339490c5e234210bb219eeca22c6540 diff --git a/www-apps/hugo/files/hugo-0.110.0-skip-some-tests.patch b/www-apps/hugo/files/hugo-0.110.0-skip-some-tests.patch new file mode 100644 index 000000000000..3ed70afb80e7 --- /dev/null +++ b/www-apps/hugo/files/hugo-0.110.0-skip-some-tests.patch @@ -0,0 +1,78 @@ +From d2adde5cff8cca3feb630336e706fcb60bfffa7d Mon Sep 17 00:00:00 2001 +From: tastytea +Date: Wed, 11 Jan 2023 19:30:15 +0100 +Subject: [PATCH] skip some tests + +reasons: + - needs to be in a git repo + - needs special test dependencies + - requires network access +--- + hugolib/page_test.go | 1 + + modules/client_test.go | 4 ++++ + resources/resource_factories/create/integration_test.go | 1 + + 3 files changed, 6 insertions(+) + +diff --git a/hugolib/page_test.go b/hugolib/page_test.go +index 1d9e3e34..e1b3920a 100644 +--- a/hugolib/page_test.go ++++ b/hugolib/page_test.go +@@ -995,6 +995,7 @@ func TestPageWithDate(t *testing.T) { + } + + func TestPageWithLastmodFromGitInfo(t *testing.T) { ++ t.Skip("We are not in a git repo") + if htesting.IsCI() { + // TODO(bep) figure out why this fails on GitHub actions. + t.Skip("Skip GitInfo test on CI") +diff --git a/modules/client_test.go b/modules/client_test.go +index 75e3c2b0..235d6ed3 100644 +--- a/modules/client_test.go ++++ b/modules/client_test.go +@@ -68,6 +68,7 @@ github.com/gohugoio/hugoTestModules1_darwin/modh2_2@v1.4.0 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/modh2_2_2@v1.3.0+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/modh2_2_2@v1.3.0+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/modh2_2_2@v1.3.0+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/integration_test.go b/resources/resource_factories/create/integration_test.go +index 2d9a700d..42185d9f 100644 +--- a/resources/resource_factories/create/integration_test.go ++++ b/resources/resource_factories/create/integration_test.go +@@ -20,6 +20,7 @@ import ( + ) + + func TestGetResourceHead(t *testing.T) { ++ t.Skip("Requires network access") + + files := ` + -- config.toml -- +-- +2.39.1 + diff --git a/www-apps/hugo/hugo-0.107.0.ebuild b/www-apps/hugo/hugo-0.107.0.ebuild deleted file mode 100644 index 129d62e8af01..000000000000 --- a/www-apps/hugo/hugo-0.107.0.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 2018-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module bash-completion-r1 - -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 Unlicense" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~loong ~x86" -IUSE="doc +sass test" - -BDEPEND=" - >=dev-lang/go-1.18 - test? ( - dev-python/docutils - dev-ruby/asciidoctor - virtual/pandoc - ) -" -RDEPEND=" - >=media-libs/libwebp-1.2.3-r1:= - sass? ( dev-libs/libsass:= ) -" -DEPEND="${RDEPEND}" - -RESTRICT="!test? ( test )" - -PATCHES=( - "${FILESDIR}"/${PN}-0.96.0-unbundle-libwebp-and-libsass.patch - "${FILESDIR}"/${PN}-0.104.3-skip-some-tests.patch - "${FILESDIR}"/${PN}-0.99.1-test-timeout.patch -) - -src_configure() { - export CGO_ENABLED=1 - export CGO_CFLAGS="${CFLAGS}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - - MY_BUILDFLAGS="$(usev sass "-tags extended")" - - default -} - -src_compile() { - mkdir -pv bin || die - ego build -ldflags "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=gentoo:${PVR}" \ - ${MY_BUILDFLAGS} -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 -race "./..." ${MY_BUILDFLAGS} -} - -src_install() { - dobin bin/* - doman man/* - - dobashcomp completions/${PN} - - insinto /usr/share/fish/vendor_completions.d - doins completions/${PN}.fish - - insinto /usr/share/zsh/site-functions - doins completions/_${PN} - - if use doc ; then - dodoc -r doc/* - fi -} diff --git a/www-apps/hugo/hugo-0.110.0.ebuild b/www-apps/hugo/hugo-0.110.0.ebuild new file mode 100644 index 000000000000..18b6e28bfd59 --- /dev/null +++ b/www-apps/hugo/hugo-0.110.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 2018-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module bash-completion-r1 + +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 Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~loong ~x86" +IUSE="doc +sass test" + +BDEPEND=" + >=dev-lang/go-1.18 + test? ( + dev-python/docutils + dev-ruby/asciidoctor + virtual/pandoc + ) +" +RDEPEND=" + >=media-libs/libwebp-1.2.3-r1:= + sass? ( dev-libs/libsass:= ) +" +DEPEND="${RDEPEND}" + +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.96.0-unbundle-libwebp-and-libsass.patch + "${FILESDIR}"/${PN}-0.110.0-skip-some-tests.patch + "${FILESDIR}"/${PN}-0.99.1-test-timeout.patch +) + +src_configure() { + export CGO_ENABLED=1 + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + + MY_BUILDFLAGS="$(usev sass "-tags extended")" + + default +} + +src_compile() { + mkdir -pv bin || die + ego build -ldflags "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=gentoo:${PVR}" \ + ${MY_BUILDFLAGS} -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() { + # workaround for mysteriously added -buildmode=pie + # + MY_BUILDFLAGS="-buildmode=exe ${MY_BUILDFLAGS}" + ego test -race "./..." ${MY_BUILDFLAGS} +} + +src_install() { + dobin bin/* + doman man/* + + dobashcomp completions/${PN} + + insinto /usr/share/fish/vendor_completions.d + doins completions/${PN}.fish + + insinto /usr/share/zsh/site-functions + doins completions/_${PN} + + if use doc ; then + dodoc -r doc/* + fi +} -- cgit v1.2.3