pkgsrc/www/ikiwiki/options.mk
schmonz ee980c149f Update to 3.141592. From the changelog:
* Add new hooks: canremove, canrename, rename. (intrigeri)
* rename: Refactor subpage rename handling code into rename hook.
    (intrigeri)
* po: New plugin, suporting translation of wiki pages using po
    files. (intrigeri)
* Add build machinery to build po files to translate the underlay wikis,
* Add further build machinery to generate translated underlays from
    the po file, for use by wikis whose primary language is not English.
* Add Danish basewiki translation by Jonas Smedegaard.
* img: Fix adding of dependency from page to the image.
* pagestats: add among parameter, which only counts links from
    specified pages (smcv)
* pagestats: when making a tag cloud, don't emit links where the
    tag is unused (smcv)
* map: Avoid emitting an unclosed ul element if the map is empty.
    (harishcm)
* inline: Add pagenames parameter that can be used to list a set
    of pages to inline, in a specific order, without using a PageSpec.
    (smcv)
* Add getsource plugin (Will, smcv)

Note that the new po plugin won't work until textproc/po4a is updated
to at least 0.34. Any takers?
2009-08-12 21:14:34 +00:00

55 lines
1.8 KiB
Makefile

# $NetBSD: options.mk,v 1.5 2009/08/12 21:14:35 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ikiwiki
PKG_SUPPORTED_OPTIONS= ikiwiki-amazon-s3 ikiwiki-search
PKG_SUPPORTED_OPTIONS+= imagemagick python svn w3m
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mikiwiki-search)
DEPENDS+= p5-Search-Xapian-[0-9]*:../../textproc/p5-Search-Xapian
DEPENDS+= p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
DEPENDS+= xapian-omega-[0-9]*:../../textproc/xapian-omega
.endif
.if !empty(PKG_OPTIONS:Mikiwiki-amazon-s3)
DEPENDS+= p5-Net-Amazon-S3-[0-9]*:../../net/p5-Net-Amazon-S3
DEPENDS+= p5-File-MimeInfo-[0-9]*:../../devel/p5-File-MimeInfo
.endif
.if !empty(PKG_OPTIONS:Mimagemagick)
DEPENDS+= p5-PerlMagick-[0-9]*:../../graphics/p5-PerlMagick
.endif
.if !empty(PKG_OPTIONS:Mpython)
DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
.include "../../lang/python/application.mk"
.else
CHECK_INTERPRETER_SKIP+=lib/ikiwiki/plugins/*
# and no python dependency, so let's not use a system python by mistake
REPLACE_INTERPRETER+= python
REPLACE.python.old= .*python[^[:space:]]*
REPLACE.python.new= ${LOCALBASE}/bin/python
REPLACE_FILES.python= ${REPLACE_PYTHON}
.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
INSTALLATION_DIRS+= share/doc/${PKGBASE}/w3mmode
post-install:
${INSTALL_DATA} ${WRKSRC}/html/w3mmode.html \
${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/doc/w3mmode/ikiwiki.setup \
${PREFIX}/share/doc/${PKGBASE}/w3mmode/ikiwiki.setup
.else
SUBST_CLASSES+= w3m
SUBST_STAGE.w3m= post-patch
SUBST_FILES.w3m= Makefile.PL
SUBST_SED.w3m+= -e 's,^\(.*install .*W3M_CGI_BIN\),\#\1,'
.endif