Commit 97929cb4636c1d4ce3191e6199d03da259ded0da
1 parent
2dbecad6
Exists in
master
and in
13 other branches
Switch back to upstream libyaml
Showing
1 changed file
with
0 additions
and
63 deletions
Show diff stats
config/software/libyaml.rb
@@ -1,63 +0,0 @@ | @@ -1,63 +0,0 @@ | ||
1 | -# | ||
2 | -# Copyright:: Copyright (c) 2012-2014 Chef Software, Inc. | ||
3 | -# Copyright:: Copyright (c) 2014 GitLab BV | ||
4 | -# License:: Apache License, Version 2.0 | ||
5 | -# | ||
6 | -# Licensed under the Apache License, Version 2.0 (the "License"); | ||
7 | -# you may not use this file except in compliance with the License. | ||
8 | -# You may obtain a copy of the License at | ||
9 | -# | ||
10 | -# http://www.apache.org/licenses/LICENSE-2.0 | ||
11 | -# | ||
12 | -# Unless required by applicable law or agreed to in writing, software | ||
13 | -# distributed under the License is distributed on an "AS IS" BASIS, | ||
14 | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
15 | -# See the License for the specific language governing permissions and | ||
16 | -# limitations under the License. | ||
17 | -# | ||
18 | - | ||
19 | -name "libyaml" | ||
20 | -version '0.1.6' | ||
21 | - | ||
22 | -source :url => "http://pyyaml.org/download/libyaml/yaml-#{version}.tar.gz", | ||
23 | - :md5 => '5fe00cda18ca5daeb43762b80c38e06e' | ||
24 | - | ||
25 | -relative_path "yaml-#{version}" | ||
26 | - | ||
27 | -configure_env = | ||
28 | - case platform | ||
29 | - when "aix" | ||
30 | - { | ||
31 | - "CC" => "xlc -q64", | ||
32 | - "CXX" => "xlC -q64", | ||
33 | - "LD" => "ld -b64", | ||
34 | - "CFLAGS" => "-q64 -I#{install_dir}/embedded/include -O", | ||
35 | - "LDFLAGS" => "-q64 -Wl,-blibpath:/usr/lib:/lib", | ||
36 | - "OBJECT_MODE" => "64", | ||
37 | - "ARFLAGS" => "-X64 cru", | ||
38 | - "LD" => "ld -b64", | ||
39 | - "OBJECT_MODE" => "64", | ||
40 | - "ARFLAGS" => "-X64 cru " | ||
41 | - } | ||
42 | - when "mac_os_x" | ||
43 | - { | ||
44 | - "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | ||
45 | - "CFLAGS" => "-I#{install_dir}/embedded/include -L#{install_dir}/embedded/lib" | ||
46 | - } | ||
47 | - when "solaris2" | ||
48 | - { | ||
49 | - "LDFLAGS" => "-R#{install_dir}/embedded/lib -L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include -static-libgcc", | ||
50 | - "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include -DNO_VIZ" | ||
51 | - } | ||
52 | - else | ||
53 | - { | ||
54 | - "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | ||
55 | - "CFLAGS" => "-I#{install_dir}/embedded/include -L#{install_dir}/embedded/lib" | ||
56 | - } | ||
57 | - end | ||
58 | - | ||
59 | -build do | ||
60 | - command "./configure --prefix=#{install_dir}/embedded", :env => configure_env | ||
61 | - command "make -j #{max_build_jobs}", :env => configure_env | ||
62 | - command "make -j #{max_build_jobs} install", :env => configure_env | ||
63 | -end |