7e1a93b1d4
* remove: New plugin that adds the ability to remove pages via the web. (Sponsored by The TOVA Company.) * rename: New plugin that adds the ability to rename pages via the web. (Sponsored by The TOVA Company.) (This one's for you, Kyle.) * All rcs backends need to implement rcs_remove, rcs_commitstaged, and rcs_rename. (Done for svn, git). * This version adds renamepage hooks, which can be used to modify page content, including links, during renames. * prefix_directives enabled in doc wiki, all preprocessor directives converted. (Simon McVittie) * editpage: Don't show attachments link when attachments are disabled. * tag: Allow tagbase to be overridden by starting a tag with "./" or "/". (Simon McVittie) * Really fix bug with links to pages with names containing colons. Previous fix mised a few cases. * Avoid troublesome abs_path calls in wrapper setup. * Add allow_symlinks_before_srcdir config setting that can be used to avoid a security check that is a good safe default, but problimatic overkill in some situations. * Don't allow uploading an attachment with the same name as an existing page, to avoid confusion. * Split out error messages from editpage.tmpl into several separate templates. * attachment: Do not escape _ when determining attachment filenames. * Rebuild pages that change their type. (Gabriel McManus) * monotone: Add support for rename, delete, and also diff. (William Uther) * toggle: Fix incompatability between javascript and webkit. * bzr: Add support for rename and delete. (Jelmer Vernooij) * attachment: Use relative paths when inserting links. * toggle: Fix for when html got tidied. Closes: #492529 (Enrico Zini) * cutpaste: New plugin by Enrico Zini
101 lines
3.4 KiB
Makefile
101 lines
3.4 KiB
Makefile
# $NetBSD: Makefile,v 1.16 2008/07/29 05:04:24 schmonz Exp $
|
|
#
|
|
|
|
DISTNAME= ikiwiki_2.55
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
|
CATEGORIES= www textproc
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/i/ikiwiki/}
|
|
|
|
MAINTAINER= reed@NetBSD.org
|
|
HOMEPAGE= http://ikiwiki.info/
|
|
COMMENT= Wiki compiler
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.ikiwiki
|
|
PKG_SUPPORTED_OPTIONS= amazon_s3 imagemagick svn w3m
|
|
PKG_SUGGESTED_OPTIONS= # none on by default
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
# http://ikiwiki.info/install/index.html
|
|
# needed dependencies:
|
|
DEPENDS+= p5-Text-Markdown-[0-9]*:../../textproc/p5-Text-Markdown
|
|
DEPENDS+= p5-URI-[0-9]*:../../www/p5-URI
|
|
DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser
|
|
DEPENDS+= p5-HTML-Template-[0-9]*:../../www/p5-HTML-Template
|
|
# used if available:
|
|
DEPENDS+= p5-CGI-Session-[0-9]*:../../www/p5-CGI-Session
|
|
DEPENDS+= p5-CGI-FormBuilder>=3.05:../../www/p5-CGI-FormBuilder
|
|
DEPENDS+= p5-Mail-Sendmail-[0-9]*:../../mail/p5-Mail-Sendmail
|
|
DEPENDS+= p5-Time-Duration-[0-9]*:../../time/p5-Time-Duration
|
|
DEPENDS+= p5-TimeDate-[0-9]*:../../time/p5-TimeDate
|
|
DEPENDS+= p5-HTML-Scrubber>=0.08:../../www/p5-HTML-Scrubber
|
|
DEPENDS+= p5-RPC-XML-[0-9]*:../../net/p5-RPC-XML
|
|
DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple
|
|
DEPENDS+= p5-XML-Feed-[0-9]*:../../textproc/p5-XML-Feed
|
|
DEPENDS+= p5-File-MimeInfo-[0-9]*:../../devel/p5-File-MimeInfo
|
|
DEPENDS+= p5-gettext-[0-9]*:../../devel/p5-gettext
|
|
|
|
# for amazon_s3 plugin which injects wiki pages into Amazon S3
|
|
# allowing ikiwiki to be used without a dedicated web server.
|
|
.if !empty(PKG_OPTIONS:Mamazon_s3)
|
|
DEPENDS+= p5-Net-Amazon-S3-[0-9]*:../../net/p5-Net-Amazon-S3
|
|
.endif
|
|
|
|
# for img plugin
|
|
.if !empty(PKG_OPTIONS:Mimagemagick)
|
|
# the plugin uses the ImageMagick tools via PerlMagic
|
|
DEPENDS+= p5-PerlMagick-[0-9]*:../../graphics/p5-PerlMagick
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Msvn)
|
|
DEPENDS+= subversion-base-[0-9]*:../../devel/subversion-base
|
|
.endif
|
|
|
|
PLIST_VARS+= w3m
|
|
.if !empty(PKG_OPTIONS:Mw3m)
|
|
DEPENDS+= w3m-[0-9]*:../../www/w3m
|
|
PLIST.w3m= yes
|
|
SUBST_SED.makefile+= -e 's,/lib/w3m/cgi-bin,/libexec/w3m/cgi-bin,'
|
|
INSTALLATION_DIRS+= share/doc/ikiwiki/w3mmode
|
|
.else
|
|
SUBST_SED.makefile+= -e 's,^\(.*install .*/lib/w3m/cgi-bin\),\#\1,'
|
|
.endif
|
|
|
|
INSTALLATION_DIRS+= share/doc/ikiwiki
|
|
WRKSRC= ${WRKDIR}/ikiwiki
|
|
PERL5_PACKLIST= auto/IkiWiki/.packlist
|
|
USE_LANGUAGES= # none
|
|
USE_TOOLS+= gmake perl:run xgettext
|
|
|
|
# TODO: check these
|
|
REPLACE_PERL+= IkiWiki.pm ikiwiki-w3m.cgi mdwn2man pm_filter
|
|
REPLACE_PERL+= ikiwiki.in ikiwiki-mass-rebuild ikiwiki-update-wikilist
|
|
REPLACE_PERL+= ikiwiki-transition
|
|
REPLACE_PERL+= t/*.t IkiWiki/*.pm IkiWiki/*/*.pm
|
|
REPLACE_PERL+= doc/ikiwiki.setup doc/w3mmode/ikiwiki.setup
|
|
#REPLACE_PERL+= plugins/externaldemo # not installed anymore
|
|
|
|
# not installed anymore
|
|
#REPLACE_PYTHON+= plugins/rst
|
|
# TODO: add an rst option
|
|
# rst plugin (reStructuredText) needs the python-docutils module
|
|
#CHECK_INTERPRETER_SKIP+= lib/ikiwiki/plugins/rst
|
|
|
|
SUBST_CLASSES+= makefile
|
|
SUBST_STAGE.makefile= post-patch
|
|
SUBST_FILES.makefile= Makefile.PL
|
|
SUBST_SED.makefile+= -e 's,share/man/man,${PKGMANDIR}/man,g'
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/html/ikiwiki.setup \
|
|
${PREFIX}/share/doc/ikiwiki/
|
|
.if !empty(PKG_OPTIONS:Mw3m)
|
|
${INSTALL_DATA} ${WRKSRC}/html/w3mmode.html \
|
|
${PREFIX}/share/doc/ikiwiki/
|
|
${INSTALL_DATA} ${WRKSRC}/doc/w3mmode/ikiwiki.setup \
|
|
${PREFIX}/share/doc/ikiwiki/w3mmode/ikiwiki.setup
|
|
.endif
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|