diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-19 21:52:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-19 21:52:41 +0100 |
commit | 67efaff61522aeb024152ab6cddf7c40ffacb530 (patch) | |
tree | 294409103a6f391c6c9d317b2dde60cbf1f035e7 /www-apps/hugo/hugo-0.115.4.ebuild | |
parent | f827ced0163cc11d6d35e2d4e2c8a7ab3fd6482a (diff) |
gentoo auto-resync : 19:10:2023 - 21:52:41
Diffstat (limited to 'www-apps/hugo/hugo-0.115.4.ebuild')
-rw-r--r-- | www-apps/hugo/hugo-0.115.4.ebuild | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/www-apps/hugo/hugo-0.115.4.ebuild b/www-apps/hugo/hugo-0.115.4.ebuild deleted file mode 100644 index b8cc129acc16..000000000000 --- a/www-apps/hugo/hugo-0.115.4.ebuild +++ /dev/null @@ -1,98 +0,0 @@ -# Copyright 2018-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module bash-completion-r1 - -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" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86" -IUSE="doc +sass test" - -BDEPEND=" - >=dev-lang/go-1.18 - test? ( - dev-python/docutils - dev-ruby/asciidoctor - virtual/pandoc - ) -" -RDEPEND=" - >=media-libs/libwebp-1.2.3-r1:= - sass? ( dev-libs/libsass:= ) -" -DEPEND="${RDEPEND}" - -RESTRICT="!test? ( test )" - -PATCHES=( - "${FILESDIR}"/${PN}-0.96.0-unbundle-libwebp-and-libsass.patch - "${FILESDIR}"/${PN}-0.115.2-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 sass "-tags extended")" - - default -} - -src_prepare() { - # wants to run command that require network access - rm testscripts/commands/mod{,_vendor}.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} - - 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 -} |