aboutsummaryrefslogtreecommitdiffstats
path: root/devel/cvs2cl/Makefile
blob: 4dfa70025c16891b7c60d612955259716717bcc3 (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: knu@FreeBSD.org
# $FreeBSD$

PORTNAME=   cvs2cl
PORTVERSION=    2.73
CATEGORIES= devel
MASTER_SITES=   http://www.red-bean.com/cvs2cl/ \
        http://www.sysfault.org/freebsd/${DIST_SUBDIR}/
DISTNAME=   ${PORTNAME}
EXTRACT_SUFX=   .pl
DIST_SUBDIR=    ${PORTNAME}/${PORTVERSION}
EXTRACT_ONLY=   # none

MAINTAINER= mva@FreeBSD.org
COMMENT=    CVS-log-message-to-ChangeLog conversion script

LICENSE=    GPLv2

USES=       perl5

NO_WRKSUBDIR=   yes
NO_BUILD=   yes
PLIST_FILES=    bin/${PORTNAME} man/man1/${PORTNAME}.1.gz

do-extract:
    @${MKDIR} ${WRKSRC}
    @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC}/${PORTNAME}

post-patch:
    @${REINPLACE_CMD} -e "s|exec perl -w -x|exec ${PERL} -w -x|" \
        -e "s|#!perl -w|#!${PERL} -w|" ${WRKSRC}/${PORTNAME}

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.if !defined(NO_INSTALL_MANPAGES)
    @pod2man ${WRKSRC}/${PORTNAME} > ${WRKSRC}/${PORTNAME}.1
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
.endif

.include <bsd.port.mk>