added ebuilds for versions 0.8.0 and 0.8.1, as required by www-apps/gitlab-ce-8.12.0_rc2 Package-Manager: portage-2.2.28
40 lines
938 B
Bash
40 lines
938 B
Bash
# Copyright 1999-2016 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI="6"
|
|
|
|
inherit eutils user
|
|
|
|
DESCRIPTION="This is the new backend for Git-over-HTTP communication needed for GitLab >= 8.4"
|
|
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-workhorse"
|
|
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=v${PV} -> ${P}.tar.bz2"
|
|
|
|
MY_GIT_COMMIT="b5990109b1df8fee925f8a3b7b76aec010407422"
|
|
S="${WORKDIR}/${PN}-v${PV}-${MY_GIT_COMMIT}"
|
|
RESTRICT="mirror"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
|
|
DEPEND=">=dev-lang/go-1.5.1"
|
|
|
|
PATCHES=( "${FILESDIR}/fix-Makefile-${PV}.patch" )
|
|
|
|
src_install() {
|
|
local dest=/usr/bin
|
|
|
|
diropts -m755
|
|
dodir ${dest}
|
|
|
|
exeinto ${dest}
|
|
for f in "${PN}" gitlab-zip-cat gitlab-zip-metadata ; do
|
|
doexe "${S}/${f}"
|
|
done
|
|
|
|
## RC script ##
|
|
newinitd "${FILESDIR}/${PN}.init" "${PN}"
|
|
newconfd "${FILESDIR}/${PN}.conf" "${PN}"
|
|
}
|