summaryrefslogtreecommitdiff
path: root/www-apps/hugo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-07 13:06:42 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-07 13:06:42 +0000
commit1b97f0352e38f8346984329b82a8be71632220a6 (patch)
treea2eedd48c9161522b87c70d55cbb7d28d2cb36a9 /www-apps/hugo
parenta03bc69159ecc073f051ca2079848553a8e34664 (diff)
gentoo auto-resync : 07:03:2024 - 13:06:41
Diffstat (limited to 'www-apps/hugo')
-rw-r--r--www-apps/hugo/Manifest3
-rw-r--r--www-apps/hugo/hugo-0.123.7.ebuild101
2 files changed, 104 insertions, 0 deletions
diff --git a/www-apps/hugo/Manifest b/www-apps/hugo/Manifest
index abcc0c0438b0..679a4bce67d0 100644
--- a/www-apps/hugo/Manifest
+++ b/www-apps/hugo/Manifest
@@ -7,7 +7,10 @@ DIST hugo-0.121.2-vendor.tar.xz 6683208 BLAKE2B d4be99aaf686c79cfda28c3ed4d1023b
DIST hugo-0.121.2.tar.gz 21074668 BLAKE2B 06e42bcba49e9e2329ae1b76cc76caf2ac83e13f067533e07cd5471c064ecc402fb7cffaa21df4e20514d96bcfb7f16b4ff078ab23b84506a4ccfc423b21afca SHA512 717da396fa887995e455c1cc7cfc21c535583ba70cb90bcb15ea47e389aa636e9ffa4f66b28bf313f225579e40bc2864ef9da6ebf00d006b3a1ca68f38a47673
DIST hugo-0.123.0-vendor.tar.xz 6613120 BLAKE2B 4ccf23139eea6cf3d262092234735b9c8faa705b4ffeead73f439ea3703579c3287b82304b201b0ac9d6457c30c9105b77d6ef7916f7a6a814f8763f7c65453a SHA512 21911b4c15e4fd1241f5aaedd307240ca1e90f5fed25363d4cea410c31259fae5d41a6f3a6feaad6a22c596f6aec69095ed11b2194735aeac2a2c8412fdf8042
DIST hugo-0.123.0.tar.gz 21034964 BLAKE2B 0d1c22d7e8ce71f574cefb1209da82a3de93e6d162ed19cfa950acc159514e5dbc2bd21a6b6116887408a4a257e9f36d6a4a8ad5bb64d5c44db60eccb3238702 SHA512 8835b620d480e86df3a315b101d131b3defde29b21628ba48fe805c1af2625600a5c0fe64ebbab48c8ca56310d5d3aae3c98c27f116a5044ce171a68c072006d
+DIST hugo-0.123.7-vendor.tar.xz 6647064 BLAKE2B 4f6932918fa6e2159ad3295332e120d361577647b6b3e63972e475c8863fc43a7b1da2d0ae69b3b7003216f425c4ef1ccabf04fa8367ae5f4bdffa7fd860acc0 SHA512 e3da539a9427be86e1ca792392ac88f02e81d2359e34b0a81478f3006533ca135c367ad8c6f695c3cb37ca7caaa6ef85f3cecba7632cc442db7a3624f7428dca
+DIST hugo-0.123.7.tar.gz 21046177 BLAKE2B 518a90dd9aeff0a704fe2f2c7e0f6e0a6eed2489902a24133906dcda9b3fe1d9eaa356b4cb749671cdeb468bb0db3faa0d4f63a9a32d64dc13db7c3a3a172573 SHA512 8fb3331b05c2b1a2218d399cfea5268e2f3622b7122df3bbe68f262d574ae2d946e7b525411abdf82874911fb262f5b88d2ab887585289e7c9f4accd25257552
EBUILD hugo-0.121.0.ebuild 2266 BLAKE2B 50cd6050b08d7aee45bcd796ede492f4610f8ad45ecc9d9a6c75666766cadb0752a63006a2cc2dcd366beefdd4d1ea415888cc2594566b9e2cb4fe33f919561d SHA512 bdd458106a37ab19ec1b2eba53423852303485cb73dbc8ac7566ab3e024c2f442680a4a0a4fca88b2753634f8697c0ca2ab1f5e49979834ea2e17eefc73223c8
EBUILD hugo-0.121.2.ebuild 2279 BLAKE2B e9a0d8fb1bb52ce19ea1f3ea8b97c8a650117d3e86a706c9dd379f3fbfc37fb21d7e4e0a0e92aec3461fe0235a5c35368a59bb2160cc7f9e77fa4ecf739687a2 SHA512 815f6788044af7990427540303b598f1f892cc264ffa913379beb01b340c20c974908b31f5dcfe2744291bd33b836b5344ccf1ac2f8325763f173204b7b2bb8b
EBUILD hugo-0.123.0.ebuild 2300 BLAKE2B 5ae26a21bbb1450c09113eec551d0fa858e1ef51c2a984ae1a766c15b9614d5283cee9eec9fc17b1bdebc57cb949e18e0bf74490a2dd98688763b2e781e15662 SHA512 74130e8daa708ed4741f520b42c212d13a2b2b825c82c54ca16e380c3ec4cc0db2d3a2a90d7325d681d865fbc486f1efd78226a5a5fb121a1ab282cb47e80e0e
+EBUILD hugo-0.123.7.ebuild 2300 BLAKE2B 5ae26a21bbb1450c09113eec551d0fa858e1ef51c2a984ae1a766c15b9614d5283cee9eec9fc17b1bdebc57cb949e18e0bf74490a2dd98688763b2e781e15662 SHA512 74130e8daa708ed4741f520b42c212d13a2b2b825c82c54ca16e380c3ec4cc0db2d3a2a90d7325d681d865fbc486f1efd78226a5a5fb121a1ab282cb47e80e0e
MISC metadata.xml 747 BLAKE2B 41237356c5a48ebde4e351ac73bb1da54fd9553e3949d1abae2f48b5ea193b26d960cb3f01c8fbcf68c7d58d923af6b01e2e629a296daea0b96afb8ad0d93c1b SHA512 ee24abfa9f0c2bda3d4d02339dbe63da7d9753783f7a356c56721a67eaeac68963037803ac41af8d51834ac9437c543c1609216fda6479c3f298fbd1d0896107
diff --git a/www-apps/hugo/hugo-0.123.7.ebuild b/www-apps/hugo/hugo-0.123.7.ebuild
new file mode 100644
index 000000000000..f7559ea691b9
--- /dev/null
+++ b/www-apps/hugo/hugo-0.123.7.ebuild
@@ -0,0 +1,101 @@
+# 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.21.6
+ 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)"
+}