image_optim_pack 0.5.0.20171101 → 0.5.0.20171208
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +7 -0
- data/Makefile +47 -10
- data/image_optim_pack.gemspec +2 -2
- data/vendor/darwin-i386/pngquant +0 -0
- data/vendor/darwin-x86_64/pngquant +0 -0
- data/vendor/freebsd-amd64/pngquant +0 -0
- data/vendor/freebsd-i386/pngquant +0 -0
- data/vendor/linux-i686/pngquant +0 -0
- data/vendor/linux-x86_64/pngquant +0 -0
- data/vendor/openbsd-amd64/pngquant +0 -0
- data/vendor/openbsd-i386/pngquant +0 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8228761a13f143279cb986196b5083377928ebd9
|
4
|
+
data.tar.gz: a9984ef27102740fae038c0a4c6ec23cbb3e73c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4834f6202250988bb439008ed390ebcbc4372afa0adb0bf55d877a9ffbcbc90d649d43b003a180e81bfff1938a337e6b1c3ca6341728a6945fa5a5655b0e626
|
7
|
+
data.tar.gz: b1ec93cfb731caf9c014d7d60e703420411c5b3b9b37f9b49e8466a10004bb41f0717202a1040dd7219efd93c2f84f1f7fec28621b367e1645026c4b41f06f01
|
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.
|
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
|
-
|
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)
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
{ printf "$(ANSI_RED)Expected $
|
173
|
-
|
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,$@)
|
data/image_optim_pack.gemspec
CHANGED
@@ -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.
|
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.
|
39
|
+
s.add_development_dependency 'rubocop', '~> 0.49'
|
40
40
|
end
|
41
41
|
end
|
data/vendor/darwin-i386/pngquant
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/linux-i686/pngquant
CHANGED
Binary file
|
Binary file
|
Binary file
|
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.
|
4
|
+
version: 0.5.0.20171208
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
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.
|
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.
|
74
|
+
version: '0.49'
|
75
75
|
description:
|
76
76
|
email:
|
77
77
|
executables: []
|