source: trunk/dports/www/ikiwiki/Portfile

Last change on this file was 151900, checked in by mojca@…, 15 months ago

ikiwiki: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151900 2016-08-23 21:46:04Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               perl5 1.0
6
7name                    ikiwiki
8perl5.branches          5.24
9perl5.setup             ikiwiki 3.20150614
10# reset version because perl5 portgroup incorrectly converts it
11version                 3.20150614
12revision                2
13categories              www perl
14license                 GPL-2+
15description             A wiki compiler.
16long_description        Ikiwiki is a wiki compiler. It converts wiki pages \
17                        into HTML pages suitable for publishing on a website. \
18                        Ikiwiki stores pages and history in a revision control \
19                        system such as Subversion or Git. There are many other \
20                        features, including support for blogging and podcasting, \
21                        as well as a large array of plugins.
22homepage                http://ikiwiki.info/
23maintainers             nomaintainer
24platforms               darwin
25master_sites            http://ftp.debian.org/debian/pool/main/i/ikiwiki/
26distname                ${name}_${version}
27worksrcdir              ${name}
28
29# Livecheck URL is for a file listing in reverse filename order. Using reverse
30# chronological order is impractical because older versions are sometimes
31# patched, giving them a newer timestamp than the latest release.
32
33livecheck.url           http://ftp.debian.org/debian/pool/main/i/ikiwiki/?C=N\;O=D
34livecheck.regex         ">ikiwiki_(\[^<\]+)\\.tar\\.gz<"
35
36checksums               rmd160  7ba865d9f37e45ddd97a0a34acf47f38a66877e6 \
37                        sha256  42f199e26458e8ca79d2f85d7d190c2dc2e1df70f3ec2c2e0f5729771a2a7a69
38
39depends_build           port:coreutils \
40                        port:p${perl5.major}-ipc-run \
41                        port:p${perl5.major}-perlmagick \
42                        port:p${perl5.major}-xml-twig
43
44# needed modules (see Bundle/IkiWiki.pm)
45depends_lib-append      \
46                        port:p${perl5.major}-cgi \
47                        port:p${perl5.major}-cgi-formbuilder \
48                        port:p${perl5.major}-cgi-session \
49                        port:p${perl5.major}-data-dumper \
50                        port:p${perl5.major}-html-parser \
51                        port:p${perl5.major}-html-scrubber \
52                        port:p${perl5.major}-html-template \
53                        port:p${perl5.major}-json \
54                        port:p${perl5.major}-mail-sendmail \
55                        port:p${perl5.major}-text-markdown \
56                        port:p${perl5.major}-uri \
57                        port:p${perl5.major}-rpc-xml \
58                        port:p${perl5.major}-timedate \
59                        port:p${perl5.major}-xml-simple \
60                        port:p${perl5.major}-yaml-libyaml \
61                        port:py27-docutils
62
63# a couple of optional extra modules bundled from MacPorts used by plugins
64# (for a complete list see Bundle/IkiWiki/Extras.pm)
65# TODO
66# Search::Xapian
67# LWPx::ParanoidAgent
68# Text::Typography
69# Text::Textile
70# Net::Amazon::S3
71# Text::WikiCreole
72# Gravatar::URL
73# Net::INET6Glue
74
75depends_lib-append      port:p${perl5.major}-authen-passphrase \
76                        port:p${perl5.major}-crypt-ssleay \
77                        port:p${perl5.major}-file-mimeinfo \
78                        port:p${perl5.major}-html-tree \
79                        port:p${perl5.major}-locale-gettext \
80                        port:p${perl5.major}-net-openid-consumer \
81                        port:p${perl5.major}-sort-naturally \
82                        port:p${perl5.major}-term-readline-gnu \
83                        port:p${perl5.major}-text-csv \
84                        port:p${perl5.major}-text-wikiformat \
85                        port:p${perl5.major}-xml-feed \
86                        port:p${perl5.major}-xml-writer \
87                        port:p${perl5.major}-yaml
88
89destroot.target         CP=gcp install
90configure.args          INSTALLDIRS=vendor PREFIX=${prefix}
91
92post-patch {
93    reinplace "s|/usr/bin/perl|${perl5.bin}|g" \
94        ${worksrcpath}/ikiwiki.in \
95        ${worksrcpath}/IkiWiki.pm \
96        ${worksrcpath}/Makefile.PL \
97        ${worksrcpath}/ikiwiki-calendar.in \
98        ${worksrcpath}/ikiwiki-makerepo \
99        ${worksrcpath}/ikiwiki-mass-rebuild \
100        ${worksrcpath}/ikiwiki-transition.in \
101        ${worksrcpath}/ikiwiki-update-wikilist \
102        ${worksrcpath}/ikiwiki-w3m.cgi \
103        ${worksrcpath}/ikiwiki.in \
104        ${worksrcpath}/gitremotes \
105        ${worksrcpath}/mdwn2man \
106        ${worksrcpath}/pm_filter \
107        ${worksrcpath}/docwiki.setup \
108        ${worksrcpath}/auto.setup \
109        ${worksrcpath}/auto-blog.setup
110    reinplace "s|=/etc/ikiwiki|=${prefix}/etc/ikiwiki|" \
111        ${worksrcpath}/Makefile.PL
112    reinplace "s|/etc/ikiwiki/wikilist|${prefix}/etc/ikiwiki/wikilist|g" \
113        ${worksrcpath}/ikiwiki-update-wikilist \
114        ${worksrcpath}/ikiwiki-mass-rebuild
115    reinplace "s|#!.*|#!${prefix}/bin/python2.7|" \
116        ${worksrcpath}/plugins/proxy.py \
117        ${worksrcpath}/plugins/pythondemo \
118        ${worksrcpath}/plugins/rst
119    reinplace "s|python -c|${prefix}/bin/python2.7 -c|" \
120        ${worksrcpath}/t/rst.t
121}
122
123post-destroot {
124    eval delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
125}
Note: See TracBrowser for help on using the repository browser.