Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/
Date: Mon, 20 Jan 2020 13:03:29
Message-Id: 1579525391.edc8e34c3385e16ca309e952f35604d3697b2bae.juippis@gentoo
1 commit: edc8e34c3385e16ca309e952f35604d3697b2bae
2 Author: Felix Neumärker <xdch47 <AT> posteo <DOT> de>
3 AuthorDate: Mon Jan 20 09:22:06 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 20 13:03:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edc8e34c
7
8 www-apps/gitea: remove old
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Felix Neumärker <xdch47 <AT> posteo.de>
12 Closes: https://github.com/gentoo/gentoo/pull/14394
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 www-apps/gitea/Manifest | 1 -
16 www-apps/gitea/gitea-1.10.2.ebuild | 134 -------------------------------------
17 2 files changed, 135 deletions(-)
18
19 diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
20 index c93c49010b2..036771f2865 100644
21 --- a/www-apps/gitea/Manifest
22 +++ b/www-apps/gitea/Manifest
23 @@ -1,2 +1 @@
24 -DIST gitea-1.10.2.tar.gz 30141486 BLAKE2B b6797a6bff7ec8a174f49bf9606cbab65ae5d3fe96ad6be381ea708cd73b6664588b5d80b2f6114ae09a9a202a606b4b4be6b3f224fdf2ea31c42e44b9f29813 SHA512 b378d02f27bb03ffd1a8ace2da8d827e07e023a02de4b1b4b354659316539ea38bf2735aa01fb1f997b05f7bb557394d0b6d15a1974747d86826ec1af02efb27
25 DIST gitea-1.10.3.tar.gz 30145162 BLAKE2B 4b851580a4e081148ee99d0b6daab52df3251711e309b05ba6ac590d2c5f7983b5d65040b474c09efdc0e999e6f011b14a6e8f8069e3bf7957c23dc118b82cf8 SHA512 2e3962069f2160ea536a7ab4322261c5063fffe0d291796cba61c9d0a3cf965d339441bc0b2259883695a6ce4b62de1f3e16e3fc78016ce303847b70f4f8ff34
26
27 diff --git a/www-apps/gitea/gitea-1.10.2.ebuild b/www-apps/gitea/gitea-1.10.2.ebuild
28 deleted file mode 100644
29 index 473b669f45b..00000000000
30 --- a/www-apps/gitea/gitea-1.10.2.ebuild
31 +++ /dev/null
32 @@ -1,134 +0,0 @@
33 -# Copyright 1999-2020 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -if [[ ${PV} != 9999* ]] ; then
39 - SCM="golang-vcs-snapshot"
40 -else
41 - SCM="git-r3"
42 -fi
43 -
44 -inherit golang-base tmpfiles systemd ${SCM}
45 -unset SCM
46 -
47 -EGO_PN="code.gitea.io/gitea"
48 -
49 -DESCRIPTION="A painless self-hosted Git service"
50 -HOMEPAGE="https://gitea.io"
51 -
52 -if [[ ${PV} != 9999* ]] ; then
53 - SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz"
54 - KEYWORDS="~amd64 ~arm ~arm64"
55 -else
56 - EGIT_REPO_URI="https://github.com/go-gitea/gitea"
57 - EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
58 - has test ${FEATURES} && EGIT_MIN_CLONE_TYPE="mirror"
59 -fi
60 -
61 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
62 -SLOT="0"
63 -IUSE="+acct pam sqlite"
64 -
65 -BDEPEND="dev-lang/go"
66 -DEPEND="pam? ( sys-libs/pam )"
67 -RDEPEND="${DEPEND}
68 - acct? (
69 - acct-group/git
70 - acct-user/git[gitea]
71 - )
72 - dev-vcs/git"
73 -
74 -DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md )
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 "$@"
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 - gitea_make generate
123 -}
124 -
125 -src_compile() {
126 - gitea_make build
127 -}
128 -
129 -src_test() {
130 - if has network-sandbox ${FEATURES}; then
131 - einfo "Remove tests which are known to fail with network-sandbox enabled."
132 - rm ./modules/migrations/github_test.go || die
133 - fi
134 -
135 - if [[ ${PV} != 9999* ]] ; then
136 - einfo "Remove tests which depend on gitea git-repo."
137 - rm ./modules/git/blob_test.go || die
138 - rm ./modules/git/repo_test.go || die
139 - fi
140 -
141 - default
142 -}
143 -
144 -src_install() {
145 - dobin gitea
146 -
147 - einstalldocs
148 -
149 - newconfd "${FILESDIR}/gitea.confd-r1" gitea
150 - newinitd "${FILESDIR}/gitea.initd-r3" gitea
151 - newtmpfiles - gitea.conf <<-EOF
152 - d /run/gitea 0755 git git
153 - EOF
154 - systemd_newunit "${FILESDIR}"/gitea.service-r2 gitea.service
155 -
156 - insinto /etc/gitea
157 - newins custom/conf/app.ini.sample app.ini
158 - if use acct ; then
159 - fowners root:git /etc/gitea/{,app.ini}
160 - fperms g+w,o-rwx /etc/gitea/{,app.ini}
161 -
162 - diropts -m0750 -o git -g git
163 - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
164 - keepdir /var/log/gitea
165 - fi
166 -}