Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/, www-apps/gitea/files/
Date: Mon, 21 Jun 2021 22:36:07
Message-Id: 1624314602.0226cb38b5d333022568ee6db0ece783bce678f9.sam@gentoo
1 commit: 0226cb38b5d333022568ee6db0ece783bce678f9
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Thu Jun 3 07:11:55 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 21 22:30:02 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0226cb38
7
8 www-apps/gitea: drop old
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Closes: https://github.com/gentoo/gentoo/pull/21099
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 www-apps/gitea/Manifest | 1 -
16 www-apps/gitea/files/gitea.service-r2 | 34 ---------
17 www-apps/gitea/gitea-1.13.7.ebuild | 129 ----------------------------------
18 3 files changed, 164 deletions(-)
19
20 diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
21 index 719f20e2bf5..56b6dfcf5f4 100644
22 --- a/www-apps/gitea/Manifest
23 +++ b/www-apps/gitea/Manifest
24 @@ -1,2 +1 @@
25 -DIST gitea-1.13.7.tar.gz 151035143 BLAKE2B 349018a127337251d55e8681c6c509e195905b978711f60a031b5cb55c1cc6fe5c1312eaef6c3343c3a963b748adf3ef88b6b35176279f517c946f74532f2fcd SHA512 018948d4d40f41c01bc8d9fd74b1d170a8cd7a82402913ee1d11dc283a4946971f76356640213d79877160c29b58b9c393a7d761da695545939db50a3f137f7e
26 DIST gitea-1.14.2.tar.gz 117884130 BLAKE2B 75ae36ade602bcbdcc59cd3f75f60ab5fbde713399b1d8b83f29b2bee044c9a5dc83fbae8f372f62c991edeef7237a5a96a9f6b4cda0ae1db93d6596377e1a98 SHA512 073ff6d718522c1b8d2746379d6d0051dd18db89331604c1cc252bcedbad04e75a1f402bdd37fea05d21e6b5d24f43ebf9e70748f8522996fdf8eb133d2a3e38
27
28 diff --git a/www-apps/gitea/files/gitea.service-r2 b/www-apps/gitea/files/gitea.service-r2
29 deleted file mode 100644
30 index 1931b46c73c..00000000000
31 --- a/www-apps/gitea/files/gitea.service-r2
32 +++ /dev/null
33 @@ -1,34 +0,0 @@
34 -[Unit]
35 -Description=Gitea service
36 -Documentation=https://docs.gitea.io/
37 -
38 -AssertPathIsDirectory=/var/lib/gitea
39 -AssertPathIsReadWrite=/var/lib/gitea
40 -
41 -After=network.target
42 -Requires=network.target
43 -After=mysqld.service
44 -After=postgresql-9.3.service
45 -After=postgresql-9.4.service
46 -After=postgresql-9.5.service
47 -After=postgresql-9.6.service
48 -After=postgresql-10.service
49 -After=postgresql-11.service
50 -After=postgresql-12.service
51 -After=memcached.service
52 -After=redis.service
53 -
54 -[Service]
55 -User=git
56 -Group=git
57 -
58 -Environment="GITEA_WORK_DIR=/var/lib/gitea" "GITEA_CUSTOM=/var/lib/gitea/custom"
59 -WorkingDirectory=/var/lib/gitea
60 -ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini
61 -
62 -Restart=always
63 -PrivateTmp=true
64 -Nice=5
65 -
66 -[Install]
67 -WantedBy=multi-user.target
68
69 diff --git a/www-apps/gitea/gitea-1.13.7.ebuild b/www-apps/gitea/gitea-1.13.7.ebuild
70 deleted file mode 100644
71 index a68755728ea..00000000000
72 --- a/www-apps/gitea/gitea-1.13.7.ebuild
73 +++ /dev/null
74 @@ -1,129 +0,0 @@
75 -# Copyright 1999-2021 Gentoo Authors
76 -# Distributed under the terms of the GNU General Public License v2
77 -
78 -EAPI=7
79 -inherit fcaps go-module tmpfiles systemd
80 -MY_PV="${PV/_rc/-rc}"
81 -
82 -DESCRIPTION="A painless self-hosted Git service"
83 -HOMEPAGE="https://gitea.io"
84 -
85 -if [[ ${PV} != 9999* ]] ; then
86 - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz -> ${P}.tar.gz"
87 - KEYWORDS="~amd64 ~arm ~arm64"
88 - S="${WORKDIR}"
89 -else
90 - EGIT_REPO_URI="https://github.com/go-gitea/gitea"
91 - inherit git-r3
92 - S="${WORKDIR}/${P}"
93 -fi
94 -
95 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
96 -SLOT="0"
97 -IUSE="+acct build-client pam sqlite"
98 -
99 -BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
100 -COMMON_DEPEND="
101 - acct? (
102 - acct-group/git
103 - acct-user/git[gitea] )
104 - pam? ( sys-libs/pam )"
105 -DEPEND="${COMMON_DEPEND}"
106 -RDEPEND="${COMMON_DEPEND}
107 - dev-vcs/git"
108 -
109 -DOCS=(
110 - custom/conf/app.example.ini CONTRIBUTING.md README.md
111 -)
112 -FILECAPS=(
113 - cap_net_bind_service+ep usr/bin/gitea
114 -)
115 -
116 -RESTRICT="test"
117 -QA_PRESTRIPPED="usr/bin/gitea"
118 -
119 -src_prepare() {
120 - default
121 -
122 - local sedcmds=(
123 - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
124 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
125 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
126 - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
127 - -e "s#^MODE = console#MODE = file#"
128 - -e "s#^LEVEL = Trace#LEVEL = Info#"
129 - -e "s#^LOG_SQL = true#LOG_SQL = false#"
130 - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
131 - )
132 -
133 - sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
134 - if use sqlite ; then
135 - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
136 - fi
137 -
138 - einfo "Remove tests which are known to fail with network-sandbox enabled."
139 - rm ./modules/migrations/github_test.go || die
140 -
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 -
145 - # Remove already build assets (like frontend part)
146 - use build-client && emake clean-all
147 -}
148 -
149 -src_compile() {
150 - local gitea_tags=(
151 - bindata
152 - $(usev pam)
153 - $(usex sqlite 'sqlite sqlite_unlock_notify' '')
154 - )
155 - local gitea_settings=(
156 - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
157 - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
158 - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
159 - )
160 - local makeenv=(
161 - TAGS="${gitea_tags[*]}"
162 - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
163 - )
164 - [[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${MY_PV}")
165 -
166 - if use build-client; then
167 - # -j1 as Makefile doesn't handle dependancy correctly, and is not
168 - # useful as golang compiler don't use this info.
169 - env "${makeenv[@]}" emake -j1 build
170 - else
171 - env "${makeenv[@]}" emake backend
172 - fi
173 -}
174 -
175 -src_install() {
176 - dobin gitea
177 -
178 - einstalldocs
179 -
180 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
181 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
182 - newtmpfiles - gitea.conf <<-EOF
183 - d /run/gitea 0755 git git
184 - EOF
185 - systemd_newunit "${FILESDIR}"/gitea.service-r2 gitea.service
186 -
187 - insinto /etc/gitea
188 - newins custom/conf/app.example.ini app.ini
189 - if use acct ; then
190 - fowners root:git /etc/gitea/{,app.ini}
191 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
192 -
193 - diropts -m0750 -o git -g git
194 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
195 - keepdir /var/log/gitea
196 - fi
197 -}
198 -
199 -pkg_postinst() {
200 - fcaps_pkg_postinst
201 - go-module_pkg_postinst
202 - tmpfiles_process gitea.conf
203 -}