|
1 | 1 | component "libxslt" do |pkg, settings, platform| |
2 | 2 | pkg.version '1.1.37' |
3 | | - pkg.sha256sum 'a4ecab265f44e888ed3b39e11c7e925103ef6e26e09d62e9381f26977df96343' |
4 | | - pkg.url "#{settings[:buildsources_url]}/libxslt-v#{pkg.get_version}.tar.gz" |
5 | | - |
6 | | - # Newer versions of libxslt either ship as tar.xz or do not ship with a configure file |
7 | | - # and require a newer version of GNU Autotools to generate. This causes problems with |
8 | | - # the older and esoteric (AIX, Solaris) platforms that we support. |
9 | | - # So we generate a configure file manually, compress as tar.gz, and host internally. |
10 | | - |
11 | | - pkg.build_requires "libxml2" |
| 3 | + pkg.sha256sum 'b6f96869b8c42e8257b19d633d31e38cf12ff770829352a9dd109795ffc78bf2' |
| 4 | + pkg.url "https://gitlab.gnome.org/GNOME/libxslt/-/archive/v#{pkg.get_version}/libxslt-v#{pkg.get_version}.tar.gz" |
12 | 5 |
|
13 | 6 | if platform.is_aix? |
14 | 7 | if platform.name == 'aix-7.1-ppc' |
|
34 | 27 | pkg.environment 'CC', 'clang -target arm64-apple-macos11' if platform.name =~ /osx-11/ |
35 | 28 | pkg.environment 'CC', 'clang -target arm64-apple-macos12' if platform.name =~ /osx-12/ |
36 | 29 | end |
| 30 | + pkg.environment 'PATH', '$(PATH):/opt/homebrew/bin:/usr/local/bin' |
37 | 31 | pkg.environment "LDFLAGS", settings[:ldflags] |
38 | 32 | pkg.environment "CFLAGS", settings[:cflags] |
39 | 33 | else |
40 | 34 | pkg.environment "LDFLAGS", settings[:ldflags] |
41 | 35 | pkg.environment "CFLAGS", settings[:cflags] |
42 | 36 | end |
43 | 37 |
|
| 38 | + build_deps = [ "libxml2" ] |
| 39 | + |
| 40 | + if platform.is_sles? |
| 41 | + build_deps << "autoconf" |
| 42 | + elsif platform.is_deb? || platform.is_rpm? |
| 43 | + build_deps << "dh-autoreconf" |
| 44 | + end |
| 45 | + |
| 46 | + if platform.name == 'el-8-x86_64' || platform.name == 'el-9-x86_64' |
| 47 | + build_deps.reject! { |r| r == 'dh-autoreconf' } |
| 48 | + end |
| 49 | + |
| 50 | + build_deps.each do |dep| |
| 51 | + pkg.build_requires dep |
| 52 | + end |
| 53 | + |
| 54 | + # Newer versions of libxslt either ship as tar.xz or do not ship with a configure file |
| 55 | + # and require a newer version of GNU Autotools to generate. This causes problems with |
| 56 | + # the older and esoteric (AIX, Solaris) platforms that we support. |
| 57 | + # So we generate a configure file manually, compress as tar.gz, and host internally. |
| 58 | + if (platform.is_aix? && platform.name == 'aix-7.1-ppc') || platform.is_solaris? |
| 59 | + pkg.url "#{settings[:buildsources_url]}/libxslt-v#{pkg.get_version}-puppet.tar.gz" |
| 60 | + pkg.sha256sum 'a4ecab265f44e888ed3b39e11c7e925103ef6e26e09d62e9381f26977df96343' |
| 61 | + else |
| 62 | + pkg.mirror "#{settings[:buildsources_url]}/libxslt-v#{pkg.get_version}.tar.gz" |
| 63 | + pkg.configure { ["autoreconf --force --install"] } |
| 64 | + end |
| 65 | + |
44 | 66 | pkg.configure do |
45 | 67 | ["./configure --without-python --prefix=#{settings[:prefix]} --docdir=/tmp --with-libxml-prefix=#{settings[:prefix]} #{settings[:host]} #{disable_crypto} #{build}"] |
46 | 68 | end |
|
0 commit comments