summaryrefslogtreecommitdiff
path: root/www-apps/hugo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-20 12:37:08 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-20 12:37:08 +0000
commitbf091a83ac5cdd060495df0aef0aeab9066672a1 (patch)
tree124ebfd5876a887d83a1bfefc5b4f02bafa41983 /www-apps/hugo
parent4c60e3b3235bcc7f291760881f8b40660a518471 (diff)
gentoo auto-resync : 20:03:2023 - 12:37:08
Diffstat (limited to 'www-apps/hugo')
-rw-r--r--www-apps/hugo/Manifest5
-rw-r--r--www-apps/hugo/hugo-0.110.0-r2.ebuild (renamed from www-apps/hugo/hugo-0.110.0-r1.ebuild)6
-rw-r--r--www-apps/hugo/hugo-0.111.3.ebuild92
3 files changed, 99 insertions, 4 deletions
diff --git a/www-apps/hugo/Manifest b/www-apps/hugo/Manifest
index 012c5fdd2c15..bfb1edcc2f72 100644
--- a/www-apps/hugo/Manifest
+++ b/www-apps/hugo/Manifest
@@ -3,5 +3,8 @@ AUX hugo-0.96.0-unbundle-libwebp-and-libsass.patch 1558 BLAKE2B bce42fce63466424
AUX hugo-0.99.1-test-timeout.patch 731 BLAKE2B 677a6ca363f60b875d672df80584734a5feabecea68de57cfe63ebfb97768581372adbe2d171e0f5f746a03b8dc67fad75bd1c0a3bdcb9532f99c1859b31523f SHA512 979161805cc5b7220362b7fefe33d423515b76a366b08500b9765c835399aacff3ff609d6692594739a3f9a078b1708dbfc1c6635416d46d0d8a1279e50417ac
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.110.0-r1.ebuild 2022 BLAKE2B 7fb592d1e701a24e2a190bb6064db4643cf1e1b58c749dfe22bf85c18e2e44e9bc71c25287c00e4bd658d0f9f752f47794c43ee462a147c8f678f3e025e8c3b7 SHA512 f46a84d381fe7a3a55bb34787e10384fa63cd1ac344e38bc5545cc369d5cb1cf1618187dacfead58787aa4d05159a7a33811fd57ad8f29ae82991cad9f80ce4c
+DIST hugo-0.111.3-vendor.tar.xz 5812152 BLAKE2B c3daccdd3e6841df3a45c4fb7c82cf5ffba0a9267881733898c54814fbc0707f0cb110604de1a0604d986bc8668347b71eb9b845217a6c1a5764a776282caea3 SHA512 ba08add570db8d8f92a31474252470f3b6440884c9d595a8bd128a0c8f9ce066553e28531c331ddc51e8f665acb555ec8f31525ceda94c5542be229b80b1a274
+DIST hugo-0.111.3.tar.gz 29191902 BLAKE2B a5c4bf3f53579b7870e5a0bed247feff016d3a06c0683949ecada5083db07ee2108c712b41b1f15edd42f0a77d5649657d3fe76d8704a8a7668911a56b045e3b SHA512 fd9fa9138cf714572d50328abc332edcdaaa3d45440914705d0d2119fd2a062c8df59732d9f5c23f540076e0c5a4104ac1d332f8633d93ab1479f82dd5ecce39
+EBUILD hugo-0.110.0-r2.ebuild 2057 BLAKE2B 92f46521d16f9a4cdc9817f16e96d964a7b81f18b204ad57c4b1e3523ae8264ca1728a0e22fd0fb6c099fb40582cc3e114d04f2005b62ceb29076a31e0313f7a SHA512 5faf07fc5c1bd04b0c7ceab60514acaffd29b8950a5f374a539c2e402c493644b9f71543e540ccbedfb656196f1393ea7be918b20314a49b04b675ac03ee8ae0
+EBUILD hugo-0.111.3.ebuild 2055 BLAKE2B 2ea3b6344b3306ad4b3819af553d5aa6158d997a2f1deaebbbf1ad902dd7cb35edf3d08bb9f9089f271b17d7839c1732691527991d9a39d9141ff58511c40384 SHA512 15d35bf662af0e0270f3e6c83143b2af07095d4f34461c8b5086f20f682a4208df363df29c695a930a9f60906df09a229211909c67d7059064c3b7542efa3d34
MISC metadata.xml 727 BLAKE2B b2632867dbfc5f0d647facb43f54ad3ae6bf5562bc7057dafca2724b4da8574603fff3ab5acf9ce9acb5dd0e20a15bcc052ee1cb5ca3b44d5e02f443c7d9ea2d SHA512 6efed4943de9dd760aac8998fa921d9e38f3ab93baae7c1a808e102619e292d7a067e6fe7c102b89fc432d422d2c8614b339490c5e234210bb219eeca22c6540
diff --git a/www-apps/hugo/hugo-0.110.0-r1.ebuild b/www-apps/hugo/hugo-0.110.0-r2.ebuild
index 2844ad2eecb8..68c6effbbe55 100644
--- a/www-apps/hugo/hugo-0.110.0-r1.ebuild
+++ b/www-apps/hugo/hugo-0.110.0-r2.ebuild
@@ -48,7 +48,7 @@ src_configure() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
- export EGO_BUILD_FLAGS="$(usev sass "-tags extended")"
+ export MY_BUILD_FLAGS="$(usev sass "-tags extended")"
default
}
@@ -56,7 +56,7 @@ src_configure() {
src_compile() {
mkdir -pv bin || die
ego build -ldflags "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=gentoo:${PVR}" \
- -o "${S}/bin/hugo"
+ ${MY_BUILD_FLAGS} -o "${S}/bin/hugo"
bin/hugo gen man --dir man || die
@@ -71,7 +71,7 @@ src_compile() {
}
src_test() {
- ego test "./..."
+ ego test "./..." ${MY_BUILD_FLAGS}
}
src_install() {
diff --git a/www-apps/hugo/hugo-0.111.3.ebuild b/www-apps/hugo/hugo-0.111.3.ebuild
new file mode 100644
index 000000000000..7eb297bafecd
--- /dev/null
+++ b/www-apps/hugo/hugo-0.111.3.ebuild
@@ -0,0 +1,92 @@
+# 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 MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~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}"
+ export MY_BUILD_FLAGS="$(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_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}
+
+ 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
+}