Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/hugo/
Date: Fri, 01 Nov 2019 14:11:35
Message-Id: 1572616500.9c2552a8a319d603c14e0e3171884961154c24d3.juippis@gentoo
1 commit: 9c2552a8a319d603c14e0e3171884961154c24d3
2 Author: Kirill Che <g4s8.public <AT> gmail <DOT> com>
3 AuthorDate: Tue Oct 29 13:34:38 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 1 13:55:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c2552a8
7
8 www-apps/hugo: bump version to 0.58.3
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Kirill Che <g4s8.public <AT> gmail.com>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 www-apps/hugo/Manifest | 1 +
15 www-apps/hugo/hugo-0.58.3.ebuild | 39 +++++++++++++++++++++++++++++++++++++++
16 2 files changed, 40 insertions(+)
17
18 diff --git a/www-apps/hugo/Manifest b/www-apps/hugo/Manifest
19 index 452006af8e2..8d1599fd4f5 100644
20 --- a/www-apps/hugo/Manifest
21 +++ b/www-apps/hugo/Manifest
22 @@ -127,3 +127,4 @@ DIST github.com-yosssi-ace-ea038f4770b6746c3f8f84f14fa60d9fe1205b56.tar.gz 23279
23 DIST github.com-yosssi-ace-v0.0.5.tar.gz 23277 BLAKE2B 6720498744342dcef520d5af05a889e1abc07b77eb64ff5a2e38ae6b2c0c239363a66275f7a37f50f4a0073e232f39c09be894e1f8cf8a0639bb787023136469 SHA512 1bc93544fb64088271ffca5c2ec4bd136a18527968b4341c2108c6b7156d78292e6d0c5c50fe80cda24bcd17c2d1204af597c0c3281248c3842d1fdc4838b54f
24 DIST hugo-0.48.tar.gz 18884670 BLAKE2B 1d3207fdc28b293cb76b601213454209d22cbc6eec7bde171c7f249d35be99399a8f07f201d5abf4bda7669ccfa32e588267555e3162b7d9a00887b58b890e0d SHA512 77eefb93288f2208db8e65a0f2ea84a4940a773237854e3f0c3dc41c8f6e67b6db1b98ff243a3665b3e02703089f6242354d185f0e110a72794867beda76ab81
25 DIST hugo-0.50.tar.gz 19943257 BLAKE2B 0c6d31c0ab94655d45bce9c42a41bbdfa3011322bf03860b3970ad94ebcedc67f0c32a805442f9f7666fc14054d75eb744e004a9feef6f93bcb50d4052cc024b SHA512 0cb48f30ea008382ee7c90d28713999014153d930ffad72a910cd25bdd868f9f9bb91d5825b8eebc967680a33736a69ed71b93699ca629618ae6fdbf669ca661
26 +DIST hugo-0.58.3.tar.gz 35274155 BLAKE2B 5f60a49ebdba3a1f259f0670b53eee011c8145d774ab5ab58773420adc00020bfd2c666284f069e25d5274b9e10959ba40a4dd3d65e2091880f03e34ca5177c7 SHA512 b51a83a3853e985dbd79f681198f2c41621ad4253b1b04359264cd9bc5037fffe2fafc4bffafd47dd44bb8880b3f6b3e32ea72e4e352099c08c392f5ab1ebe2e
27
28 diff --git a/www-apps/hugo/hugo-0.58.3.ebuild b/www-apps/hugo/hugo-0.58.3.ebuild
29 new file mode 100644
30 index 00000000000..80f8f7e111c
31 --- /dev/null
32 +++ b/www-apps/hugo/hugo-0.58.3.ebuild
33 @@ -0,0 +1,39 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +inherit go-module bash-completion-r1
39 +
40 +# The fork with prefetched vendor packages using `go mod vendor`
41 +EGO_PN="github.com/g4s8/hugo"
42 +GIT_COMMIT="e5194ddedf51ecb3a0c63cf5f5aa82a3be21c8cf"
43 +KEYWORDS="~amd64"
44 +
45 +DESCRIPTION="The world's fastest framework for building websites"
46 +HOMEPAGE="https://gohugo.io https://github.com/gohugoio/hugo"
47 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
48 +LICENSE="Apache-2.0 Unlicense BSD BSD-2 MPL-2.0"
49 +SLOT="0"
50 +IUSE="+sass +bash-completion"
51 +
52 +RESTRICT="test"
53 +
54 +src_compile() {
55 + mkdir -pv bin || die
56 + go build -ldflags \
57 + "-X ${EGO_PN}/hugolib.CommitHash=${GIT_COMMIT}" \
58 + $(usex sass "-tags extended" "") -o "${S}/bin/hugo" || die
59 + bin/hugo gen man || die
60 + if use bash-completion ; then
61 + bin/hugo gen autocomplete --completionfile hugo || die
62 + fi
63 +}
64 +
65 +src_install() {
66 + dobin bin/*
67 + if use bash-completion ; then
68 + dobashcomp hugo || die
69 + fi
70 + doman man/*
71 + dodoc README.md
72 +}