aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/svn2cl/Makefile
blob: bd8dbb6fc7ede130b03856af987862d3347ca9b1 (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
# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$

PORTNAME=   svn2cl
PORTVERSION=    0.14
CATEGORIES= textproc
MASTER_SITES=   http://arthurdejong.org/svn2cl/

MAINTAINER= danilo@FreeBSD.org
COMMENT=    Subversion ChangeLog generator

RUN_DEPENDS=    xsltproc:textproc/libxslt \
        svn:devel/subversion

NO_BUILD=   yes
PORTDOCS=   ChangeLog NEWS README TODO
DATAFILES=  authors.xml svn2cl.xsl svn2html.css svn2html.xsl

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|XSL="$$dir|XSL="${DATADIR}|' ${WRKSRC}/${PORTNAME}.sh

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    ${INSTALL_MAN} ${WRKSRC}/svn2cl.1 ${STAGEDIR}${MANPREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${DATADIR}
.for i in ${DATAFILES}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DATADIR}
.endfor
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>