diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-12 09:24:43 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-12 09:24:43 +0000 |
commit | 09d1923fc1fee6007fbd5692399ffa7fbff7e410 (patch) | |
tree | 3bc02ed7aec08ca35a6dcaa011cda9f5ed760cd9 /www-apps/hugo/hugo-0.104.3.ebuild | |
parent | 0d2f8392c6680b637f072c5b5af8ccbbf7ab9bf6 (diff) |
gentoo auto-resync : 12:12:2022 - 09:24:43
Diffstat (limited to 'www-apps/hugo/hugo-0.104.3.ebuild')
-rw-r--r-- | www-apps/hugo/hugo-0.104.3.ebuild | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/www-apps/hugo/hugo-0.104.3.ebuild b/www-apps/hugo/hugo-0.104.3.ebuild deleted file mode 100644 index d3c3a18137bd..000000000000 --- a/www-apps/hugo/hugo-0.104.3.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 2018-2022 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 - https://tastytea.de/files/gentoo/${PN}-0.101.0-libwebp-1.2.3.patch -" - -# 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 Unlicense" -SLOT="0" -KEYWORDS="~amd64 ~loong ~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.104.3-skip-some-tests.patch - "${FILESDIR}"/${PN}-0.99.1-test-timeout.patch - "${DISTDIR}"/${PN}-0.101.0-libwebp-1.2.3.patch -) - -src_configure() { - export CGO_ENABLED=1 - export CGO_CFLAGS="${CFLAGS}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - - MY_BUILDFLAGS="$(usev sass "-tags extended")" - - default -} - -src_compile() { - mkdir -pv bin || die - ego build -ldflags "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=gentoo:${PVR}" \ - ${MY_BUILDFLAGS} -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 -race "./..." ${MY_BUILDFLAGS} -} - -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 -} |