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
|
2008-08-06 16:09:04 +00:00
|
|
|
PORTVERSION= 2.56
|
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
|
|
|
|
|
2008-04-06 17:02:24 +00:00
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext \
|
|
|
|
${SITE_PERL}/CGI/FormBuilder.pm:${PORTSDIR}/www/p5-CGI-FormBuilder \
|
|
|
|
${SITE_PERL}/CGI/Session.pm:${PORTSDIR}/www/p5-CGI-Session \
|
|
|
|
${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \
|
2007-04-23 09:00:59 +00:00
|
|
|
${SITE_PERL}/HTML/Scrubber.pm:${PORTSDIR}/www/p5-HTML-Scrubber \
|
|
|
|
${SITE_PERL}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template \
|
2008-04-06 17:02:24 +00:00
|
|
|
${SITE_PERL}/Mail/Sendmail.pm:${PORTSDIR}/mail/p5-Mail-Sendmail \
|
|
|
|
${SITE_PERL}/Text/Markdown.pm:${PORTSDIR}/textproc/p5-Text-Markdown \
|
2007-04-23 09:00:59 +00:00
|
|
|
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \
|
2008-04-06 17:02:24 +00:00
|
|
|
${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple
|
2007-04-23 09:00:59 +00:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS} \
|
|
|
|
${SITE_PERL}/File/MimeInfo.pm:${PORTSDIR}/devel/p5-File-MimeInfo \
|
|
|
|
${SITE_PERL}/RPC/XML.pm:${PORTSDIR}/net/p5-RPC-XML \
|
2008-06-01 21:13:54 +00:00
|
|
|
${SITE_PERL}/XML/Feed.pm:${PORTSDIR}/textproc/p5-XML-Feed \
|
|
|
|
${SITE_PERL}/Authen/Passphrase.pm:${PORTSDIR}/security/p5-Authen-Passphrase
|
2007-04-23 09:00:59 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
|
2008-07-05 09:27:33 +00:00
|
|
|
OPTIONS= SEARCH "Install search backend" On \
|
|
|
|
W3M "Install w3m CGI wrapper" Off
|
2007-04-23 09:00:59 +00:00
|
|
|
|
2008-03-09 21:25:10 +00:00
|
|
|
MAN1= ikiwiki.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
|
2008-02-09 23:10:39 +00:00
|
|
|
PORTEXAMPLES= ikiwiki.setup
|
2007-04-23 09:00:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-07-05 09:27:33 +00:00
|
|
|
.if defined(WITH_SEARCH)
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Search/Xapian.pm:${PORTSDIR}/databases/p5-Search-Xapian \
|
|
|
|
${LOCALBASE}/www/xapian-omega/cgi-bin/omega:${PORTSDIR}/www/xapian-omega
|
|
|
|
.endif
|
|
|
|
|
2007-04-23 09:00:59 +00:00
|
|
|
.if defined(WITH_W3M)
|
2007-09-23 09:16:56 +00:00
|
|
|
PLIST_SUB= W3M=""
|
2007-04-23 09:00:59 +00:00
|
|
|
.else
|
2007-09-23 09:16:56 +00:00
|
|
|
PLIST_SUB= W3M="@comment "
|
2007-04-23 09:00:59 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2008-07-05 09:27:33 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"s|/usr/bin/markdown|${LOCALBASE}/bin/markdown|" \
|
2007-04-23 09:00:59 +00:00
|
|
|
${WRKSRC}/IkiWiki/Plugin/mdwn.pm
|
2008-04-01 21:07:22 +00:00
|
|
|
@${RM} ${WRKSRC}/IkiWiki/Plugin/mdwn.pm.bak
|
2008-07-05 09:27:33 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"s|/etc/ikiwiki/wikilist|${LOCALBASE}/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
|
2007-04-23 09:00:59 +00:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|$$(PREFIX)/share/man|$$(PREFIX)/man|' \
|
|
|
|
-e 's|$$(PREFIX)/lib/w3m|$$(PREFIX)/libexec/w3m|' \
|
2008-04-06 17:02:24 +00:00
|
|
|
-e 's|-wholename|-path|' \
|
2007-04-23 09:00:59 +00:00
|
|
|
${WRKSRC}/Makefile.PL
|
2008-07-05 09:27:33 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"s|/usr/lib/cgi-bin/omega/omega|${LOCALBASE}/www/xapian-omega/cgi-bin/omega|" \
|
|
|
|
${WRKSRC}/doc/ikiwiki.setup
|
2007-04-23 09:00:59 +00:00
|
|
|
.ifndef(WITH_W3M)
|
|
|
|
@${REINPLACE_CMD} -e '/w3m/d' ${WRKSRC}/Makefile.PL
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.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}
|
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S@^@${WRKSRC}/doc/@} ${EXAMPLESDIR}
|
2007-04-23 09:00:59 +00:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|