# -*- 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
categories www python perl
description Language-neutral template system.
long_description Clearsilver is a fast, powerful, and language-neutral \
HTML template system. In both static content sites \
and dynamic HTML applications, it provides a \
separation between presentation code and application \
logic which makes working with your project easier.
homepage http://www.clearsilver.net
master_sites ${homepage}/downloads
checksums rmd160 bd5c616f326b544df8a74eec71a98a474b408249 \
sha256 1e9da038deafddd3d0c1c510626c28be5a0f4f17b9091d577fd30e7c5ba88680
patchfiles patch-rules.mk.in.diff \
patch-util__neo_files.c \
patch-util__neo_server.c \
depends_lib port:gettext \
port:perl${perl5.major} \
set python_bin ${prefix}/bin/python2.7
configure.args --disable-apache \
--with-python=${python_bin} \
--with-perl=${perl5.bin} \
--mandir=${prefix}/share/man
set PYTHON_PATH ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7
reinplace "s|PYTHON_SITE=`.*|PYTHON_SITE=${PYTHON_PATH}/site-packages|g" \
reinplace "s|/usr/local/bin/python|${python_bin}|g" \
${worksrcpath}/scripts/document.py
reinplace "s|/usr/bin/python|${python_bin}|g" \
${worksrcpath}/scripts/cs_lint.py \
${worksrcpath}/scripts/commitlog.py
reinplace "s|/neo/opt/bin/python|${python_bin}|g" \
${worksrcpath}/scripts/ChangeLog.py
reinplace "s|\$(PERL) Makefile.PL|\$(PERL) Makefile.PL installdirs=vendor|g" \
reinplace "s|#include <features.h>||g" \
${worksrcpath}/cgi/cgiwrap.c
## stolen from perl5 group code
foreach packlist [exec find ${destroot} -name .packlist] {
ui_info "Fixing packlist ${packlist}"
reinplace "s|${destroot}||" ${packlist}
foreach badfile [exec find ${destroot} -name perllocal.pod] {
ui_info "Removing ${badfile}"