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

PORTNAME=   hub
PORTVERSION=    1.10.6
CATEGORIES= devel

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

USE_GITHUB= yes
GH_ACCOUNT= github
GH_TAGNAME= v${DISTVERSION}
GH_COMMIT=  5b43748

USE_RUBY=   yes
USE_RAKE=   yes

PLIST_FILES=    bin/hub \
        etc/bash_completion.d/hub \
        share/zsh/site-functions/_hub
PLIST_DIRSTRY=  etc/bash_completion.d \
        share/zsh/site-functions share/zsh
MAN1=       hub.1

NO_STAGE=   yes
do-build:
    @cd ${WRKSRC} && ${RAKE_BIN} standalone

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/hub ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/man/hub.1 ${MAN1PREFIX}/man/man1

post-install:
    ${MKDIR} ${PREFIX}/etc/bash_completion.d
    ${INSTALL_DATA} ${WRKSRC}/etc/hub.bash_completion.sh ${PREFIX}/etc/bash_completion.d/hub
    ${MKDIR} ${PREFIX}/share/zsh/site-functions
    ${INSTALL_DATA} ${WRKSRC}/etc/hub.zsh_completion ${PREFIX}/share/zsh/site-functions/_hub

.include <bsd.port.mk>