image_optim_pack 0.5.0.20171101-amd64-freebsd → 0.5.0.20171208-amd64-freebsd

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: fca32a5e901d8a4f340f99c8830e46192a595c79
4
- data.tar.gz: 271d6569d6d81e6308076e13bf5d213d6412e4e1
3
+ metadata.gz: 1a08052014744fc61a1a42cf0172e0aa7ebfa374
4
+ data.tar.gz: 6cc9ce413049bd7e5f2ffae960519996ba3871c1
5
5
  SHA512:
6
- metadata.gz: a982341b7e464f70607a02ab7d02286fefff85d707b0234f03cbbc3305b85b15cabefa8befc8a6660b61427608d55dd9c8f91eec1910369bec6036b983997f08
7
- data.tar.gz: fa9749381d8c5e898bed92f1b6b5848712225cdc23f5d9128b9d6452644ff7b11a39cdd7280bf74e41d0163e9ca5d1744227fef759176b71f8c0be7d2e62af48
6
+ metadata.gz: 02e3610e4246f49b222c85d965e6e315fdda7d20002603b9231f8a71876c4364a2356709ca7725f3aeda987d77cd233304ca9ffe18d4168c49ae89559aa64f14
7
+ data.tar.gz: c27ce00fadf7b10d221925657297e2ff42285b4d6fcc2e13964601546e627024f1625de511669c57c2d844990c7ece61759258e47f1b53499899b387387041f0
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: amd64-freebsd
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: []