wkhtmltopdf_debian 1.0.0

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: be70528e3987a172d252a8ccbbd222470f7d8f255da024b85ede706766dff3bf
4
+ data.tar.gz: a9fe3c299404e75bc78f7c764b4105cc9f05d1580a48625a45e5d24f895e42eb
5
+ SHA512:
6
+ metadata.gz: 6f84342b06ae4a9bdc26203218cb5b8fe7770d63a1204e765dad65d017281a074bac35f54e4c9d179ec7ac02f5de7bc9947e70ffef7839fd0fb7412ea18a221f
7
+ data.tar.gz: 4383ae98031dc891b864e14a57754c42d476a624317e691c7d4debe3df20be26d9b9fff3aeb3c11abf594256be49ddb8523203583c3bcfac404bcc938fe20efb
Binary file
data/bin/wkhtmltopdf ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rbconfig'
3
+ require 'zlib'
4
+
5
+ binary = ENV['WKHTMLTOPDF_BIN']
6
+ if binary.nil? || binary == ''
7
+ if RbConfig::CONFIG['host_cpu'] != 'x86_64' || RbConfig::CONFIG['host_os'] !~ /linux/
8
+ raise "wkhtmltopdf_debian: unsupported platform #{RbConfig::CONFIG['host_os']}/#{RbConfig::CONFIG['host_cpu']}"
9
+ end
10
+
11
+ binary = "#{__FILE__}_debian"
12
+ jpeg = "#{__dir__}/libjpeg.so.62"
13
+
14
+ unless File.exist?(binary)
15
+ File.open(binary, 'wb', 0o755) { |fp| Zlib::GzipReader.open("#{binary}.gz") { |gz| fp << gz.read } }
16
+ end
17
+ unless File.exist?(jpeg)
18
+ File.open(jpeg, 'wb', 0o755) { |fp| Zlib::GzipReader.open("#{jpeg}.gz") { |gz| fp << gz.read } }
19
+ end
20
+
21
+ if ENV['LD_LIBRARY_PATH'].nil?
22
+ ENV['LD_LIBRARY_PATH'] = __dir__
23
+ else
24
+ ENV['LD_LIBRARY_PATH'] += ':' + __dir__
25
+ end
26
+ end
27
+ exec *$*.unshift(binary)
Binary file
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltopdf_debian
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Martin Tournoij
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: minitest
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :development
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ email: martin@arp242.net
41
+ executables:
42
+ - wkhtmltopdf
43
+ extensions: []
44
+ extra_rdoc_files: []
45
+ files:
46
+ - bin/libjpeg.so.62.gz
47
+ - bin/wkhtmltopdf
48
+ - bin/wkhtmltopdf_debian.gz
49
+ homepage: https://github.com/olyticoIE/wkhtmltopdf_debian
50
+ licenses:
51
+ - Apache-2.0
52
+ metadata:
53
+ source_code_uri: https://github.com/olyticoIE/wkhtmltopdf_debian
54
+ rdoc_options: []
55
+ require_paths:
56
+ - "."
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 3.2.0
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubygems_version: 4.0.10
69
+ specification_version: 4
70
+ summary: wkhtmltopdf binary for Debian 12 and 13.
71
+ test_files: []