2007-04-23 09:00:59 +00:00
|
|
|
# New ports collection makefile for: ikiwiki
|
|
|
|
# Date created: 21 Apr 2007
|
|
|
|
# Whom: Henrik Brix Andersen <henrik@brixandersen.dk>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ikiwiki
|
2011-06-15 13:07:40 +00:00
|
|
|
PORTVERSION= 3.20110608
|
2012-02-07 01:30:50 +00:00
|
|
|
PORTREVISION= 1
|
2007-04-23 09:00:59 +00:00
|
|
|
CATEGORIES= www
|
2008-06-01 21:13:54 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL} \
|
|
|
|
http://kitenet.net/~joey/debian/unstable/
|
2007-04-23 09:00:59 +00:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
2007-11-28 07:56:22 +00:00
|
|
|
MAINTAINER= brix@FreeBSD.org
|
2007-04-23 09:00:59 +00:00
|
|
|
COMMENT= A wiki compiler
|
|
|
|
|
2012-06-29 10:29:24 +00:00
|
|
|
BUILD_DEPENDS= p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \
|
|
|
|
p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext \
|
|
|
|
p5-CGI-FormBuilder>=0:${PORTSDIR}/www/p5-CGI-FormBuilder \
|
|
|
|
p5-CGI-Session>=0:${PORTSDIR}/www/p5-CGI-Session \
|
|
|
|
p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate \
|
|
|
|
p5-HTML-Scrubber>=0:${PORTSDIR}/www/p5-HTML-Scrubber \
|
|
|
|
p5-HTML-Template>=0:${PORTSDIR}/www/p5-HTML-Template \
|
|
|
|
p5-Mail-Sendmail>=0:${PORTSDIR}/mail/p5-Mail-Sendmail \
|
|
|
|
p5-Text-Markdown>=0:${PORTSDIR}/textproc/p5-Text-Markdown \
|
|
|
|
p5-URI>=0:${PORTSDIR}/net/p5-URI \
|
|
|
|
p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple \
|
|
|
|
p5-YAML>=0:${PORTSDIR}/textproc/p5-YAML
|
2012-01-21 17:40:15 +00:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS} \
|
2012-06-29 10:29:24 +00:00
|
|
|
p5-File-MimeInfo>=0:${PORTSDIR}/devel/p5-File-MimeInfo \
|
|
|
|
p5-RPC-XML>=0:${PORTSDIR}/net/p5-RPC-XML \
|
|
|
|
p5-XML-Feed>=0:${PORTSDIR}/textproc/p5-XML-Feed \
|
|
|
|
p5-Authen-Passphrase>=0:${PORTSDIR}/security/p5-Authen-Passphrase
|
2007-04-23 09:00:59 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2010-07-05 20:40:07 +00:00
|
|
|
LICENSE= GPLv2
|
2007-04-23 09:00:59 +00:00
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2013-04-24 18:10:30 +00:00
|
|
|
USES= gettext
|
2007-04-23 09:00:59 +00:00
|
|
|
|
2011-03-01 21:29:11 +00:00
|
|
|
OPTIONS= PO4A "Install translated underlays" On \
|
|
|
|
SEARCH "Install search backend" On \
|
2008-07-05 09:27:33 +00:00
|
|
|
W3M "Install w3m CGI wrapper" Off
|
2007-04-23 09:00:59 +00:00
|
|
|
|
2009-11-14 14:10:44 +00:00
|
|
|
MAN1= ikiwiki.1 ikiwiki-calendar.1 ikiwiki-makerepo.1 ikiwiki-transition.1 ikiwiki-update-wikilist.1
|
2007-04-23 09:00:59 +00:00
|
|
|
MAN8= ikiwiki-mass-rebuild.8
|
|
|
|
PORTDOCS= CHANGELOG NEWS README
|
2009-03-25 18:34:14 +00:00
|
|
|
PORTEXAMPLES= *
|
2007-04-23 09:00:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-03-01 21:29:11 +00:00
|
|
|
.if defined(WITH_PO4A)
|
|
|
|
PLIST_SUB+= PO4A=""
|
|
|
|
RUN_DEPENDS+= po4a>=0.39:${PORTSDIR}/textproc/po4a
|
|
|
|
BUILD_DEPENDS+= po4a>=0.39:${PORTSDIR}/textproc/po4a
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PO4A="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-07-05 09:27:33 +00:00
|
|
|
.if defined(WITH_SEARCH)
|
2012-06-29 10:29:24 +00:00
|
|
|
RUN_DEPENDS+= p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
|
|
|
|
p5-Search-Xapian>=0:${PORTSDIR}/databases/p5-Search-Xapian \
|
2008-07-05 09:27:33 +00:00
|
|
|
${LOCALBASE}/www/xapian-omega/cgi-bin/omega:${PORTSDIR}/www/xapian-omega
|
|
|
|
.endif
|
|
|
|
|
2007-04-23 09:00:59 +00:00
|
|
|
.if defined(WITH_W3M)
|
2009-01-18 20:26:03 +00:00
|
|
|
MAKE_ENV+= W3M_CGI_BIN=${PREFIX}/libexec/w3m/cgi-bin
|
2011-03-01 21:29:11 +00:00
|
|
|
PLIST_SUB+= W3M=""
|
2007-04-23 09:00:59 +00:00
|
|
|
.else
|
2011-03-01 21:29:11 +00:00
|
|
|
PLIST_SUB+= W3M="@comment "
|
2007-04-23 09:00:59 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2011-03-01 21:29:11 +00:00
|
|
|
@${GREP} -rl '^#!/usr/bin/perl' ${WRKSRC} | \
|
|
|
|
${XARGS} ${REINPLACE_CMD} -i '' \
|
|
|
|
-e "s|#!/usr/bin/perl|#!${PERL}|"
|
2009-07-14 14:59:34 +00:00
|
|
|
@${REINPLACE_CMD} -i '' \
|
|
|
|
-e "s|/usr/bin/markdown|${LOCALBASE}/bin/markdown|" \
|
2007-04-23 09:00:59 +00:00
|
|
|
${WRKSRC}/IkiWiki/Plugin/mdwn.pm
|
2009-07-14 14:59:34 +00:00
|
|
|
@${REINPLACE_CMD} -i '' \
|
|
|
|
-e "s|/etc/ikiwiki/wikilist|${PREFIX}/etc/ikiwiki/wikilist|" \
|
2007-12-13 17:02:43 +00:00
|
|
|
${WRKSRC}/ikiwiki-mass-rebuild \
|
|
|
|
${WRKSRC}/doc/ikiwiki-mass-rebuild.mdwn \
|
|
|
|
${WRKSRC}/ikiwiki-update-wikilist \
|
|
|
|
${WRKSRC}/doc/ikiwiki-update-wikilist.mdwn
|
2009-07-14 14:59:34 +00:00
|
|
|
@${REINPLACE_CMD} -i '' \
|
2007-04-23 09:00:59 +00:00
|
|
|
-e 's|$$(PREFIX)/share/man|$$(PREFIX)/man|' \
|
2008-04-06 17:02:24 +00:00
|
|
|
-e 's|-wholename|-path|' \
|
2008-09-28 21:43:32 +00:00
|
|
|
-e 's|\(-install -d $$(DESTDIR)/etc/ikiwiki\)|#\1|' \
|
|
|
|
-e 's|\(-install -m 0644 wikilist\)|#\1|' \
|
|
|
|
-e 's|\(-install -m 0644 auto.setup\)|#\1|' \
|
2009-01-20 16:23:12 +00:00
|
|
|
-e 's|\(-install -m 0644 auto-blog.setup\)|#\1|' \
|
2009-03-25 18:34:14 +00:00
|
|
|
-e 's|$$(DESTDIR)$$(PREFIX)/share/ikiwiki/examples|${EXAMPLESDIR}|' \
|
2007-04-23 09:00:59 +00:00
|
|
|
${WRKSRC}/Makefile.PL
|
2009-07-14 14:59:34 +00:00
|
|
|
@${REINPLACE_CMD} -i '' \
|
|
|
|
-e "s|share/ikiwiki/examples|share/examples/ikiwiki|" \
|
|
|
|
${WRKSRC}/IkiWiki/Setup/Automator.pm
|
|
|
|
@${REINPLACE_CMD} -i '' \
|
|
|
|
-e "s|/usr/lib/cgi-bin/omega/omega|${LOCALBASE}/www/xapian-omega/cgi-bin/omega|g" \
|
2008-08-13 19:59:24 +00:00
|
|
|
${WRKSRC}/IkiWiki/Plugin/search.pm
|
2009-07-14 14:59:34 +00:00
|
|
|
@${REINPLACE_CMD} -i '' \
|
|
|
|
-e "s|/etc/highlight|${LOCALBASE}/etc/highlight|" \
|
|
|
|
-e "s|/usr/share/highlight|${LOCALBASE}/share/highlight|" \
|
|
|
|
${WRKSRC}/IkiWiki/Plugin/highlight.pm
|
2011-03-01 21:29:11 +00:00
|
|
|
.ifndef(WITH_PO4A)
|
|
|
|
@${REINPLACE_CMD} -i '' \
|
|
|
|
-e 's|^\(TRANSLATED_UNDERLAYS=\).*|\1|' \
|
|
|
|
${WRKSRC}/po/Makefile
|
|
|
|
.endif
|
2007-04-23 09:00:59 +00:00
|
|
|
.ifndef(WITH_W3M)
|
2009-07-14 14:59:34 +00:00
|
|
|
@${REINPLACE_CMD} -i '' \
|
|
|
|
-e '/w3m/d' \
|
|
|
|
-e '/W3M/d' \
|
|
|
|
${WRKSRC}/Makefile.PL
|
2007-04-23 09:00:59 +00:00
|
|
|
.endif
|
2009-03-25 18:34:14 +00:00
|
|
|
.if defined(NOPORTEXAMPLES)
|
2009-07-14 14:59:34 +00:00
|
|
|
@${REINPLACE_CMD} -i '' \
|
2009-03-25 21:18:06 +00:00
|
|
|
-e 's|\(install -d ${EXAMPLESDIR}\)|#\1|' \
|
|
|
|
-e 's|\(cp -aL doc/examples\)|#\1|' \
|
|
|
|
-e 's|\(install -m 644 doc/examples\)|#\1|' \
|
|
|
|
${WRKSRC}/Makefile.PL
|
2009-03-25 18:34:14 +00:00
|
|
|
.endif
|
2007-04-23 09:00:59 +00:00
|
|
|
|
|
|
|
post-install:
|
2008-08-13 19:59:24 +00:00
|
|
|
${MKDIR} ${PREFIX}/etc/ikiwiki
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/auto.setup ${PREFIX}/etc/ikiwiki
|
2009-01-20 16:23:12 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/auto-blog.setup ${PREFIX}/etc/ikiwiki
|
2007-04-23 09:00:59 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
|
2008-02-09 23:10:39 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2009-03-25 18:34:14 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ikiwiki.setup ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/wikilist ${EXAMPLESDIR}
|
2007-04-23 09:00:59 +00:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|