wkhtmltopdf-binary-kde-neon-fork 0.12.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cd11b6dbfa6b4948fd476272c1c3cb750bb4ba95cb0b6ec9df6c350b596a4e6a
4
+ data.tar.gz: d984e10aa67f88a768d9cbe76aa9e50de5d1353d761d8027a8af5e1fc4d04361
5
+ SHA512:
6
+ metadata.gz: 54c8d0509ef942840396c3c9632fc43f2fa4b2e922be0d876fda33f0326abd2888a3f432e8c58d8e20c43a5870a39c099220efdc5dea7d6391bcc7fb818b340a
7
+ data.tar.gz: c43ac96fecce2b5a17f8d87058055e9c2b7df7628fe2e66f689d3019d3274cba145f3495c88834aece6c0612987392160480a0290f0e3c6f14a365dbd59456d7
data/bin/wkhtmltopdf ADDED
@@ -0,0 +1,75 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ###
4
+ # wkhtmltopdf_binary_gem Copyright 2013 The University of Iowa
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may not
7
+ # use this file except in compliance with the License. You may obtain a copy
8
+ # of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ require 'rbconfig'
11
+ require 'zlib'
12
+
13
+ suffix = case RbConfig::CONFIG['host_os']
14
+ when /linux/
15
+ os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip
16
+
17
+ os = 'ubuntu_16.04' if os.start_with?('ubuntu_16.') ||
18
+ os.start_with?('ubuntu_17.')
19
+
20
+ os = 'ubuntu_18.04' if os.start_with?('ubuntu_18.') ||
21
+ os.start_with?('ubuntu_19.') ||
22
+ os.start_with?('elementary') ||
23
+ os.start_with?('linuxmint') ||
24
+ os.start_with?('pop') ||
25
+ os.start_with?('zorin')
26
+
27
+ os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
28
+ os.start_with?('ubuntu_21.')
29
+
30
+ os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.')
31
+ os = 'ubuntu_22.04' if os.start_with?('neon_22.')
32
+
33
+ os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
34
+ (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))
35
+
36
+ os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
37
+ os.start_with?('rhel_7.')
38
+
39
+ os = 'centos_8' if os.start_with?('rocky_8') || os.start_with?('rhel_8.')
40
+
41
+ os_based_on_debian_9 = os.start_with?('debian_9') ||
42
+ os.start_with?('deepin')
43
+ os = 'debian_9' if os_based_on_debian_9
44
+
45
+ os = 'debian_10' if !os_based_on_debian_9 && os.start_with?('debian')
46
+
47
+ os = 'archlinux' if os.start_with?('arch_') ||
48
+ os.start_with?('manjaro_')
49
+
50
+ architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
51
+
52
+ "#{os}_#{architecture}"
53
+ when /darwin/
54
+ 'macos_cocoa'
55
+ else
56
+ 'unknown'
57
+ end
58
+
59
+ suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
60
+
61
+ binary = "#{__FILE__}_#{suffix}"
62
+
63
+ if File.exist?("#{binary}.gz") && !File.exist?(binary)
64
+ File.open binary, 'wb', 0o755 do |file|
65
+ Zlib::GzipReader.open("#{binary}.gz") { |gzip| file << gzip.read }
66
+ end
67
+ end
68
+
69
+ unless File.exist? binary
70
+ raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04, ' \
71
+ 'CentOS 6/7/8, Debian 9/10, Archlinux amd64, or Intel-based Cocoa macOS ' \
72
+ "(missing binary: #{binary})."
73
+ end
74
+
75
+ exec *$*.unshift(binary)
File without changes
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltopdf-binary-kde-neon-fork
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.12.6.6
5
+ platform: ruby
6
+ authors:
7
+ - Zakir Durumeric
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-03-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
42
+ email: zakird@gmail.com
43
+ executables:
44
+ - wkhtmltopdf
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - bin/wkhtmltopdf
49
+ - bin/wkhtmltopdf-binary.rb
50
+ - bin/wkhtmltopdf_archlinux_amd64.gz
51
+ - bin/wkhtmltopdf_centos_6_amd64.gz
52
+ - bin/wkhtmltopdf_centos_6_i386.gz
53
+ - bin/wkhtmltopdf_centos_7_amd64.gz
54
+ - bin/wkhtmltopdf_centos_7_i386.gz
55
+ - bin/wkhtmltopdf_centos_8_amd64.gz
56
+ - bin/wkhtmltopdf_debian_10_amd64.gz
57
+ - bin/wkhtmltopdf_debian_10_i386.gz
58
+ - bin/wkhtmltopdf_debian_9_amd64.gz
59
+ - bin/wkhtmltopdf_debian_9_i386.gz
60
+ - bin/wkhtmltopdf_macos_cocoa.gz
61
+ - bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
62
+ - bin/wkhtmltopdf_ubuntu_16.04_i386.gz
63
+ - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
64
+ - bin/wkhtmltopdf_ubuntu_18.04_i386.gz
65
+ - bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
66
+ - bin/wkhtmltopdf_ubuntu_22.04_amd64.gz
67
+ homepage:
68
+ licenses:
69
+ - Apache-2.0
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - "."
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubygems_version: 3.4.2
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
90
+ test_files: []