image_optim_pack 0.5.0.20171101-x86-linux → 0.5.0.20171208-x86-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc4036f74ec314e256beffc25b72544c9d3916eb
4
- data.tar.gz: 84286a4c9d118f531c9fe59bfe3b5d2c2c77ee95
3
+ metadata.gz: 91b5b6b862b9a1d5b116d3d27119e932914b1144
4
+ data.tar.gz: 5ce5a64f0fa0530335673279d02f3d2341ddf332
5
5
  SHA512:
6
- metadata.gz: 44d5e900fd4855cb3c0a497461ce217ec07df4a9e3f304fb1f5715cd775b90fbc18d45b3572bf2f53db4831fa1f0bb1098abd2a80d6b93c1d745d1c16ccbd26b
7
- data.tar.gz: 04b93ea3cf6765d5d28b68d507ec0dea404695e2db13c7c1f4e10324a07543ac1740abbd2cca3745e00d342ad0332f77bff92f12855450c3a57575f0a3b3858b
6
+ metadata.gz: 27153b2366f0f0230a3e6f4b7d7dcc7db4faf4794259a66a1a68b0ecc3526679c384fbb60642b33d54a186dc3e820f291e50b7c8f0553c9efbb1cc0b919ababc
7
+ data.tar.gz: 72b5896d84c49f55955982188a4d3d0eec67e11b2b0fb8f63c5a445d139714bb26f0e5fb225423ca60076acd6ce68b43469e9fabaf8be01068272c6a29afdc5b
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## unreleased
4
4
 
