diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2016-12-20 01:58:57 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2016-12-20 01:58:57 +0100 |
commit | 14f33c6397807b7840db72e5f16f9860a79f87ff (patch) | |
tree | 78c4a202ac830e1ef23ed5c194bdbc5fc8bea90e /www-apps | |
parent | dev-ruby/oauth: Add ruby23 (diff) | |
download | gentoo-14f33c6397807b7840db72e5f16f9860a79f87ff.tar.gz gentoo-14f33c6397807b7840db72e5f16f9860a79f87ff.tar.bz2 gentoo-14f33c6397807b7840db72e5f16f9860a79f87ff.zip |
www-apps/gitea: Initial version
Package-Manager: portage-2.3.3
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/gitea/Manifest | 1 | ||||
-rw-r--r-- | www-apps/gitea/gitea-0.9.97_p20161219.ebuild | 60 | ||||
-rw-r--r-- | www-apps/gitea/metadata.xml | 11 |
3 files changed, 72 insertions, 0 deletions
diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest new file mode 100644 index 000000000000..96821ece8b22 --- /dev/null +++ b/www-apps/gitea/Manifest @@ -0,0 +1 @@ +DIST gitea-0.9.97_p20161219.tar.gz 14260080 SHA256 2166e85478ac1add4d5d1913cc986824cd11be92b738e91185ebdf93239e897e SHA512 046ee631db3b417141a607087bd57d0ec8eb6739510bb04e7d13c3b8254159e4fa4dfb71257b2435edecbc38d786f6d7021cfdcd4faa8de16e2b2469fedddcef WHIRLPOOL 7148c99dcec49ecc040f8d5dbfe2fd0feb368a8200842bea5b2d3e3b5283d16754a9c21994f001e9520a047990061942b2f4b69d9f77b909f56529e9699d0ff1 diff --git a/www-apps/gitea/gitea-0.9.97_p20161219.ebuild b/www-apps/gitea/gitea-0.9.97_p20161219.ebuild new file mode 100644 index 000000000000..bba08a9f5e83 --- /dev/null +++ b/www-apps/gitea/gitea-0.9.97_p20161219.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit user golang-build golang-vcs-snapshot + +EGO_PN="code.gitea.io/gitea/..." +EGIT_COMMIT="8559d6f267324241496b8611bc8e6f76efe869b7" +ARCHIVE_URI="https://github.com/go-gitea/gitea/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="A painless self-hosted Git service, written in Go, forked from gogs" +HOMEPAGE="https://github.com/go-gitea/gitea" +SRC_URI="${ARCHIVE_URI}" + +LICENSE="MIT" +SLOT="0/${PVR}" +IUSE="" + +DEPEND="dev-go/go-bindata" +RDEPEND="dev-vcs/git" + +pkg_setup() { + enewgroup gitea + enewuser gitea -1 /bin/bash /var/lib/gitea gitea +} + +src_prepare() { + default + local GITEA_PREFIX=${EPREFIX}/var/lib/gitea + sed -i -e "s/git rev-parse --short HEAD/echo ${EGIT_COMMIT:0:7}/"\ + -e "s/^VERSION =*/VERSION = ${PV}/"\ + -e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN%/*}/Makefile || die + sed -i -e "s#RUN_USER = git#RUN_USER = gitea#"\ + -e "s#^STATIC_ROOT_PATH =#STATIC_ROOT_PATH = ${EPREFIX}/usr/share/themes/gitea/default#"\ + -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${GITEA_PREFIX}/data#"\ + -e "s#^PATH = data/gitea.db#PATH = ${GITEA_PREFIX}/data/gitea.db#"\ + -e "s#^PROVIDER_CONFIG = data/sessions#PROVIDER_CONFIG = ${GITEA_PREFIX}/data/sessions#"\ + -e "s#^AVATAR_UPLOAD_PATH = data/avatars#AVATAR_UPLOAD_PATH = ${GITEA_PREFIX}/data/avatars#"\ + -e "s#^TEMP_PATH = data/tmp/uploads#TEMP_PATH = ${GITEA_PREFIX}/data/tmp/uploads#"\ + -e "s#^PATH = data/attachements#PATH = ${GITEA_PREFIX}/data/attachements#"\ + -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#" src/${EGO_PN%/*}/conf/app.ini || die +} + +src_compile() { + TAGS="cert pam sqlite" LDFLAGS="" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN%/*} generate build || die +} + +src_install() { + pushd src/${EGO_PN%/*} || die + dobin gitea + insinto /usr/share/gitea + doins -r conf + insinto /usr/share/themes/gitea/default + doins -r public templates + popd || die + keepdir /var/log/gitea /var/lib/gitea/data + fowners gitea:gitea /var/log/gitea /var/lib/gitea +} diff --git a/www-apps/gitea/metadata.xml b/www-apps/gitea/metadata.xml new file mode 100644 index 000000000000..0cb7df9d1ee6 --- /dev/null +++ b/www-apps/gitea/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mrueg@gentoo.org</email> + <name>Manuel Rüger</name> + </maintainer> + <upstream> + <remote-id type="github">go-gitea/gitea</remote-id> + </upstream> +</pkgmetadata> |