buildout.cfg 3.17 KB
Newer Older
1 2 3 4 5 6
# 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 =
Łukasz Nowak's avatar
Łukasz Nowak committed
7 8 9 10 11 12 13 14 15
  ../autoconf/buildout.cfg
  ../automake/buildout.cfg
  ../zlib/buildout.cfg
  ../bison/buildout.cfg
  ../flex/buildout.cfg
  ../libtool/buildout.cfg
  ../ncurses/buildout.cfg
  ../openssl/buildout.cfg
  ../readline/buildout.cfg
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

parts =
    mysql-tritonn-5.0

[senna]
recipe = hexagonit.recipe.cmmi
url = http://www.nexedi.org/static/tarballs/senna/senna-r1311.tar.gz
md5sum = 1cc51554789f81a9e5208da04a5c2f4c
configure-command =
  echo 'AC_CONFIG_MACRO_DIR([m4])' >> configure.ac
  echo 'ACLOCAL_AMFLAGS = -I m4' >> Makefile.am
  ACLOCAL_ARGS=-I${libtool:location}/share/aclocal ./autogen.sh
  ./configure
configure-options =
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
  --without-mecab
  --disable-glibtest
make-options =
  LIBTOOL=libtool
environment =
  PATH=${autoconf:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:%(PATH)s

[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
47
url = ${:_profile_base_location_}/${:filename}
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
md5sum = 4ca071cde319213a213ab3605e326d1c
filename = mysql-5.0.87-sphinx-1.10.diff
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
# configure: how to avoid searching for my.cnf?
#  - like in mysql part in http://svn.zope.org/zodbshootout/trunk/buildout.cfg?view=markup
configure-command =
  libtoolize -c -f
  aclocal -I ${libtool:location}/share/aclocal -I config/ac-macros
  autoheader
  automake -c -a -f
  autoconf
  touch sql/sql_yacc.yy
  ./configure
configure-options =
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
  --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
  --without-readline
  --with-sphinx-storage-engine
  --with-named-curses-libs=${ncurses:location}/lib/libncurses.so
  --with-zlib-dir=${zlib:location}

make-options =
  LIBTOOL=libtool
  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:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:${bison:location}/bin:${flex:location}/bin:%(PATH)s
    CPPFLAGS=-I${senna:location}/include/senna -I${ncurses:location}/include -I${readline:location}/include
93
    LDFLAGS=-L${senna:location}/lib -L${readline:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${ncurses:location}/lib -Wl,-rpath=${readline:location}/lib