2007-04-23 11:00:59 +02:00
|
|
|
# New ports collection makefile for: ikiwiki
|
|
|
|
# Date created: 21 Apr 2007
|
|
|
|
# Whom: Henrik Brix Andersen <henrik@brixandersen.dk>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ikiwiki
|
2008-02-12 09:51:59 +01:00
|
|
|
PORTVERSION= 2.32.3
|
2007-04-23 11:00:59 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
2007-11-28 08:56:22 +01:00
|
|
|
MAINTAINER= brix@FreeBSD.org
|
2007-04-23 11:00:59 +02:00
|
|
|
COMMENT= A wiki compiler
|
|
|
|
|
2007-08-27 18:54:22 +02:00
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/Text/Markdown.pm:${PORTSDIR}/textproc/p5-Text-Markdown \
|
2007-04-23 11:00:59 +02:00
|
|
|
${SITE_PERL}/HTML/Scrubber.pm:${PORTSDIR}/www/p5-HTML-Scrubber \
|
|
|
|
${SITE_PERL}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template \
|
|
|
|
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS} \
|
|
|
|
${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 \
|
|
|
|
${SITE_PERL}/File/MimeInfo.pm:${PORTSDIR}/devel/p5-File-MimeInfo \
|
|
|
|
${SITE_PERL}/Mail/Sendmail.pm:${PORTSDIR}/mail/p5-Mail-Sendmail \
|
|
|
|
${SITE_PERL}/RPC/XML.pm:${PORTSDIR}/net/p5-RPC-XML \
|
|
|
|
${SITE_PERL}/Time/Duration.pm:${PORTSDIR}/devel/p5-Time-Duration \
|
|
|
|
${SITE_PERL}/XML/Feed.pm:${PORTSDIR}/textproc/p5-XML-Feed \
|
|
|
|
${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
|
|
|
|
OPTIONS= W3M "Install w3m CGI wrapper" off
|
|
|
|
|
2007-12-13 18:02:43 +01:00
|
|
|
MAN1= ikiwiki.1 ikiwiki-makerepo.1 ikiwiki-update-wikilist.1
|
2007-04-23 11:00:59 +02:00
|
|
|
MAN8= ikiwiki-mass-rebuild.8
|
|
|
|
PORTDOCS= CHANGELOG NEWS README
|
2008-02-10 00:10:39 +01:00
|
|
|
PORTEXAMPLES= ikiwiki.setup
|
2007-04-23 11:00:59 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_W3M)
|
2007-09-23 11:16:56 +02:00
|
|
|
PLIST_SUB= W3M=""
|
2007-04-23 11:00:59 +02:00
|
|
|
.else
|
2007-09-23 11:16:56 +02:00
|
|
|
PLIST_SUB= W3M="@comment "
|
2007-04-23 11:00:59 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|/usr/bin/markdown|${LOCALBASE}/bin/markdown|" \
|
|
|
|
${WRKSRC}/IkiWiki/Plugin/mdwn.pm
|
2007-11-28 08:56:22 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|/etc/ikiwiki/wikilist|${LOCALBASE}/etc/ikiwiki/wikilist|" \
|
2007-12-13 18:02:43 +01:00
|
|
|
${WRKSRC}/ikiwiki-mass-rebuild \
|
|
|
|
${WRKSRC}/doc/ikiwiki-mass-rebuild.mdwn \
|
|
|
|
${WRKSRC}/ikiwiki-update-wikilist \
|
|
|
|
${WRKSRC}/doc/ikiwiki-update-wikilist.mdwn
|
2007-04-23 11:00:59 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|$$(PREFIX)/share/man|$$(PREFIX)/man|' \
|
|
|
|
-e 's|$$(PREFIX)/lib/w3m|$$(PREFIX)/libexec/w3m|' \
|
|
|
|
${WRKSRC}/Makefile.PL
|
|
|
|
.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-10 00:10:39 +01:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S@^@${WRKSRC}/doc/@} ${EXAMPLESDIR}
|
2007-04-23 11:00:59 +02:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|