www-apps/hugo: bump version to v0.62.0
authorKirill Che <g4s8.public@gmail.com>
Mon, 23 Dec 2019 18:53:58 +0000 (21:53 +0300)
committerJoonas Niilola <juippis@gentoo.org>
Fri, 3 Jan 2020 09:14:28 +0000 (11:14 +0200)
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Kirill Che <g4s8.public@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
www-apps/hugo/Manifest
www-apps/hugo/hugo-0.62.0.ebuild [new file with mode: 0644]

index 04b5ee9577475a6c15051a1f987ee3ea0eebfb0c..37010a1aa5ed2bfb0cc38f159b60ad4e9da288d1 100644 (file)
@@ -69,3 +69,4 @@ DIST github.com-wellington-go-libsass-615eaa47ef79.tar.gz 333495 BLAKE2B 3f2e909
 DIST github.com-yosssi-ace-v0.0.5.tar.gz 23277 BLAKE2B 6720498744342dcef520d5af05a889e1abc07b77eb64ff5a2e38ae6b2c0c239363a66275f7a37f50f4a0073e232f39c09be894e1f8cf8a0639bb787023136469 SHA512 1bc93544fb64088271ffca5c2ec4bd136a18527968b4341c2108c6b7156d78292e6d0c5c50fe80cda24bcd17c2d1204af597c0c3281248c3842d1fdc4838b54f
 DIST hugo-0.50.tar.gz 19943257 BLAKE2B 0c6d31c0ab94655d45bce9c42a41bbdfa3011322bf03860b3970ad94ebcedc67f0c32a805442f9f7666fc14054d75eb744e004a9feef6f93bcb50d4052cc024b SHA512 0cb48f30ea008382ee7c90d28713999014153d930ffad72a910cd25bdd868f9f9bb91d5825b8eebc967680a33736a69ed71b93699ca629618ae6fdbf669ca661
 DIST hugo-0.58.3.tar.gz 35274155 BLAKE2B 5f60a49ebdba3a1f259f0670b53eee011c8145d774ab5ab58773420adc00020bfd2c666284f069e25d5274b9e10959ba40a4dd3d65e2091880f03e34ca5177c7 SHA512 b51a83a3853e985dbd79f681198f2c41621ad4253b1b04359264cd9bc5037fffe2fafc4bffafd47dd44bb8880b3f6b3e32ea72e4e352099c08c392f5ab1ebe2e
+DIST hugo-0.62.0.tar.gz 38685967 BLAKE2B b9e9723e910570f757108aa5e608d45ecb846c10b35449379a48fa68384aec9ae4f89c4e168005c3b27f533554f6de62067c68849f31be1a93722f95cbae0a74 SHA512 773244c1d174fef9af26ca89bc818d09bcf19dab13b9222ff949d812e7b6e5eead6a214af8cc19dd6de258b36c272fb606cdac41f553a29f561d7cd0af0c3ffb
diff --git a/www-apps/hugo/hugo-0.62.0.ebuild b/www-apps/hugo/hugo-0.62.0.ebuild
new file mode 100644 (file)
index 0000000..20ed8fe
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit go-module bash-completion-r1
+
+# The fork with prefetched vendor packages using `go mod vendor`
+EGO_PN="github.com/g4s8/hugo"
+GIT_COMMIT="6608f1557054a7d0230dff260c1b66bc19e65ec8"
+KEYWORDS="~amd64"
+
+DESCRIPTION="The world's fastest framework for building websites"
+HOMEPAGE="https://gohugo.io https://github.com/gohugoio/hugo"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="Apache-2.0 Unlicense BSD BSD-2 MPL-2.0"
+SLOT="0"
+IUSE="+sass +bash-completion doc"
+
+RESTRICT="test"
+
+src_compile() {
+       mkdir -pv bin || die
+       go build -ldflags \
+               "-X ${EGO_PN}/hugolib.CommitHash=${GIT_COMMIT}" \
+               $(usex sass "-tags extended" "") -o "${S}/bin/hugo" || die
+       bin/hugo gen man --dir man || die
+       if use bash-completion ; then
+               bin/hugo gen autocomplete --completionfile hugo || die
+       fi
+       if use doc ; then
+               bin/hugo gen doc --dir doc || die
+       fi
+}
+
+src_install() {
+       dobin bin/*
+       doman man/*
+       if use bash-completion ; then
+               dobashcomp hugo || die
+       fi
+       if use doc ; then
+               dodoc -r doc/
+       fi
+}