You may want to run ikiwiki-transition deduplinks my.setup after upgrading to this version of ikiwiki. This command will optimise your wiki's saved state, removing duplicate information that can slow ikiwiki down. * ikiwiki-transition: If passed a nonexistant srcdir, or one not containing .ikiwiki, abort with an error rather than creating it. * Allow underlaydir to be overridden without messing up inclusion of other underlays via add_underlay. * More friendly display of markdown, textile in edit form selector (jmtd) * Allow curly braces to be used in pagespecs, and avoid a whole class of potential security problems, by avoiding performing any string interpolation on user-supplied data when translating pagespecs. * ikiwiki-transition: Allow setup files to be passed to all subcommands that need a srcdir. * ikiwiki-transition: deduplinks was broken and threw away all metadata stored by plugins in the index. Fix this bug. * listdirectives: Avoid listing _comment directives and generally assume any directive starting with _ is likewise internal. * Re-enable python-support and add python:Depends to control file. * ikiwiki-makerepo: Avoid using abs_path, as it apparently fails on nonexistant directories with some broken perl versions. * inline: Minor optimisation. * add_link: New function, which plugins should use rather than modifying %links directly, to avoid it accumulating duplicates. * ikiwiki-transition: Add a deduplinks action, that can be used to remove duplicate links and optimise a wiki w/o rebuilding it. * external: Fix pagespec_match and pagespec_match_list. Closes: #527281
64 lines
2.4 KiB
Makefile
64 lines
2.4 KiB
Makefile
# $NetBSD: Makefile,v 1.25 2009/06/01 20:24:42 schmonz Exp $
|
|
#
|
|
|
|
DISTNAME= ikiwiki_3.13
|
|
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
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
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
|
|
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-Atom-[0-9]*:../../textproc/p5-XML-Atom
|
|
DEPENDS+= p5-XML-Feed-[0-9]*:../../textproc/p5-XML-Feed
|
|
DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple
|
|
DEPENDS+= p5-XML-RSS-[0-9]*:../../textproc/p5-XML-RSS
|
|
DEPENDS+= p5-File-MimeInfo-[0-9]*:../../devel/p5-File-MimeInfo
|
|
DEPENDS+= p5-gettext-[0-9]*:../../devel/p5-gettext
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGBASE}
|
|
PERL5_PACKLIST= auto/IkiWiki/.packlist
|
|
USE_LANGUAGES= # none
|
|
USE_TOOLS+= gmake msgfmt perl:run xgettext
|
|
|
|
REPLACE_PERL+= ikiwiki-mass-rebuild ikiwiki-transition ikiwiki-update-wikilist
|
|
REPLACE_PERL+= ikiwiki-w3m.cgi ikiwiki.in mdwn2man pm_filter
|
|
REPLACE_PERL+= *.pm IkiWiki/*.pm IkiWiki/*/*.pm* *.setup */*/*.setup t/*.t
|
|
REPLACE_PERL+= plugins/externaldemo # XXX not installed
|
|
|
|
SUBST_CLASSES+= makefile
|
|
SUBST_STAGE.makefile= post-patch
|
|
SUBST_FILES.makefile= Makefile.PL
|
|
SUBST_SED.makefile+= -e 's,share/man/man,${PKGMANDIR}/man,g'
|
|
|
|
SUBST_CLASSES+= perlpath
|
|
SUBST_STAGE.perlpath= post-patch
|
|
SUBST_FILES.perlpath= IkiWiki/Setup/Standard.pm
|
|
SUBST_SED.perlpath+= -e 's,@PERL5@,${PERL5},g'
|
|
|
|
PKG_SYSCONFSUBDIR= ${PKGBASE}
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
CONF_FILES+= ${EGDIR}/auto.setup ${PKG_SYSCONFDIR}/auto.setup
|
|
CONF_FILES+= ${EGDIR}/auto-blog.setup ${PKG_SYSCONFDIR}/auto-blog.setup
|
|
CONF_FILES+= ${EGDIR}/wikilist ${PKG_SYSCONFDIR}/wikilist
|
|
|
|
.include "options.mk"
|
|
|
|
pre-configure:
|
|
find ${WRKSRC} -type f -name '*.orig' -print | xargs rm -f
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|