aboutsummaryrefslogtreecommitdiffstats
path: root/www/twiki/Makefile
blob: 788bb3aa4e4475b7458beb67a8c7126462aebf9c (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
41
42
43
44
45
46
47
48
# Created by: Justin Hawkins <justin@hawkins.id.au>
# $FreeBSD$

PORTNAME=   twiki
PORTVERSION=    6.0.2
PORTEPOCH=  2
CATEGORIES= www
MASTER_SITES=   SF/${PORTNAME}/TWiki%20for%20all%20Platforms/${DISTNAME} \
        http://twiki.org/p/pub/Codev/Release/
DISTNAME=   TWiki-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Flexible, powerful, and easy to use enterprise wiki

RUN_DEPENDS=    p5-Archive-Zip>=0:archivers/p5-Archive-Zip \
        p5-Algorithm-Diff>=0:devel/p5-Algorithm-Diff \
        p5-Error>=0:lang/p5-Error \
        p5-Text-Diff>=0:textproc/p5-Text-Diff \
        p5-CGI-Session>=0:www/p5-CGI-Session \
        p5-Digest-SHA1>=0:security/p5-Digest-SHA1 \
        p5-Locale-Maketext-Lexicon>=0:devel/p5-Locale-Maketext-Lexicon \
        p5-URI>=0:net/p5-URI \
        p5-HTML-Parser>=0:www/p5-HTML-Parser \
        p5-libwww>=0:www/p5-libwww \
        twiki-TWikiUserMappingContrib>=0:www/twiki-TWikiUserMappingContrib

USES=       perl5 tar:tgz
WRKSRC=     ${WRKDIR}/twiki

USES+=      cpe

post-extract:
    @${RM} -r ${WRKSRC}/lib/CPAN
    @${CAT} ${.CURDIR}/../twiki-*/pkg-plist |\
        ${SED} -e 's|%%TWDIR%%|${WRKSRC}|;/^@/d' |\
        ${XARGS} ${RM}
    @${FIND} ${WRKSRC} -name \*,v | while read f; do\
        [ -e $${f%%,v} ] || ${RM} $$f; done
    @${FIND} ${WRKSRC} -type d -empty -delete

post-patch:
    ${SED} -i "" -e "s|/home/httpd/twiki|${WWWDIR}|g" \
        ${WRKSRC}/lib/TWiki.spec \
        ${WRKSRC}/misc/twiki_httpd_conf.txt
    ${FIND} ${WRKSRC} -name \*.orig -delete

.include "${.CURDIR}/bsd.twiki.mk"
.include <bsd.port.mk>