buildout.cfg 1.44 KB
Newer Older
1 2
[buildout]
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
3 4
  ../gdbm/buildout.cfg
  ../patch/buildout.cfg
5 6 7 8 9
parts =
  perl

[perl-keep-linker-flags-in-ldflags.patch]
recipe = hexagonit.recipe.download
10
url = ${:_profile_base_location_}/${:filename}
11 12 13 14
md5sum = 9873a89c969bd5a478434c3b8b2d57d8
download-only = true
filename = ${:_buildout_section_name_}

15 16 17 18 19 20 21
[perl-postmakehook-download]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
md5sum = 7fded8308c1676decf77575c6d6b325f
download-only = true
filename = create-libs-symlink.py

22
[perl]
23
recipe = slapos.recipe.cmmi
24 25
depends =
  ${gdbm:version}
26
version = 5.16.3
27
# increase revision when we need to rebuild binary libraries.
28
revision = 2
29
url = http://www.cpan.org/src/5.0/perl-${:version}.tar.bz2
30
md5sum = 025102de0e4a597cf541e57da80c6aa3
31
siteprefix = ${buildout:parts-directory}/site_${:_buildout_section_name_}
32 33 34 35 36 37
patch-options = -p1
patches =
  ${perl-keep-linker-flags-in-ldflags.patch:location}/${perl-keep-linker-flags-in-ldflags.patch:filename}
configure-command =
  sh Configure -des \
    -Dprefix=${buildout:parts-directory}/${:_buildout_section_name_} \
38
    -Dsiteprefix=${:siteprefix} \
39
    -Dcflags=-I${gdbm:location}/include \
40
    -Dldflags="-L${gdbm:location}/lib -Wl,-rpath=${gdbm:location}/lib" \
41
    -Ui_db \
42 43
    -Dnoextensions=ODBM_File \
    -Dusethreads
44 45
environment =
  PATH=${patch:location}/bin:%(PATH)s
46
post-make-hook = ${perl-postmakehook-download:location}/${perl-postmakehook-download:filename}:post_make_hook