blob: e8383424967ee8c48b21527bd8a312ba4dc9024c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# $NetBSD: Makefile,v 1.178 2022/06/30 11:18:58 nia Exp $
DISTNAME= ikiwiki_3.20200202.3.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
PKGREVISION= 8
CATEGORIES= www textproc
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/i/ikiwiki/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= https://ikiwiki.info/
COMMENT= Flexible static site generator with dynamic features
LICENSE= gnu-gpl-v2
DEPENDS+= p5-URI>=1.36:../../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-HTML-Tree-[0-9]*:../../www/p5-HTML-Tree
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-JSON-[0-9]*:../../converters/p5-JSON
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
DEPENDS+= p5-YAML-LibYAML-[0-9]*:../../textproc/p5-YAML-LibYAML
DEPENDS+= p5-LWPx-ParanoidAgent-[0-9]*:../../www/p5-LWPx-ParanoidAgent
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
PERL5_PACKLIST= auto/IkiWiki/.packlist
USE_TOOLS+= gmake msgfmt perl:run xgettext
REPLACE_PYTHON+= plugins/proxy.py plugins/pythondemo plugins/rst
REPLACE_PERL+= pm_filter ikiwiki.in ikiwiki-comment.in
REPLACE_PERL+= ikiwiki-transition.in ikiwiki-calendar.in
MAKE_FLAGS+= W3M_CGI_BIN=${PREFIX:Q}/libexec/w3m/cgi-bin
MAKE_FLAGS+= SYSCONFDIR=${PKG_SYSCONFDIR:Q}
MAKE_FLAGS+= SYSCONFDIR_EXAMPLES=${EGDIR:Q}
MAKE_FLAGS+= MANDIR=${PREFIX:Q}/${PKGMANDIR:Q}
SUBST_CLASSES+= buildonce
SUBST_STAGE.buildonce= post-configure
SUBST_FILES.buildonce= Makefile
SUBST_SED.buildonce= -e 's|_vendor_install :: all|_vendor_install ::|'
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-configure
SUBST_FILES.paths= IkiWiki/Plugin/highlight.pm IkiWiki/Plugin/polygen.pm
SUBST_VARS.paths= PREFIX PKG_SYSCONFBASEDIR
PKG_SYSCONFSUBDIR= ${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
.for f in auto.setup auto-blog.setup wikilist
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
#maintainer-find-default-perl-shebangs-not-substed:
# cd ${WRKSRC} && find . -type f -print | perl -ne 'open(F, "<$$_"); $$l=<F>; print if $$l =~ m|^#!/usr/bin/perl|'
.include "options.mk"
pre-configure:
find ${WRKSRC} -type f -name '*.orig' -print | xargs rm -f
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
TOOLS_PLATFORM.find= # empty, to force GNU find from pkgsrc findutils
.endif
.include "../../lang/perl5/module.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|