source: trunk/dports/www/clearsilver/Portfile @ 87969

Last change on this file since 87969 was 58775, checked in by jmr@…, 10 years ago

clearsilver: livecheck (#21733)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 58775 2009-10-05 05:45:19Z jmr@macports.org $
2
3PortSystem  1.0
4
5name            clearsilver
6version         0.10.5
7revision        1
8categories      www python perl
9platforms       darwin
10maintainers     nomaintainer
11description     Language-neutral template system.
12long_description        Clearsilver is a fast, powerful, and language-neutral \
13                        HTML template system. In both  static content sites \
14                        and dynamic  HTML applications, it provides a \
15                        separation between  presentation code and application \
16                        logic which makes  working with your project easier.
17
18homepage        http://www.clearsilver.net
19master_sites    ${homepage}/downloads
20
21checksums       md5 b8c0c7fbe0ef5e06e0c935f134304d44 \
22                sha1 138865dc91e27328fe29fcaaac1bc6558f19dd75 \
23                rmd160 bd5c616f326b544df8a74eec71a98a474b408249
24
25patchfiles      patch-rules.mk.in.diff
26
27depends_lib     port:python25 path:bin/perl:perl5 port:zlib port:gettext
28
29configure.args  --disable-apache --disable-java --disable-ruby \
30                --disable-csharp \
31                --with-python=${prefix}/bin/python2.5 \
32                --with-perl=${prefix}/bin/perl \
33                --enable-gettext \
34                --mandir=${prefix}/share/man
35
36pre-configure   {
37        set PYTHON_PATH ${prefix}/lib/python2.5
38
39        reinplace "s|PYTHON_SITE=`.*|PYTHON_SITE=${PYTHON_PATH}/site-packages|g" \
40                ${worksrcpath}/configure
41
42        reinplace "s|/usr/local/bin/python|${prefix}/bin/python2.5|g" \
43                ${worksrcpath}/scripts/document.py
44        reinplace "s|/usr/bin/python|${prefix}/bin/python2.5|g" \
45                ${worksrcpath}/scripts/cs_lint.py
46        reinplace "s|/neo/opt/bin/python|${prefix}/bin/python2.5|g" \
47                ${worksrcpath}/scripts/ChangeLog.py
48        reinplace "s|/usr/bin/python|${prefix}/bin/python2.5|g" \
49                ${worksrcpath}/scripts/commitlog.py
50
51        reinplace "s|\$(PERL) Makefile.PL|\$(PERL) Makefile.PL installdirs=vendor|g" \
52                ${worksrcpath}/Makefile
53}
54
55post-configure {
56        reinplace "s|#include <features.h>||g" \
57                ${worksrcpath}/cgi/cgiwrap.c
58}
59
60# Workaround for #17998
61post-destroot {
62    move ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5 \
63        ${destroot}${prefix}/lib/python2.5
64}
65
66## stolen from perl5 group code
67post-destroot {
68                foreach packlist [exec find ${destroot} -name .packlist] {
69                        ui_info "Fixing packlist ${packlist}"
70                        reinplace "s|${destroot}||" ${packlist}
71                }
72                foreach badfile [exec find ${destroot} -name perllocal.pod] {
73                        ui_info "Removing ${badfile}"
74                        file delete ${badfile}
75                }
76        }
77
78livecheck.type  regex
79livecheck.url   ${homepage}/downloads
80livecheck.regex {clearsilver-([0-9.]+)\.tar\.gz}
Note: See TracBrowser for help on using the repository browser.