1 |
commit: 63253c0145695ddbb889d953578b9c5ec6d6cfeb |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 4 20:51:27 2020 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 4 20:51:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63253c01 |
7 |
|
8 |
www-apps/gitea: remove 1.11.8 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/739518 |
11 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
12 |
|
13 |
www-apps/gitea/Manifest | 1 - |
14 |
www-apps/gitea/gitea-1.11.8.ebuild | 141 ------------------------------------- |
15 |
2 files changed, 142 deletions(-) |
16 |
|
17 |
diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest |
18 |
index 7553319ceea..aa1130e4cf5 100644 |
19 |
--- a/www-apps/gitea/Manifest |
20 |
+++ b/www-apps/gitea/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
DIST gitea-1.12.1.tar.gz 135104234 BLAKE2B 36510e25e8c2cc1c718702a7cd0be74bbf5448beb33a90732599a4830b0899b37dfc9a58e3a8ffdb5037e93f185ba3b09a0ac7b8acd629c46b1982d6aeab1ec1 SHA512 6ba8a703272e611aac4c214cd818490a9615a9ab9b64ec22ec2c6331e865226324896f600218fb3b39cea7b6649456db7ff18e1857ece6964ab5d3c6d99c3aec |
23 |
-DIST gitea-src-1.11.8.tar.gz 68927493 BLAKE2B 4e1b1d201848227bd5d5bfac5bbddc291e2f14d7262bb2f8353131b6284520ecda3f844e81c23e95c5cd4ef17a6414e0b3c6adf6e6be5c59f7367c19a2e549d8 SHA512 13216a4d98211eb1a5c319992c9c253ce6f7a7a343ebfdca18802eb599f7300a3c23adbba94784f70ca604751ced5aac7d663a210885554c61a24857de79b6e6 |
24 |
|
25 |
diff --git a/www-apps/gitea/gitea-1.11.8.ebuild b/www-apps/gitea/gitea-1.11.8.ebuild |
26 |
deleted file mode 100644 |
27 |
index 555b0028a9e..00000000000 |
28 |
--- a/www-apps/gitea/gitea-1.11.8.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,141 +0,0 @@ |
31 |
-# Copyright 1999-2020 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-if [[ ${PV} != 9999* ]] ; then |
37 |
- SCM="golang-vcs-snapshot" |
38 |
-else |
39 |
- SCM="git-r3" |
40 |
-fi |
41 |
- |
42 |
-inherit fcaps golang-base tmpfiles systemd ${SCM} |
43 |
-unset SCM |
44 |
- |
45 |
-EGO_PN="code.gitea.io/gitea" |
46 |
- |
47 |
-DESCRIPTION="A painless self-hosted Git service" |
48 |
-HOMEPAGE="https://gitea.io" |
49 |
- |
50 |
-if [[ ${PV} != 9999* ]] ; then |
51 |
- SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz" |
52 |
- KEYWORDS="~amd64 ~arm ~arm64" |
53 |
-else |
54 |
- EGIT_REPO_URI="https://github.com/go-gitea/gitea" |
55 |
- EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}" |
56 |
- has test ${FEATURES} && EGIT_MIN_CLONE_TYPE="mirror" |
57 |
-fi |
58 |
- |
59 |
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" |
60 |
-SLOT="0" |
61 |
-IUSE="+acct build-client pam sqlite" |
62 |
- |
63 |
-BDEPEND="<dev-lang/go-1.14.0 |
64 |
- build-client? ( >=net-libs/nodejs-10[npm] )" |
65 |
-DEPEND="pam? ( sys-libs/pam )" |
66 |
-RDEPEND="${DEPEND} |
67 |
- acct? ( |
68 |
- acct-group/git |
69 |
- acct-user/git[gitea] |
70 |
- ) |
71 |
- dev-vcs/git" |
72 |
- |
73 |
-DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md ) |
74 |
-FILECAPS=( cap_net_bind_service+ep usr/bin/gitea ) |
75 |
-S="${WORKDIR}/${P}/src/${EGO_PN}" |
76 |
- |
77 |
-PATCHES=( "${FILESDIR}/gitea-logflags.patch" ) |
78 |
- |
79 |
-gitea_make() { |
80 |
- local gitea_tags=( |
81 |
- bindata |
82 |
- $(usev pam) |
83 |
- $(usex sqlite 'sqlite sqlite_unlock_notify' '') |
84 |
- ) |
85 |
- local gitea_settings=( |
86 |
- "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini" |
87 |
- "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom" |
88 |
- "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea" |
89 |
- ) |
90 |
- local makeenv=( |
91 |
- TAGS="${gitea_tags[@]}" |
92 |
- LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[@]}" |
93 |
- GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" |
94 |
- ) |
95 |
- [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${PV}") |
96 |
- |
97 |
- env "${makeenv[@]}" emake -j1 "$@" |
98 |
-} |
99 |
- |
100 |
-src_prepare() { |
101 |
- default |
102 |
- |
103 |
- local sedcmds=( |
104 |
- -e "s#^RUN_MODE = dev#RUN_MODE = prod#" |
105 |
- -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#" |
106 |
- -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#" |
107 |
- -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#" |
108 |
- -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#" |
109 |
- -e "s#^MODE = console#MODE = file#" |
110 |
- -e "s#^LEVEL = Trace#LEVEL = Info#" |
111 |
- -e "s#^LOG_SQL = true#LOG_SQL = false#" |
112 |
- -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#" |
113 |
- -e "s#^APP_ID =#;APP_ID =#" |
114 |
- -e "s#^TRUSTED_FACETS =#;TRUSTED_FACETS =#" |
115 |
- ) |
116 |
- |
117 |
- sed -i "${sedcmds[@]}" custom/conf/app.ini.sample || die |
118 |
- if use sqlite ; then |
119 |
- sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.ini.sample || die |
120 |
- fi |
121 |
- |
122 |
- # Remove already build assets (like frontend part) |
123 |
- use build-client && gitea_make clean-all |
124 |
-} |
125 |
- |
126 |
-src_compile() { |
127 |
- if use build-client ; then |
128 |
- gitea_make build |
129 |
- else |
130 |
- gitea_make backend |
131 |
- fi |
132 |
-} |
133 |
- |
134 |
-src_test() { |
135 |
- if has network-sandbox ${FEATURES}; then |
136 |
- einfo "Remove tests which are known to fail with network-sandbox enabled." |
137 |
- rm ./modules/migrations/github_test.go || die |
138 |
- fi |
139 |
- |
140 |
- if [[ ${PV} != 9999* ]] ; then |
141 |
- einfo "Remove tests which depend on gitea git-repo." |
142 |
- rm ./modules/git/blob_test.go || die |
143 |
- rm ./modules/git/repo_test.go || die |
144 |
- fi |
145 |
- |
146 |
- default |
147 |
-} |
148 |
- |
149 |
-src_install() { |
150 |
- dobin gitea |
151 |
- |
152 |
- einstalldocs |
153 |
- |
154 |
- newconfd "${FILESDIR}/gitea.confd-r1" gitea |
155 |
- newinitd "${FILESDIR}/gitea.initd-r3" gitea |
156 |
- newtmpfiles - gitea.conf <<-EOF |
157 |
- d /run/gitea 0755 git git |
158 |
- EOF |
159 |
- systemd_newunit "${FILESDIR}"/gitea.service-r2 gitea.service |
160 |
- |
161 |
- insinto /etc/gitea |
162 |
- newins custom/conf/app.ini.sample app.ini |
163 |
- if use acct ; then |
164 |
- fowners root:git /etc/gitea/{,app.ini} |
165 |
- fperms g+w,o-rwx /etc/gitea/{,app.ini} |
166 |
- |
167 |
- diropts -m0750 -o git -g git |
168 |
- keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data |
169 |
- keepdir /var/log/gitea |
170 |
- fi |
171 |
-} |