2015-09-14 20:43:42 +02:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-10-02 16:58:12 +02:00
|
|
|
# $Id$
|
2015-09-14 20:43:42 +02:00
|
|
|
|
|
|
|
EAPI="5"
|
|
|
|
|
|
|
|
inherit eutils user
|
|
|
|
|
2015-12-29 23:54:55 +01:00
|
|
|
DESCRIPTION="This is the new backend for Git-over-HTTP communication needed for GitLab 8"
|
2015-09-14 20:43:42 +02:00
|
|
|
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-git-http-server"
|
|
|
|
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=${PV} -> ${P}.tar.bz2"
|
2015-09-26 13:57:01 +02:00
|
|
|
S="${WORKDIR}/${P}-c846662dced60bb1eef5cc4f59e4e71cc8aa5c5d"
|
2015-09-14 20:43:42 +02:00
|
|
|
RESTRICT="mirror"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
|
2015-10-02 10:49:51 +02:00
|
|
|
DEPEND=">=dev-lang/go-1.5"
|
2015-09-14 20:43:42 +02:00
|
|
|
|
|
|
|
src_prepare() {
|
2015-09-28 13:58:56 +02:00
|
|
|
epatch "${FILESDIR}/fix-Makefile-${PV}.patch"
|
2015-09-14 20:43:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
local dest=/usr/bin
|
|
|
|
|
|
|
|
diropts -m755
|
|
|
|
dodir ${dest}
|
|
|
|
|
|
|
|
exeinto ${dest}
|
|
|
|
doexe "${S}/${PN}"
|
|
|
|
|
|
|
|
## RC script ##
|
|
|
|
newinitd "${FILESDIR}/gitlab-git-http-server.init" "${PN}"
|
|
|
|
newconfd "${FILESDIR}/gitlab-git-http-server.conf" "${PN}"
|
|
|
|
}
|