Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/
Date: Sun, 06 Aug 2017 21:31:18
Message-Id: 1502055056.5e0a687f8f7ac4339c4368a3e5ff614dd0105015.mrueg@gentoo
1 commit: 5e0a687f8f7ac4339c4368a3e5ff614dd0105015
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 6 21:30:04 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 6 21:30:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e0a687f
7
8 www-apps/gitea: Remove old
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 www-apps/gitea/Manifest | 1 -
13 www-apps/gitea/gitea-1.1.2.ebuild | 71 ---------------------------------------
14 2 files changed, 72 deletions(-)
15
16 diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
17 index 1dd37b788de..07cd4cb23c3 100644
18 --- a/www-apps/gitea/Manifest
19 +++ b/www-apps/gitea/Manifest
20 @@ -1,3 +1,2 @@
21 DIST gitea-1.0.2.tar.gz 13448604 SHA256 f75e220f8c44a9b7c67d2d5339479e690df9f03ec3337eede3aab0c7e8e55c87 SHA512 1826e60961adc585fd54a2c913e6cfaa9754052a932981f83eb6a1f2521d09eb7165545f80494439763c8f13bb1f4ffc24b791162cae7b739fd9eb96f7db530c WHIRLPOOL 3afcfbf4d15b94b4b8e5fde511626ce6acfbf201a58b54f3cd077b6c6487f62b3a0b3e4ef7c3c4526a432e0aa4833e038ca7d69e2e09cf9fe329ea65607f42ab
22 -DIST gitea-1.1.2.tar.gz 13014082 SHA256 cd2504bd9554f55175518f103f0b38c89d72d44c176fdb999aa3a3dedcb29eb4 SHA512 ecad2e11cc01fd9c2b05b672e334c013d65824a111be25cbd3956196688c0d52e31875263e16fdae497e651d771539de7c9244cb01fbc522ef77a763315ecaca WHIRLPOOL c5362f7c1524ce95f0a42f409e1ab894935cbed48e9674ea8b42ba770a5a6cec77d0270ceaed86888708b8d5bf1a84728a849f217c56d06da1978ec58c9e29f5
23 DIST gitea-1.1.3.tar.gz 13018735 SHA256 c36b96707585d5395b10145d81e732c29e1d1476e7bff55ee6e131a3e516f1de SHA512 c674699bc51ad367d4e47aa1b65e2025d57747cd516df6a7d7e715bf7467a3504dcf461823db15365a61ac91a35b68bce2486b645d09708a6e952fff379c12e4 WHIRLPOOL 1134cf37e09a9e20a927ef9119eb92c2e716af092717ffcce1003d62c08f95452e054820e8392b6797d89c045d8ae317b3d0f50385367e2eb4c636e404e16073
24
25 diff --git a/www-apps/gitea/gitea-1.1.2.ebuild b/www-apps/gitea/gitea-1.1.2.ebuild
26 deleted file mode 100644
27 index a617f31b33f..00000000000
28 --- a/www-apps/gitea/gitea-1.1.2.ebuild
29 +++ /dev/null
30 @@ -1,71 +0,0 @@
31 -# Copyright 1999-2017 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -inherit user golang-build golang-vcs-snapshot
36 -
37 -EGO_PN="code.gitea.io/gitea"
38 -GIT_COMMIT="bbe6aa3"
39 -ARCHIVE_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 -KEYWORDS="~amd64 ~arm"
41 -
42 -DESCRIPTION="A painless self-hosted Git service, written in Go"
43 -HOMEPAGE="https://github.com/go-gitea/gitea"
44 -SRC_URI="${ARCHIVE_URI}"
45 -
46 -LICENSE="MIT"
47 -SLOT="0"
48 -IUSE=""
49 -
50 -DEPEND="dev-go/go-bindata"
51 -RDEPEND="dev-vcs/git"
52 -
53 -pkg_setup() {
54 - enewgroup git
55 - enewuser git -1 /bin/bash /var/lib/gitea git
56 -}
57 -
58 -src_prepare() {
59 - default
60 - local GITEA_PREFIX=${EPREFIX}/var/lib/gitea
61 - sed -i -e "s/git rev-parse --short HEAD/echo ${GIT_COMMIT}/"\
62 - -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
63 - -e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
64 - sed -i -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${GITEA_PREFIX}/data#"\
65 - -e "s#^PATH = data/gitea.db#PATH = ${GITEA_PREFIX}/data/gitea.db#"\
66 - -e "s#^PROVIDER_CONFIG = data/sessions#PROVIDER_CONFIG = ${GITEA_PREFIX}/data/sessions#"\
67 - -e "s#^AVATAR_UPLOAD_PATH = data/avatars#AVATAR_UPLOAD_PATH = ${GITEA_PREFIX}/data/avatars#"\
68 - -e "s#^TEMP_PATH = data/tmp/uploads#TEMP_PATH = ${GITEA_PREFIX}/data/tmp/uploads#"\
69 - -e "s#^PATH = data/attachments#PATH = ${GITEA_PREFIX}/data/attachments#"\
70 - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"\
71 - -e "s#^ISSUE_INDEXER_PATH =#ISSUE_INDEXER_PATH = ${GITEA_PREFIX}/indexers/issues.bleve#"\
72 - src/${EGO_PN}/conf/app.ini || die
73 -}
74 -
75 -src_compile() {
76 - GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
77 - TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
78 -}
79 -
80 -src_install() {
81 - pushd src/${EGO_PN} || die
82 - dobin gitea
83 - insinto /var/lib/gitea/conf
84 - newins conf/app.ini app.ini.example
85 - popd || die
86 - insinto /etc/logrotate.d
87 - newins "${FILESDIR}"/gitea.logrotated gitea
88 - newinitd "${FILESDIR}"/gitea.initd gitea
89 - newconfd "${FILESDIR}"/gitea.confd gitea
90 - keepdir /var/log/gitea /var/lib/gitea/data
91 - fowners -R git:git /var/log/gitea /var/lib/gitea/
92 -}
93 -
94 -pkg_postinst() {
95 - if [[ ! -e ${EROOT}/var/lib/gitea/conf/app.ini ]]; then
96 - elog "No app.ini found, copying the example over"
97 - cp "${EROOT}"/var/lib/gitea/conf/app.ini{.example,} || die
98 - else
99 - elog "app.ini found, please check example file for possible changes"
100 - fi
101 -}