aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2019-01-08 19:49:25 +0000
committerPaul Healy <lmiphay@gmail.com>2019-01-08 19:49:25 +0000
commitbf0a5648f55c35a65ea1e16a6a55ed65fcd8562a (patch)
tree971946b1ab663f2c9aad0eb0f1d11d830458b914
parentrevbump opengrok (diff)
downloadlmiphay-bf0a5648f55c35a65ea1e16a6a55ed65fcd8562a.tar.gz
lmiphay-bf0a5648f55c35a65ea1e16a6a55ed65fcd8562a.tar.bz2
lmiphay-bf0a5648f55c35a65ea1e16a6a55ed65fcd8562a.zip
revbump gitea
Signed-off-by: Paul Healy <lmiphay@gmail.com>
-rw-r--r--www-apps/gitea/Manifest2
-rw-r--r--www-apps/gitea/gitea-1.7.0_rc2.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index e4b1152..e7b3885 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -5,5 +5,7 @@ AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cf
AUX gitea.service 472 BLAKE2B 4c728e2987d0c0a86e65d4b9c1a59f6193ff8a3f9b066991a06f495ad1c5586b3497c71fca1cce5b65f167af09343e7bf3215ee5e8fdefa539e384198d2d88d6 SHA512 6666fe3b4cdbb78a58db4a6bf47a15e6be9ab30b666c6eb77a9e8a002d8c0abd510fc75ef463a11ee6892ab12c98943774616072cb64fd9f2fa42ff8f676aa95
DIST gitea-1.6.3.tar.gz 19505072 BLAKE2B 8d4ab5bdcffe7f88579f74cbae4562f51ba3191a133b0e6f29e96f0f9aa132765b79a414cc792a831acfea94debb55e3ae0653c2cf30ceca8821cdfc7c383d77 SHA512 367df2f85918e613fcf360afd3857cb4df9697222f064a8e60e3ae15b0ee3fa5018a28f221d906fa7f8045f3249ecf777f08180dbb3c898cbdcc09eaf5c2c5be
DIST gitea-1.7.0_rc1.tar.gz 20829312 BLAKE2B 3d5f82345924246b75958d7cf16b03c015a877c826d680eb8bf0f1c174daeef3278995138f4014471e67c76c87bd2b8b6932b82d2e8fabfb97c94b758114439d SHA512 69f24676289651d29d0a7094e1de46a031a19c563821ae6cc4370d4d6258beb498c334908c764720373a76546729ca0da93a5d0c4aaea40502081ce0a32e2d9b
+DIST gitea-1.7.0_rc2.tar.gz 20829530 BLAKE2B def4bc72cd4446237bcf740facc1f3c6d0a994eb898aa668ecb0d7de25a8a65a0fb289d9eb005f1d84d0a38d17f5fd5f42487503e6110c4c01c4f60ba8e24f2c SHA512 655bc75f9ecab981c6c0bc28f3db2d1a0863a6d37c1345179f8623d6a19bb0dd05a304063e04c23e5444d4840a38fbbe520cf8dd30be9a2aba0bef71da347e65
EBUILD gitea-1.6.3.ebuild 1937 BLAKE2B 7d619f62b9d4b40565d65e677f2de3df71553499ca3eb686cd601e57aaeb3e71fd0c07bd8e6a04193ec4993b9491b1c10fe4b0081ea5b6afddc2f9737ce239c8 SHA512 112a410e6ce27000468b2604a38967aa8aa048cbc83abd87f0f06ec175347400304032c1f8378170d147ab3579d0a953e43326bde8cffdb3515732cc95341cda
EBUILD gitea-1.7.0_rc1.ebuild 1996 BLAKE2B 2a3b2923bf839331e90accde3311d8c8c7a775953c9744289911d32fd320fce47342d4e1dcce90f1b0340c31dfdb78937b5b57b3af9852947191c671819a8a25 SHA512 a62bb2424090ba80de94ffa183f17ed858b9d98cd72e8ceb5ce39e298d65e943a7f9efebaa3f20e7ed4ce885b9c2185a68666b12bc2a64ebe08d0eedf3ea94cc
+EBUILD gitea-1.7.0_rc2.ebuild 1996 BLAKE2B 2a3b2923bf839331e90accde3311d8c8c7a775953c9744289911d32fd320fce47342d4e1dcce90f1b0340c31dfdb78937b5b57b3af9852947191c671819a8a25 SHA512 a62bb2424090ba80de94ffa183f17ed858b9d98cd72e8ceb5ce39e298d65e943a7f9efebaa3f20e7ed4ce885b9c2185a68666b12bc2a64ebe08d0eedf3ea94cc
diff --git a/www-apps/gitea/gitea-1.7.0_rc2.ebuild b/www-apps/gitea/gitea-1.7.0_rc2.ebuild
new file mode 100644
index 0000000..94dffeb
--- /dev/null
+++ b/www-apps/gitea/gitea-1.7.0_rc2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2019 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user systemd golang-build golang-vcs-snapshot versionator
+
+MY_PV=$(replace_version_separator 3 '-')
+
+EGO_PN="code.gitea.io/gitea"
+KEYWORDS="~amd64 ~arm"
+
+DESCRIPTION="A painless self-hosted Git service, written in Go"
+HOMEPAGE="https://github.com/go-gitea/gitea"
+SRC_URI="https://github.com/go-gitea/gitea/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-go/go-bindata"
+RDEPEND="dev-vcs/git"
+
+pkg_setup() {
+ enewgroup git
+ enewuser git -1 /bin/bash /var/lib/gitea git
+}
+
+src_prepare() {
+ default
+ sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
+ -e "s/-ldflags '-s/-ldflags '/" \
+ -e "s/GOFLAGS := -i -v/GOFLAGS := -v/" \
+ src/${EGO_PN}/Makefile || die
+}
+
+src_compile() {
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
+ TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
+}
+
+src_install() {
+ pushd src/${EGO_PN} || die
+ dobin gitea
+ insinto /var/lib/gitea/conf
+ newins custom/conf/app.ini.sample app.ini.example
+ popd || die
+ newinitd "${FILESDIR}"/gitea.initd-r1 gitea
+ newconfd "${FILESDIR}"/gitea.confd gitea
+ keepdir /var/log/gitea /var/lib/gitea/data
+ fowners -R git:git /var/log/gitea /var/lib/gitea/
+ systemd_dounit "${FILESDIR}/gitea.service"
+}
+
+pkg_postinst() {
+ if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
+ elog "No app.ini found, copying initial config over"
+ cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
+ chown git:git /var/lib/gitea/conf/app.ini
+ else
+ elog "app.ini found, please check example file for possible changes"
+ ewarn "Please note that environment variables have been changed:"
+ ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
+ ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
+ fi
+}