Commit ac8dfa30 authored by Xiaowu Zhang's avatar Xiaowu Zhang

perl: shared build

parent 2f2703d4
...@@ -11,7 +11,7 @@ shared = true ...@@ -11,7 +11,7 @@ shared = true
version = 5.26.1 version = 5.26.1
url = http://www.cpan.org/src/5.0/perl-${:version}.tar.bz2 url = http://www.cpan.org/src/5.0/perl-${:version}.tar.bz2
md5sum = 467cd0c43514b9b5e397c8b385581f53 md5sum = 467cd0c43514b9b5e397c8b385581f53
siteprefix = @@HEAD_LOCATION@@/site_@@TAIL_LOCATION@@ siteprefix = @@LOCATION@@/site_${:_buildout_section_name_}
patch-options = -p1 patch-options = -p1
patches = patches =
${:_profile_base_location_}/perl-keep-linker-flags-in-ldflags.patch#4e8e0c59d7176eafb0c7402dea17bef1 ${:_profile_base_location_}/perl-keep-linker-flags-in-ldflags.patch#4e8e0c59d7176eafb0c7402dea17bef1
...@@ -68,6 +68,7 @@ perl-bin = ${:perl-PATH}/perl ...@@ -68,6 +68,7 @@ perl-bin = ${:perl-PATH}/perl
# Implementation # Implementation
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
shared = true
url = https://www.cpan.org/modules/by-module/${:module}-${:version}.tar.gz url = https://www.cpan.org/modules/by-module/${:module}-${:version}.tar.gz
configure-command = configure-command =
PERL5LIB="${:inc}:${:install-inc}" \ PERL5LIB="${:inc}:${:install-inc}" \
...@@ -75,7 +76,7 @@ configure-command = ...@@ -75,7 +76,7 @@ configure-command =
Makefile.PL \ Makefile.PL \
PREFIX=${:location} \ PREFIX=${:location} \
${:extra-configure-args} ${:extra-configure-args}
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = @@LOCATION@@
# Install scripts in "perl-bin", but create wrappers in ./bin/ # Install scripts in "perl-bin", but create wrappers in ./bin/
make-options = make-options =
INSTALLSITESCRIPT=${:location}/perl-bin/ INSTALLSITESCRIPT=${:location}/perl-bin/
...@@ -83,13 +84,10 @@ make-options = ...@@ -83,13 +84,10 @@ make-options =
make-binary= make-binary=
PERL5LIB="${:inc}:${:install-inc}" make PERL5LIB="${:inc}:${:install-inc}" make
post-make-hook = ${perl-CPAN-post-make-hook:post-make-hook} # this post-make-hook is same for all users of the macro.
perl_location = ${perl:location} post-make-hook = ${:_profile_base_location_}/../../component/perl/perl-CPAN-package-create-wrapper.py#f9314defc3b144d9f36f8cab2a013af9:post_make_hook
[perl-CPAN-post-make-hook] perl_location = ${perl:location}
# a separate section, because when using in macro, we want this
# _profile_base_location_ to be relateive to perl/buildout.cfg
post-make-hook = ${:_profile_base_location_}/perl-CPAN-package-create-wrapper.py#f9314defc3b144d9f36f8cab2a013af9:post_make_hook
[perl-wrapper] [perl-wrapper]
...@@ -119,4 +117,3 @@ template = inline: ...@@ -119,4 +117,3 @@ template = inline:
mode = 0755 mode = 0755
rendered = ${buildout:bin-directory}/${:_buildout_section_name_} rendered = ${buildout:bin-directory}/${:_buildout_section_name_}
perl-bin = ${:rendered} perl-bin = ${:rendered}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment