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