aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hub/Makefile
blob: bd4146d65b68ad1e9348580f8f08420bd197de6f (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
# Created by: Simon Olofsson <simon@olofsson.de>
# $FreeBSD$

PORTNAME=   hub
PORTVERSION=    2.2.9
DISTVERSIONPREFIX=v
CATEGORIES= devel

MAINTAINER= koukopoulos@gmail.com
COMMENT=    Introduces git to GitHub

LICENSE=    MIT

BUILD_DEPENDS=  go:lang/go \
        bash:shells/bash

USE_GITHUB= yes
GH_ACCOUNT= github

PLIST_FILES=    bin/hub \
        etc/bash_completion.d/hub \
        share/zsh/site-functions/_hub \
        man/man1/hub.1.gz
do-build:
    @cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/bash script/build

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/hub ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/man/hub.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
    ${INSTALL_DATA} ${WRKSRC}/etc/hub.bash_completion.sh ${STAGEDIR}${PREFIX}/etc/bash_completion.d/hub
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
    ${INSTALL_DATA} ${WRKSRC}/etc/hub.zsh_completion ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_hub

.include <bsd.port.mk>