aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/diff-so-fancy/Makefile
blob: 0a4da31666b56128f3a774f2bd361ae2cb7258c0 (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
# $FreeBSD$

PORTNAME=   diff-so-fancy
PORTVERSION=    1.2.6
DISTVERSIONPREFIX=  v
CATEGORIES= textproc

MAINTAINER= rakuco@FreeBSD.org
COMMENT=    Fancier diff output formatter

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/LICENSE

USES=       perl5 shebangfix
USE_GITHUB= yes
USE_PERL5=  run

GH_ACCOUNT= so-fancy
NO_ARCH=    yes
NO_BUILD=   yes
NO_CONFIGURE=   yes
SHEBANG_FILES=  ${WRKSRC}/diff-so-fancy
SUB_FILES=  pkg-message

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/bin
    ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/diff-so-fancy ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/lib/DiffHighlight.pm \
        ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}
    ${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/history.md \
        ${WRKSRC}/pro-tips.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>