5
+ ## v0.5.0.20171208 (2017-12-08)
6
+
7
+ * ensure unused libgcc is not dynamically linked with pngquant [@toy](https://github.com/toy)
8
+ * don’t use lcms (colour profiles) in pngquant [@toy](https://github.com/toy)
9
+ * pngquant 2.11.2 [@toy](https://github.com/toy)
10
+ * pngquant 2.11.1 [@toy](https://github.com/toy)
11
+
5
12
  ## v0.5.0.20171101 (2017-11-01)
6
13
 
7
14
  * pngquant 2.11.0 [@toy](https://github.com/toy)
data/Makefile CHANGED
@@ -13,7 +13,7 @@ LIBPNG_VER := 1.6.34
13
13
  LIBZ_VER := 1.2.11
14
14
  OPTIPNG_VER := 0.7.6
15
15
  PNGCRUSH_VER := 1.8.13
16
- PNGQUANT_VER := 2.11.0
16
+ PNGQUANT_VER := 2.11.2
17
17
 
18
18
  # ====== CONSTANTS ======
19
19
 
@@ -162,15 +162,48 @@ all : build
162
162
  build : $(call downcase,$(PRODUCTS))
163
163
  .PHONY : build
164
164
 
165
- define check_bin
165
+ ifdef IS_DARWIN
166
+ ldd := otool -L
167
+ else
168
+ ldd := ldd
169
+ endif
170
+
171
+ define check_exists
166
172
  @test -f $(OUTPUT_DIR)/$1 || \
167
- { printf "$(ANSI_RED)no $1 found$(ANSI_RESET)\n"; exit 1; }
168
- @printf "$1: "; \
169
- VERSION=$$($(OUTPUT_DIR)/$1 $2 | fgrep -o $3) || \
170
- { printf "$(ANSI_RED)Expected $3, got $$($(OUTPUT_DIR)/$1 $2)$(ANSI_RESET)\n"; exit 1; }; \
171
- ARCH=$$(file -b $(OUTPUT_DIR)/$1 | fgrep -o '$(ARCH_STRING)') || \
172
- { printf "$(ANSI_RED)Expected $(ARCH_STRING), got $$(file -b $(OUTPUT_DIR)/$1)$(ANSI_RESET)\n"; exit 1; }; \
173
- printf "$(ANSI_GREEN)$$VERSION$(ANSI_RESET) / $(ANSI_MAGENTA)$$ARCH$(ANSI_RESET)\n"
173
+ { printf "$1: $(ANSI_RED)not found$(ANSI_RESET)\n"; exit 1; }
174
+ endef
175
+
176
+ define check_version
177
+ @$(OUTPUT_DIR)/$1 $2 | fgrep -q $3 || \
178
+ { printf "$1: $(ANSI_RED)Expected $3, got $$($(OUTPUT_DIR)/$1 $2)$(ANSI_RESET)\n"; exit 1; }
179
+ endef
180
+
181
+ define check_arch
182
+ @file -b $(OUTPUT_DIR)/$1 | fgrep -q '$(ARCH_STRING)' || \
183
+ { printf "$1: $(ANSI_RED)Expected $(ARCH_STRING), got $$(file -b $(OUTPUT_DIR)/$1)$(ANSI_RESET)\n"; exit 1; }
184
+ endef
185
+
186
+ define check_output
187
+ @printf "$1: $(ANSI_GREEN)$3$(ANSI_RESET) / $(ANSI_MAGENTA)$(ARCH_STRING)$(ANSI_RESET)\n"
188
+ endef
189
+
190
+ define check_shlib
191
+ @! $(ldd) $(OUTPUT_DIR)/$1 | egrep -o "[^: ]+/[^: ]+" | egrep -v "^(@loader_path|/lib|/lib64|/usr|$(OUTPUT_DIR))/"
192
+ endef
193
+
194
+ define check_lib
195
+ $(call check_exists,$1)
196
+ $(call check_arch,$1)
197
+ $(call check_output,$1,,-)
198
+ $(call check_shlib,$1)
199
+ endef
200
+
201
+ define check_bin
202
+ $(call check_exists,$1)
203
+ $(call check_version,$1,$2,$3)
204
+ $(call check_arch,$1)
205
+ $(call check_output,$1,,$3)
206
+ $(call check_shlib,$1)
174
207
  endef
175
208
 
176
209
  ifdef IS_DARWIN
@@ -188,6 +221,9 @@ test :
188
221
  $(call check_bin,jpeg-recompress,--version,$(JPEGARCHIVE_VER))
189
222
  $(call check_bin,jpegoptim,--version,$(JPEGOPTIM_VER))
190
223
  $(call check_bin,jpegtran,-v - 2>&1,$(LIBJPEG_VER))
224
+ $(call check_lib,libjpeg$(DLEXT))
225
+ $(call check_lib,libpng$(DLEXT))
226
+ $(call check_lib,libz$(DLEXT))
191
227
  $(call check_bin,optipng,--version,$(OPTIPNG_VER))
192
228
  $(call check_bin,pngcrush,-version 2>&1,$(PNGCRUSH_VER))
193
229
  $(call check_bin,pngquant,--help,$(PNGQUANT_VER))
@@ -383,7 +419,8 @@ $(PNGCRUSH_TARGET) :
383
419
 
384
420
  ## pngquant
385
421
  $(eval $(call depend,PNGQUANT,LIBPNG LIBZ))
422
+ $(PNGQUANT_TARGET) : export CFLAGS := $(CFLAGS) $(shell if $(CC) -v 2>&1 | fgrep -q gcc; then echo -static-libgcc; fi)
386
423
  $(PNGQUANT_TARGET) :
387
- cd $(DIR) && ./configure --without-cocoa --extra-ldflags="$(XORIGIN)"
424
+ cd $(DIR) && ./configure --without-cocoa --without-lcms2 --extra-ldflags="$(XORIGIN)"
388
425
  cd $(DIR) && $(MAKE) pngquant
389
426
  $(call chrpath_origin,$@)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'image_optim_pack'
5
- s.version = '0.5.0.20171101'
5
+ s.version = '0.5.0.20171208'
6
6
  s.summary = %q{Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegtran, optipng, pngcrush, pngquant}
7
7
  s.homepage = "http://github.com/toy/#{s.name}"
8
8
  s.authors = ['Ivan Kuchin']
@@ -36,6 +36,6 @@ Gem::Specification.new do |s|
36
36
 
37
37
  s.add_development_dependency 'rspec', '~> 3.0'
38
38
  if RUBY_VERSION >= '2.0'
39
- s.add_development_dependency 'rubocop', '~> 0.47'
39
+ s.add_development_dependency 'rubocop', '~> 0.49'
40
40
  end
41
41
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_optim_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.20171101
4
+ version: 0.5.0.20171208
5
5
  platform: x86-linux
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-01 00:00:00.000000000 Z
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: image_optim
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.47'
67
+ version: '0.49'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0.47'
74
+ version: '0.49'
75
75
  description:
76
76
  email:
77
77
  executables: []