Commit b43ecf4101f50d3542f64cb7a6a24bec2633ab78
Exists in
master
and in
2 other branches
Merge branch 'rugged' into 'master'
Explicitly install rugged See merge request !179
Showing
3 changed files
with
77 additions
and
0 deletions
Show diff stats
config/software/gitlab-rails.rb
@@ -31,6 +31,7 @@ dependency "libicu" | @@ -31,6 +31,7 @@ dependency "libicu" | ||
31 | dependency "postgresql" | 31 | dependency "postgresql" |
32 | dependency "python-docutils" | 32 | dependency "python-docutils" |
33 | dependency "mysql-client" if EE | 33 | dependency "mysql-client" if EE |
34 | +dependency "rugged" | ||
34 | 35 | ||
35 | source :git => "https://gitlab.com/gitlab-org/gitlab-ce.git" | 36 | source :git => "https://gitlab.com/gitlab-org/gitlab-ce.git" |
36 | 37 |
@@ -0,0 +1,47 @@ | @@ -0,0 +1,47 @@ | ||
1 | +# | ||
2 | +## Copyright:: Copyright (c) 2014 GitLab B.V. | ||
3 | +## License:: Apache License, Version 2.0 | ||
4 | +## | ||
5 | +## Licensed under the Apache License, Version 2.0 (the "License"); | ||
6 | +## you may not use this file except in compliance with the License. | ||
7 | +## You may obtain a copy of the License at | ||
8 | +## | ||
9 | +## http://www.apache.org/licenses/LICENSE-2.0 | ||
10 | +## | ||
11 | +## Unless required by applicable law or agreed to in writing, software | ||
12 | +## distributed under the License is distributed on an "AS IS" BASIS, | ||
13 | +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
14 | +## See the License for the specific language governing permissions and | ||
15 | +## limitations under the License. | ||
16 | +## | ||
17 | +# | ||
18 | + | ||
19 | +name "libgit2" | ||
20 | +default_version "v0.21.1" | ||
21 | + | ||
22 | +source git: "git://github.com/libgit2/libgit2.git" | ||
23 | + | ||
24 | +dependency "zlib" | ||
25 | +dependency "openssl" | ||
26 | + | ||
27 | +relative_path "libgit2" | ||
28 | + | ||
29 | +build_dir = "#{project_dir}/build" | ||
30 | + | ||
31 | +build do | ||
32 | + env = with_standard_compiler_flags(with_embedded_path) | ||
33 | + cmake_options = [ | ||
34 | + "-DCMAKE_SKIP_RPATH=YES", | ||
35 | + "-DCMAKE_INSTALL_PREFIX=#{install_dir}/embedded", | ||
36 | + "-DWITH_SSL=system", | ||
37 | + "-DOPENSSL_INCLUDE_DIR:PATH=#{install_dir}/embedded/include", | ||
38 | + "-DOPENSSL_LIBRARIES:FILEPATH=#{install_dir}/embedded/lib/libssl.so", | ||
39 | + "-DWITH_ZLIB=system", | ||
40 | + "-DZLIB_INCLUDE_DIR:PATH=#{install_dir}/embedded/include", | ||
41 | + "-DZLIB_LIBRARY:FILEPATH=#{install_dir}/embedded/lib/libz.so", | ||
42 | + "-DCRYPTO_LIBRARY:FILEPATH=#{install_dir}/embedded/lib/libcrypto.so", | ||
43 | + ] | ||
44 | + mkdir build_dir | ||
45 | + command "cmake .. #{cmake_options.join(' ')}", env: env, cwd: build_dir | ||
46 | + command "make -j #{max_build_jobs} install", env: env, cwd: build_dir | ||
47 | +end |
@@ -0,0 +1,29 @@ | @@ -0,0 +1,29 @@ | ||
1 | +# | ||
2 | +## Copyright:: Copyright (c) 2014 GitLab B.V. | ||
3 | +## License:: Apache License, Version 2.0 | ||
4 | +## | ||
5 | +## Licensed under the Apache License, Version 2.0 (the "License"); | ||
6 | +## you may not use this file except in compliance with the License. | ||
7 | +## You may obtain a copy of the License at | ||
8 | +## | ||
9 | +## http://www.apache.org/licenses/LICENSE-2.0 | ||
10 | +## | ||
11 | +## Unless required by applicable law or agreed to in writing, software | ||
12 | +## distributed under the License is distributed on an "AS IS" BASIS, | ||
13 | +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
14 | +## See the License for the specific language governing permissions and | ||
15 | +## limitations under the License. | ||
16 | +## | ||
17 | +# | ||
18 | + | ||
19 | +name "rugged" | ||
20 | +default_version "0.21.0" | ||
21 | + | ||
22 | +dependency "ruby" | ||
23 | +dependency "rubygems" | ||
24 | +dependency "libgit2" | ||
25 | + | ||
26 | +build do | ||
27 | + env = with_standard_compiler_flags(with_embedded_path) | ||
28 | + gem "install rugged --install-dir=#{install_dir}/embedded/service/gem/ruby/2.1.0 --no-rdoc --no-ri -v #{version} -- --use-system-libraries", env: env | ||
29 | +end |