blob: 29a6151df47255df0f38161af64cfc27a0616d1b (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Created by: Henrik Brix Andersen <henrik@brixandersen.dk>
# $FreeBSD$
PORTNAME= ikiwiki
PORTVERSION= 3.20150614
CATEGORIES= www
MASTER_SITES= DEBIAN_POOL \
LOCAL/mat/${PORTNAME}
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= mat@FreeBSD.org
COMMENT= Wiki compiler
LICENSE= GPLv2
BUILD_DEPENDS= p5-HTML-Parser>=0:www/p5-HTML-Parser \
p5-Locale-gettext>=0:devel/p5-Locale-gettext \
p5-CGI-FormBuilder>=0:www/p5-CGI-FormBuilder \
p5-CGI-Session>=0:www/p5-CGI-Session \
p5-TimeDate>=0:devel/p5-TimeDate \
p5-HTML-Scrubber>=0:www/p5-HTML-Scrubber \
p5-HTML-Template>=0:www/p5-HTML-Template \
p5-Mail-Sendmail>=0:mail/p5-Mail-Sendmail \
p5-Text-Markdown>=0:textproc/p5-Text-Markdown \
p5-URI>=0:net/p5-URI \
p5-XML-Simple>=0:textproc/p5-XML-Simple \
p5-YAML>=0:textproc/p5-YAML \
p5-YAML-LibYAML>=0:textproc/p5-YAML-LibYAML
RUN_DEPENDS:= ${BUILD_DEPENDS} \
p5-File-MimeInfo>=0:devel/p5-File-MimeInfo \
p5-RPC-XML>=0:net/p5-RPC-XML \
p5-XML-Feed>=0:textproc/p5-XML-Feed \
p5-Authen-Passphrase>=0:security/p5-Authen-Passphrase
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= gettext perl5 gmake cpe
USE_PERL5= configure
CONFIGURE_ARGS= PERL=${PERL} FULLPERL=${PERL}
MAKE_ENV= SYSCONFDIR=${ETCDIR} \
W3M_CGI_BIN=${PREFIX}/libexec/w3m/cgi-bin
OPTIONS_DEFINE= PO4A SEARCH W3M DOCS EXAMPLES MULTI
OPTIONS_DEFAULT= PO4A SEARCH MULTI
OPTIONS_SUB=
PO4A_DESC= Install translated underlays
SEARCH_DESC= Install search backend
W3M_DESC= Install w3m CGI wrapper
MULTI_DESC= Install Text::MultiMarkdown
PO4A_RUN_DEPENDS= po4a>=0.39:textproc/po4a
PO4A_BUILD_DEPENDS= po4a>=0.39:textproc/po4a
SEARCH_RUN_DEPENDS= p5-Digest-SHA1>=0:security/p5-Digest-SHA1 \
p5-Search-Xapian>=0:databases/p5-Search-Xapian \
${LOCALBASE}/www/xapian-omega/cgi-bin/omega:www/xapian-omega
MULTI_RUN_DEPENDS= p5-Text-MultiMarkdown>=0:textproc/p5-Text-MultiMarkdown
PORTDOCS= CHANGELOG NEWS README
PORTEXAMPLES= *
post-patch:
@${REINPLACE_CMD} -i '' \
-e "s|/usr/bin/markdown|${LOCALBASE}/bin/markdown|" \
${WRKSRC}/IkiWiki/Plugin/mdwn.pm
@${REINPLACE_CMD} -i '' \
-e "s|/etc/ikiwiki|${ETCDIR}|" \
${WRKSRC}/auto.setup ${WRKSRC}/auto-blog.setup \
${WRKSRC}/doc/ikiwiki-mass-rebuild.mdwn \
${WRKSRC}/doc/ikiwiki-update-wikilist.mdwn
@${REINPLACE_CMD} -i '' \
-e 's|$$(PREFIX)/share/man|$$(PREFIX)/man|' \
-e 's|share/ikiwiki/examples|${EXAMPLESDIR_REL}|' \
-e 's/\.\/pm_filter/$$(PERL) &/' \
${WRKSRC}/Makefile.PL
@${REINPLACE_CMD} -i '' \
-e "s|share/ikiwiki/examples|${EXAMPLESDIR_REL}|" \
${WRKSRC}/IkiWiki/Setup/Automator.pm
@${REINPLACE_CMD} -i '' \
-e "s|/usr/lib/cgi-bin/omega/omega|${LOCALBASE}/www/xapian-omega/cgi-bin/omega|g" \
${WRKSRC}/IkiWiki/Plugin/search.pm
@${REINPLACE_CMD} -i '' \
-e "s|/etc/highlight|${LOCALBASE}/etc/highlight|" \
-e "s|/usr/share/highlight|${LOCALBASE}/share/highlight|" \
${WRKSRC}/IkiWiki/Plugin/highlight.pm
post-install:
for i in ${STAGEDIR}${ETCDIR}/*; do ${MV} $$i $$i.sample; done
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/ikiwiki.setup ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/wikilist ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|