aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gitaly/Makefile
blob: ba8f8f08201045409fbf82a47a7f395552fed7f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# $FreeBSD$

PORTNAME=   gitaly
DISTVERSION=    1.42.4
PORTREVISION=   0
CATEGORIES= devel

MAINTAINER= mfechner@FreeBSD.org
COMMENT=    Smart reverse proxy for GitLab

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/LICENSE

# define dependencies that are required for build and run under MY_DEPENDS
MY_DEPENDS= git>=2.21:devel/git \
        rubygem-bundler>=1.17.3:sysutils/rubygem-bundler \
        rubygem-rugged>=0.28.0:devel/rubygem-rugged \
        rubygem-github-linguist>=6.1:textproc/rubygem-github-linguist \
        rubygem-gitlab-markup>=1.7.0:textproc/rubygem-gitlab-markup \
        rubygem-activesupport5>=5.1.7:devel/rubygem-activesupport5 \
        rubygem-gitaly-proto>=1.27.0:net/rubygem-gitaly-proto \
        rubygem-rdoc>=6.0:devel/rubygem-rdoc \
        rubygem-gitlab-gollum-lib>=4.2.7.7:www/rubygem-gitlab-gollum-lib \
        rubygem-gitlab-gollum-rugged_adapter>=0.4.4.2:www/rubygem-gitlab-gollum-rugged_adapter \
        rubygem-grpc>=1.19.0:net/rubygem-grpc \
        rubygem-sentry-raven>=2.9.0:devel/rubygem-sentry-raven \
        rubygem-faraday>=0.12:www/rubygem-faraday \
        rubygem-rbtrace>0:devel/rubygem-rbtrace \
        rubygem-licensee8>=8.9.0:devel/rubygem-licensee8 \
        rubygem-google-protobuf371>=3.7.1:devel/rubygem-google-protobuf371
BUILD_DEPENDS=  gem:devel/ruby-gems \
        ${MY_DEPENDS}
RUN_DEPENDS=    ${MY_DEPENDS} \
        gitlab-shell>=6.0.4:devel/gitlab-shell

USES=       gmake go:no_targets
USE_RUBY=   yes

USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
# Find this here: https://gitlab.com/gitlab-org/gitaly/tags
GL_COMMIT=  0046cd32638921f2730e06bc7c4bbf194b8ac17d

post-patch:
    ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/config.toml.example
    ${MV} ${WRKSRC}/config.toml.example ${WRKSRC}/config.toml.sample

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${MKDIR} ${STAGEDIR}${DATADIR}/bin
    ${FIND} ${WRKSRC} -name '*.orig' -delete
    ${FIND} ${WRKSRC} -name "Gemfile.lock" -delete
    (cd ${WRKSRC}/_build/bin/ && ${COPYTREE_SHARE} .  ${STAGEDIR}${DATADIR}/bin && \
    cd ${WRKSRC} && ${COPYTREE_SHARE} config.toml.sample  ${STAGEDIR}${DATADIR}) && \
    cd ${WRKSRC}/ruby && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/ruby

.include <bsd.port.mk>