source: trunk/dports/www/clearsilver/Portfile

Last change on this file was 151914, checked in by mojca@…, 13 months ago

clearsilver: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 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 151914 2016-08-23 22:03:52Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                clearsilver
8version             0.10.5
9revision            4
10categories          www python perl
11platforms           darwin
12maintainers         nomaintainer
13description         Language-neutral template system.
14long_description    Clearsilver is a fast, powerful, and language-neutral \
15                    HTML template system. In both  static content sites \
16                    and dynamic  HTML applications, it provides a \
17                    separation between  presentation code and application \
18                    logic which makes  working with your project easier.
19
20homepage            http://www.clearsilver.net
21master_sites        ${homepage}/downloads
22
23checksums           rmd160  bd5c616f326b544df8a74eec71a98a474b408249 \
24                    sha256  1e9da038deafddd3d0c1c510626c28be5a0f4f17b9091d577fd30e7c5ba88680
25
26patchfiles          patch-rules.mk.in.diff \
27                    patch-cgi__cgi.c \
28                    patch-cgi__html.c \
29                    patch-cgi__rfc2388.c \
30                    patch-cs__csparse.c \
31                    patch-cs__cstest.c \
32                    patch-util__dict.c \
33                    patch-util__neo_files.c \
34                    patch-util__neo_hash.c \
35                    patch-util__neo_hdf.c \
36                    patch-util__neo_net.c \
37                    patch-util__neo_server.c \
38                    patch-util__neo_str.c \
39                    patch-util__skiplist.c \
40                    patch-util__ulist.c \
41                    patch-util__ulocks.c
42
43perl5.branches      5.24
44
45depends_lib         port:gettext \
46                    port:perl${perl5.major} \
47                    port:python27 \
48                    port:zlib \
49
50set python_bin      ${prefix}/bin/python2.7
51
52configure.args      --disable-apache \
53                    --disable-java \
54                    --disable-ruby \
55                    --disable-csharp \
56                    --with-python=${python_bin} \
57                    --with-perl=${perl5.bin} \
58                    --enable-gettext \
59                    --mandir=${prefix}/share/man
60
61pre-configure   {
62    set PYTHON_PATH ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7
63
64    reinplace "s|PYTHON_SITE=`.*|PYTHON_SITE=${PYTHON_PATH}/site-packages|g" \
65        ${worksrcpath}/configure
66
67    reinplace "s|/usr/local/bin/python|${python_bin}|g" \
68        ${worksrcpath}/scripts/document.py
69    reinplace "s|/usr/bin/python|${python_bin}|g" \
70        ${worksrcpath}/scripts/cs_lint.py \
71        ${worksrcpath}/scripts/commitlog.py
72    reinplace "s|/neo/opt/bin/python|${python_bin}|g" \
73        ${worksrcpath}/scripts/ChangeLog.py
74
75    reinplace "s|\$(PERL) Makefile.PL|\$(PERL) Makefile.PL installdirs=vendor|g" \
76        ${worksrcpath}/Makefile
77}
78
79post-configure {
80    reinplace "s|#include <features.h>||g" \
81        ${worksrcpath}/cgi/cgiwrap.c
82}
83
84## stolen from perl5 group code
85post-destroot {
86    foreach packlist [exec find ${destroot} -name .packlist] {
87        ui_info     "Fixing packlist ${packlist}"
88        reinplace   "s|${destroot}||" ${packlist}
89    }
90    foreach badfile [exec find ${destroot} -name perllocal.pod] {
91        ui_info     "Removing ${badfile}"
92        file delete ${badfile}
93    }
94}
95
96livecheck.type      regex
97livecheck.url       ${homepage}/downloads
98livecheck.regex     {clearsilver-([0-9.]+)\.tar\.gz}
Note: See TracBrowser for help on using the repository browser.