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