Newer perl to fix compilation problems on ubuntu
[slapos.git] / component / perl / buildout.cfg
1 [buildout]
2 extends =
3   ../gdbm/buildout.cfg
4   ../patch/buildout.cfg
5 parts =
6   perl
7
8 [perl-keep-linker-flags-in-ldflags.patch]
9 recipe = hexagonit.recipe.download
10 url = ${:_profile_base_location_}/${:filename}
11 md5sum = 9873a89c969bd5a478434c3b8b2d57d8
12 download-only = true
13 filename = ${:_buildout_section_name_}
14
15 [perl]
16 recipe = hexagonit.recipe.cmmi
17 depends =
18   ${gdbm:version}
19 version = 5.16.0
20 url = http://www.cpan.org/src/5.0/perl-${:version}.tar.bz2
21 md5sum = 15a2f95fb27231e10998240f13acf961
22 siteprefix = ${buildout:parts-directory}/site_${:_buildout_section_name_}
23 patch-options = -p1
24 patches =
25   ${perl-keep-linker-flags-in-ldflags.patch:location}/${perl-keep-linker-flags-in-ldflags.patch:filename}
26 configure-command =
27   sh Configure -des \
28     -Dprefix=${buildout:parts-directory}/${:_buildout_section_name_} \
29     -Dsiteprefix=${:siteprefix} \
30     -Dcflags=-I${gdbm:location}/include \
31     -Dldflags="-L${gdbm:location}/lib -Wl,-rpath=${gdbm:location}/lib" \
32     -Ui_db \
33     -Dnoextensions=ODBM_File
34 environment =
35   PATH=${patch:location}/bin:%(PATH)s