libicu.rb 1.48 KB
Newer Older
Jacob Vosmaer's avatar
Jacob Vosmaer committed
1
#
2
## Copyright:: Copyright (c) 2014 GitLab B.V.
Jacob Vosmaer's avatar
Jacob Vosmaer committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
## License:: Apache License, Version 2.0
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
#

19
name "libicu"
Stan Hu's avatar
Stan Hu committed
20
default_version "57.1"
21

Stan Hu's avatar
Stan Hu committed
22 23
source url: "http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz",
       sha256: "ff8c67cb65949b1e7808f2359f2b80f722697048e90e7cfc382ec1fe229e9581"
24

25
license "MIT"
Jason Plum's avatar
Jason Plum committed
26
license_file "icu/LICENSE"
27

28
build do
29
  env = with_standard_compiler_flags(with_embedded_path)
30
  env['LD_RPATH'] = "#{install_dir}/embedded/lib"
Marin Jankovski's avatar
Marin Jankovski committed
31
  cwd = "#{Omnibus::Config.source_dir}/libicu/icu/source"
32

33
  command ["./runConfigureICU",
34 35
           "Linux/gcc",
           "--prefix=#{install_dir}/embedded",
36 37 38
           "--with-data-packaging=files",
           "--enable-shared",
           "--without-samples"
39
     ].join(" "), env: env, cwd: cwd
40

41 42
  make "-j #{workers}", env: env, cwd: cwd
  make "install", env: env, cwd: cwd
43

44
  link "#{install_dir}/embedded/share/icu/#{default_version}", "#{install_dir}/embedded/share/icu/current", force: true
45
end