mysql-tritonn-5.0.cfg 3.02 KB
# This is software part of buildout for mysql with senna
# Originally made by Leonardo Rochael Almeida <leorochael@gmail.com> (thanks!)
# Original place: https://svn.erp5.org/repos/public/experimental/mysqlsenna.buildout/

[buildout]
extends =
  ../software-profiles/autoconf.cfg
  ../software-profiles/automake.cfg
  ../software-profiles/zlib.cfg
  ../software-profiles/bison.cfg
  ../software-profiles/flex.cfg
  ../software-profiles/libtool.cfg
  ../software-profiles/ncurses.cfg
  ../software-profiles/openssl.cfg

parts =
    mysql-tritonn-5.0

[senna]
recipe = hexagonit.recipe.cmmi
url = http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Fsenna%2F33763%2Fsenna-1.1.4.tar.gz
md5sum = 1d896f46ef1def47ebe0d72c7eb21a60
configure-options =
  --without-mecab
  --enable-nfkc=no

[mysql-5.0-tritonn-patch]
recipe = hexagonit.recipe.download
url = http://dl.sourceforge.jp/tritonn/44472/${:filename}
md5sum = 257abe9c4afdc9b08033687fd486a595
filename = tritonn-1.0.12-mysql-5.0.87.diff
download-only = true

[mysql-5.0-sphinx-patch]
recipe = hexagonit.recipe.download
url = http://www.nexedi.org/static/patches/${:filename}
md5sum = e7ff31f4853f4391344a6a9a520fc98d
filename = mysql-5.0.87-sphinx-1.10.diff
download-only = true

[mysql-tritonn-hooks-download]
recipe = hexagonit.recipe.download
url = http://www.nexedi.org/static/buildout-hooks/mysql-tritonn-hooks.py-r36670
filename = mysql-tritonn-hooks.py
md5sum = 484abb02375e354ef7be0438dc369f85
download-only = true

[mysql-tritonn-5.0]
recipe = hexagonit.recipe.cmmi
url = http://www.nexedi.org/static/tarballs/mysql/mysql-5.0.87.tar.gz
md5sum = 65e6229cc98b6a8d4c5206d7fe16c7be
pre-configure-hook = ${mysql-tritonn-hooks-download:location}/${mysql-tritonn-hooks-download:filename}:pre_configure_hook
post-make-hook = ${mysql-tritonn-hooks-download:location}/${mysql-tritonn-hooks-download:filename}:post_make_hook
# configure: how to avoid searching for my.cnf?
#  - like in mysql part in http://svn.zope.org/zodbshootout/trunk/buildout.cfg?view=markup
configure-options =
  --with-senna
  --with-openssl=${openssl:location}
  --without-mecab
  --enable-thread-safe-client
  --with-charset=utf8
  --with-collation=utf8_unicode_ci
  --with-server-suffix=mysql-tritonn-5.0
  --with-mysqlmanager
  --enable-assembler
  --with-readline
  --with-sphinx-storage-engine
  --with-named-curses-libs=${ncurses:location}/lib/libncurses.so
  --with-zlib-dir=${zlib:location}

make-options =
  LN_S='ln -s'

patch-options = -p1
patches =
  ${mysql-5.0-tritonn-patch:location}/${mysql-5.0-tritonn-patch:filename}
  ${mysql-5.0-sphinx-patch:location}/${mysql-5.0-sphinx-patch:filename}
environment =
    PATH =${senna:location}/bin:${autoconf-2.68:location}/bin:${automake-1.9:location}/bin:${libtool:location}/bin:${bison:location}/bin:${flex:location}/bin:%(PATH)s
    CFLAGS =-I${senna:location}/include/senna -I${ncurses:location}/include
    CXXFLAGS =-I${senna:location}/include/senna
    LIBTOOL =${libtool:location}/bin/libtool
    LDFLAGS =-L${senna:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib