1 |
commit: 2f6983e27a4c6d5ea7250f9409809a704f817c85 |
2 |
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> |
3 |
AuthorDate: Fri Mar 10 23:02:41 2023 +0000 |
4 |
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 20 06:43:05 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f6983e2 |
7 |
|
8 |
www-apps/hugo: add 0.111.3 |
9 |
|
10 |
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> |
11 |
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> |
12 |
|
13 |
www-apps/hugo/Manifest | 2 + |
14 |
www-apps/hugo/hugo-0.111.3.ebuild | 92 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 94 insertions(+) |
16 |
|
17 |
diff --git a/www-apps/hugo/Manifest b/www-apps/hugo/Manifest |
18 |
index 549c73109538..82e456ea2c2a 100644 |
19 |
--- a/www-apps/hugo/Manifest |
20 |
+++ b/www-apps/hugo/Manifest |
21 |
@@ -1,2 +1,4 @@ |
22 |
DIST hugo-0.110.0-vendor.tar.xz 5792924 BLAKE2B a70283d9b5764c3340591e40d6472c0f14b029e5bed086c4f294951e00a45041a869868884328ea39b75caccf8e2089250a98502a3ec38c730989a77e55c976b SHA512 c6a0cd262934b6434eac7122a0ec257ca4eec1611b938585e6ee22d56991632fd5e52c061d552772e0e8bd10e13c23aecc461d52c23dff009e8e522b651642da |
23 |
DIST hugo-0.110.0.tar.gz 29055652 BLAKE2B d8c9e04c3141f02eeea1a951ba92c552148b604817e60041a3b944ccea37565ab8a6c3a47300877f5497d4575df4cdf598627d8dea65a1c935073b7bd8e99b70 SHA512 b64a6fa50201c0d95bf49fd0193138123163e0dad077491cc4c3e0d851de03ed2cd2e81482c1e6291d9a10d2d99f89c9dbbcfaafcd17f702906901dc6f28b3de |
24 |
+DIST hugo-0.111.3-vendor.tar.xz 5812152 BLAKE2B c3daccdd3e6841df3a45c4fb7c82cf5ffba0a9267881733898c54814fbc0707f0cb110604de1a0604d986bc8668347b71eb9b845217a6c1a5764a776282caea3 SHA512 ba08add570db8d8f92a31474252470f3b6440884c9d595a8bd128a0c8f9ce066553e28531c331ddc51e8f665acb555ec8f31525ceda94c5542be229b80b1a274 |
25 |
+DIST hugo-0.111.3.tar.gz 29191902 BLAKE2B a5c4bf3f53579b7870e5a0bed247feff016d3a06c0683949ecada5083db07ee2108c712b41b1f15edd42f0a77d5649657d3fe76d8704a8a7668911a56b045e3b SHA512 fd9fa9138cf714572d50328abc332edcdaaa3d45440914705d0d2119fd2a062c8df59732d9f5c23f540076e0c5a4104ac1d332f8633d93ab1479f82dd5ecce39 |
26 |
|
27 |
diff --git a/www-apps/hugo/hugo-0.111.3.ebuild b/www-apps/hugo/hugo-0.111.3.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..ebf86fa34f56 |
30 |
--- /dev/null |
31 |
+++ b/www-apps/hugo/hugo-0.111.3.ebuild |
32 |
@@ -0,0 +1,92 @@ |
33 |
+# Copyright 2018-2023 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit go-module bash-completion-r1 |
39 |
+ |
40 |
+DESCRIPTION="Fast static HTML and CSS website generator" |
41 |
+HOMEPAGE="https://gohugo.io https://github.com/gohugoio/hugo" |
42 |
+SRC_URI=" |
43 |
+ https://github.com/gohugoio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
44 |
+ https://tastytea.de/files/gentoo/${P}-vendor.tar.xz |
45 |
+" |
46 |
+ |
47 |
+# NOTE: To create the vendor tarball, run: |
48 |
+# `go mod vendor && cd .. && tar -caf ${P}-vendor.tar.xz ${P}/vendor` |
49 |
+ |
50 |
+LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86" |
53 |
+IUSE="doc +sass test" |
54 |
+ |
55 |
+BDEPEND=" |
56 |
+ >=dev-lang/go-1.18 |
57 |
+ test? ( |
58 |
+ dev-python/docutils |
59 |
+ dev-ruby/asciidoctor |
60 |
+ virtual/pandoc |
61 |
+ ) |
62 |
+" |
63 |
+RDEPEND=" |
64 |
+ >=media-libs/libwebp-1.2.3-r1:= |
65 |
+ sass? ( dev-libs/libsass:= ) |
66 |
+" |
67 |
+DEPEND="${RDEPEND}" |
68 |
+ |
69 |
+RESTRICT="!test? ( test )" |
70 |
+ |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}"/${PN}-0.96.0-unbundle-libwebp-and-libsass.patch |
73 |
+ "${FILESDIR}"/${PN}-0.110.0-skip-some-tests.patch |
74 |
+ "${FILESDIR}"/${PN}-0.99.1-test-timeout.patch |
75 |
+) |
76 |
+ |
77 |
+src_configure() { |
78 |
+ export CGO_ENABLED=1 |
79 |
+ export CGO_CFLAGS="${CFLAGS}" |
80 |
+ export CGO_CPPFLAGS="${CPPFLAGS}" |
81 |
+ export CGO_CXXFLAGS="${CXXFLAGS}" |
82 |
+ export CGO_LDFLAGS="${LDFLAGS}" |
83 |
+ export EGO_BUILD_FLAGS="$(usev sass "-tags extended")" |
84 |
+ |
85 |
+ default |
86 |
+} |
87 |
+ |
88 |
+src_compile() { |
89 |
+ mkdir -pv bin || die |
90 |
+ ego build -ldflags "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=gentoo:${PVR}" \ |
91 |
+ -o "${S}/bin/hugo" |
92 |
+ |
93 |
+ bin/hugo gen man --dir man || die |
94 |
+ |
95 |
+ mkdir -pv completions || die |
96 |
+ bin/hugo completion bash > completions/hugo || die |
97 |
+ bin/hugo completion fish > completions/hugo.fish || die |
98 |
+ bin/hugo completion zsh > completions/_hugo || die |
99 |
+ |
100 |
+ if use doc ; then |
101 |
+ bin/hugo gen doc --dir doc || die |
102 |
+ fi |
103 |
+} |
104 |
+ |
105 |
+src_test() { |
106 |
+ ego test "./..." |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ dobin bin/* |
111 |
+ doman man/* |
112 |
+ |
113 |
+ dobashcomp completions/${PN} |
114 |
+ |
115 |
+ insinto /usr/share/fish/vendor_completions.d |
116 |
+ doins completions/${PN}.fish |
117 |
+ |
118 |
+ insinto /usr/share/zsh/site-functions |
119 |
+ doins completions/_${PN} |
120 |
+ |
121 |
+ if use doc ; then |
122 |
+ dodoc -r doc/* |
123 |
+ fi |
124 |
+} |