Edgewall Software

Changes between Version 7 and Version 8 of ClearSilver


Ignore:
Timestamp:
Jan 21, 2006, 11:15:14 AM (18 years ago)
Author:
Christian Boos
Comment:

Build notes for Linux/Unix added

Legend:

Unmodified
Added
Removed
Modified
  • ClearSilver

    v7 v8  
     1= ClearSilver =
     2
    13ClearSilver (http://www.clearsilver.net/) is a powerful and flexible HTML templating engine.
    24
    3 Unofficial windows builds of ClearSilver 0.9.14 are also available from http://clearsilver.yi.org/ as installers for Python 2.3 and 2.4.
     5== Download ==
    46
    5 '''Note:''' If you have to build the package yourself, be sure
     7Official [http://www.clearsilver.net/downloads downloads]
     8
     9Unofficial windows builds of ClearSilver 0.9.14 are also available
     10from http://clearsilver.yi.org/ as installers for Python 2.3 and 2.4.
     11
     12== Building the package yourself ==
     13
     14If you have to build the package yourself, be sure
    615to build a '''thread-safe''' version of the library.
    7 Non thread-safe builds have been [/trac/ticket/1764#change_15 reported]
    8 to '''not''' work with Trac in a multi-threaded setup.
     16There's no explicit configuration switch for that.
     17Just pay attention to the ''Checking pthread.h... yes''
     18line during configuration. If it's ''no'', then you'll
     19have to fix the configuration step yourself
     20(see that [/trac/ticket/1764#change_15 comment]).
     21
     22Non thread-safe builds have been reported to '''not'''
     23work with Trac in a multi-threaded setup
     24(see the comment linked above).
     25
     26On `x86_64` platforms, the 0.10.x series is needed.
     27For gcc4, the latest release (0.10.2) should be used.
     28
     29=== ClearSilver 0.10.2 ===
     30
     31There's a typo in the configure scripts.
     32You'll need to apply the following patch first:
     33{{{
     34#!diff
     35diff -r 1f523c238d93 -r 74f546b8d58b configure
     36--- a/configure Tue Jan 17 17:36:53 2006 +0100
     37+++ b/configure Thu Jan 19 10:47:42 2006 +0100
     38@@ -6045,7 +6045,7 @@
     39     PYTHON=$python_bin
     40     PYTHON_INC="-I$python_inc"
     41     PYTHON_LIB=$python_lib
     42-    if test ! $?PYTHON_SITE; then
     43+    if test ! $PYTHON_SITE; then
     44        PYTHON_SITE=$python_site
     45     fi
     46     BUILD_WRAPPERS="$BUILD_WRAPPERS python"
     47diff -r 1f523c238d93 -r 74f546b8d58b configure.in
     48--- a/configure.in      Tue Jan 17 17:36:53 2006 +0100
     49+++ b/configure.in      Thu Jan 19 10:47:42 2006 +0100
     50@@ -288,7 +288,7 @@
     51     PYTHON=$python_bin
     52     PYTHON_INC="-I$python_inc"
     53     PYTHON_LIB=$python_lib
     54-    if test ! $?PYTHON_SITE; then
     55+    if test ! $PYTHON_SITE; then
     56        PYTHON_SITE=$python_site
     57     fi
     58     BUILD_WRAPPERS="$BUILD_WRAPPERS python"
     59}}}
     60
     61Then, you can call `configure`, for example like this:
     62{{{
     63./configure --prefix=/opt/clearsilver-0.10.2 \
     64  --with-python=/opt/python-2.4.2/bin/python \
     65  --disable-ruby --disable-java --disable-perl --disable-apache --disable-csharp
     66}}}
     67
     68At this point, `make && make install` should work.