summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-02-21 02:41:28 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-23 18:03:58 +0100
commit912661fb74f3fc0b05bc750956dd84f805c46368 (patch)
tree45e24964e533ad923cf7d9a5d1252711427d3aba /www-apps/hugo
parentapp-vim/gentoo-syntax: Bump to v1 (diff)
downloadgentoo-912661fb74f3fc0b05bc750956dd84f805c46368.tar.gz
gentoo-912661fb74f3fc0b05bc750956dd84f805c46368.tar.bz2
gentoo-912661fb74f3fc0b05bc750956dd84f805c46368.zip
www-apps/hugo: Version bump 0.92.2
- Repackaged dependencies - unbundled media-libs/libwebp and dev-libs/libsass. Closes: https://bugs.gentoo.org/832304 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'www-apps/hugo')
-rw-r--r--www-apps/hugo/Manifest2
-rw-r--r--www-apps/hugo/files/hugo-0.92.2-link-to-webp-and-sass.patch38
-rw-r--r--www-apps/hugo/hugo-0.92.2.ebuild77
3 files changed, 117 insertions, 0 deletions
diff --git a/www-apps/hugo/Manifest b/www-apps/hugo/Manifest
index f17bbb295425..f233da127f36 100644
--- a/www-apps/hugo/Manifest
+++ b/www-apps/hugo/Manifest
@@ -1144,6 +1144,8 @@ DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.1-2020.1.3.mod 300 BLAKE2B 3aa707c72ce7e
DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.1-2020.1.4.mod 300 BLAKE2B 3aa707c72ce7e402cc1765fed30253eb87e9e87aecc8096130e973623f53ded2a7572ca3d464e4db9de524cd651b3aa8fbc9fa0ef6bdc4eb9670b4d8652f4dfc SHA512 d814675e448688f6a506397bedb262fb2583c913ec1f8ca9ffc11206bdcd7e1f4ee3c561aee366eb2cdaede8c522a6f58f116236f3033bc7e91ec139bdd140f9
DIST hugo-0.91.2.tar.gz 28416583 BLAKE2B 0f7ad7c7029ac42386a8da68d6ea6efd9982500588b7009f49629472793ea8f62a1a7640a11b5038532cc9a714695cdf849e52856d25cb904f49c9deb9113a03 SHA512 0994cc97c858b15991a5d7705a8f2f83154303d1daf4f3b3019e39d8789707875a0b90cd6f41e34bba42f10b9a13c13942ad06ddcd4b4808a4889b031a7b3d8e
DIST hugo-0.92.1.tar.gz 28554985 BLAKE2B b34c2601f3d60b0169eb88484270fae4fd49d4227ed097ce4d2e7378bb8a214a6d28402bf6500ae50c24db286c0f09e9b56999eb578029f48a5fb43df6e063d8 SHA512 d5041e89293ec75f2f4622fe3b622ed7a2c920512c39a6fac4364f6e8c033130a09043403dae186b71a78a42118820ae88309e404dd788f77a9bf77fe526759f
+DIST hugo-0.92.2-vendor.tar.xz 5607964 BLAKE2B 290e064ed87189503999e54bcf25c18b698cfb64cbb32d73765267bac19a3de53b739c695d40fa6e553e1052cae620cf15fca3e34e18132b2f9ff5389227ddb2 SHA512 23218cd4e68e2f4a0b6fd5f1b86408290f3ccb619ecc694c536ccc9074bd3ab3e6f68a14189abdd44ec9761f85901cb2c3ae072a98f292a82f00276e763cbe32
+DIST hugo-0.92.2.tar.gz 28559963 BLAKE2B 05d486aa490d9c9350353cb32f1c64133a8c358584efbdc82290e13e963620bf3984ccdf8cd8c6f93216f71e03c061659d5ef4904c35c030c62f1c43d64549dd SHA512 4a4c8ab730c1cc839e3e15a29b1200fa969402efa40774022a70fae11d98819173f6002ed3ee4a84ce1148c0744c82ce16ee0fec409935a903130ae71d62ba24
DIST rsc.io%2Fbinaryregexp%2F@v%2Fv0.2.0.mod 36 BLAKE2B 61110bed2b9e99e0250cf6e8b842257202c89b3462edf9368b73cab29f9dbd4dcc66c3e290a1d6329b7d62321eecc52082a8c4c0797eac743a29a8a00910a93f SHA512 db50ff677b0bdccbc1a1ad3df7c5cc76f2fcccf3ab99d08d1c2868440eb9b893fe89452f4286f7d42f2f16abf0f4acda67fe86e174dcfa730a743aafcc166774
DIST rsc.io%2Fquote%2Fv3%2F@v%2Fv3.1.0.mod 55 BLAKE2B f1f0ba35f0ffd200ed37c06b2025c1fd436e3fd857bd525b9295c0cbcade7e1f037e3f566124a7ef428384d50525426f0d40468c967e39bac6057174710e2566 SHA512 e6357ddd7d09692c60e59e6cb80469ade8284052cdd3ea520ec4dbcb42c1cabe045c599e43cce94bec022bd82e87a554ecac42f8c917cf2ff44daff9c1a147d5
DIST rsc.io%2Fsampler%2F@v%2Fv1.3.0.mod 88 BLAKE2B c2ac3c9619e396db470c9951dfc11cdacccd56ae09b3b353015ee7e5fbb023df288dbf48d81b44c309241d1ea89a2e0ee42ee1d17e536fcfa531aaee0e651ab7 SHA512 2137507eb25fbae419605e0cd6bca4cfa584110eebc276cd759a4dcb6f97e52928e5b2d9b276e76bcabcec3bbfc2c42f97fa29f54695d27fb00f9423e1638863
diff --git a/www-apps/hugo/files/hugo-0.92.2-link-to-webp-and-sass.patch b/www-apps/hugo/files/hugo-0.92.2-link-to-webp-and-sass.patch
new file mode 100644
index 000000000000..bda6f9bcc3f2
--- /dev/null
+++ b/www-apps/hugo/files/hugo-0.92.2-link-to-webp-and-sass.patch
@@ -0,0 +1,38 @@
+From b1c99224dc0d318109832531c98ec24ef4c0020e Mon Sep 17 00:00:00 2001
+From: tastytea <tastytea@tastytea.de>
+Date: Wed, 23 Feb 2022 14:00:36 +0100
+Subject: [PATCH] Link to webp and sass
+
+We need to add the flags because we unbundle media-libs/libwebp and
+dev-libs/libsass.
+---
+ vendor/github.com/bep/golibsass/internal/libsass/a__cgo.go | 2 +-
+ vendor/github.com/bep/gowebp/internal/libwebp/a__cgo.go | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/vendor/github.com/bep/golibsass/internal/libsass/a__cgo.go b/vendor/github.com/bep/golibsass/internal/libsass/a__cgo.go
+index af51b92..979d9e7 100644
+--- a/vendor/github.com/bep/golibsass/internal/libsass/a__cgo.go
++++ b/vendor/github.com/bep/golibsass/internal/libsass/a__cgo.go
+@@ -8,6 +8,6 @@ package libsass
+ // #cgo CFLAGS: -O2 -fPIC
+ // #cgo CPPFLAGS: -I../../libsass_src/include
+ // #cgo CXXFLAGS: -g -std=c++0x -O2 -fPIC
+-// #cgo LDFLAGS: -lstdc++ -lm
++// #cgo LDFLAGS: -lstdc++ -lm -lsass
+ // #cgo darwin linux LDFLAGS: -ldl
+ import "C"
+diff --git a/vendor/github.com/bep/gowebp/internal/libwebp/a__cgo.go b/vendor/github.com/bep/gowebp/internal/libwebp/a__cgo.go
+index 4b105ab..cec2faa 100644
+--- a/vendor/github.com/bep/gowebp/internal/libwebp/a__cgo.go
++++ b/vendor/github.com/bep/gowebp/internal/libwebp/a__cgo.go
+@@ -2,5 +2,5 @@
+
+ package libwebp
+
+-// #cgo linux LDFLAGS: -lm
++// #cgo linux LDFLAGS: -lm -lwebp
+ import "C"
+--
+2.34.1
+
diff --git a/www-apps/hugo/hugo-0.92.2.ebuild b/www-apps/hugo/hugo-0.92.2.ebuild
new file mode 100644
index 000000000000..851d5d9e67b6
--- /dev/null
+++ b/www-apps/hugo/hugo-0.92.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module bash-completion-r1
+
+DESCRIPTION="The world's fastest framework for building websites"
+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/${P}-vendor.tar.xz
+"
+
+# NOTE: To create the vendor tarball, run:
+# `go mod vendor && cd .. && tar -cJf ${P}-vendor.tar.xz ${P}/vendor`
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +sass"
+
+BDEPEND=">=dev-lang/go-1.16.0"
+RDEPEND="
+ media-libs/libwebp
+ sass? ( dev-libs/libsass )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-0.92.2-link-to-webp-and-sass.patch" )
+
+src_configure() {
+ export CGO_ENABLED=1
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS} -DLIBWEBP_NO_SRC -DUSE_LIBSASS_SRC"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+
+ default
+}
+
+src_compile() {
+ mkdir -pv bin || die
+ local my_import_path="github.com/gohugoio/hugo/common"
+ local mybuildtags="-tags $(usev sass "extended,")nodeploy"
+ go build -ldflags \
+ "-X ${my_import_path}/hugo.buildDate=$(date --iso-8601=seconds) -X ${my_import_path}/hugo.vendorInfo=Gentoo" \
+ ${mybuildtags} -o "${S}/bin/hugo" || die
+
+ 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_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
+}