1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
{
"name": "Zbar",
"description": "Suite of barcodes-reading tools",
"url": "https://downloads.sourceforge.net/project/zbar/zbar/0.10/zbar-0.10.tar.bz2",
"mirror": null,
"homepage": "https://zbar.sourceforge.io",
"depends": [
{
"depend": "autoconf",
"build-depend": true
},
{
"depend": "automake",
"build-depend": true
},
{
"depend": "gettext",
"build-depend": true
},
{
"depend": "libtool",
"build-depend": true
},
{
"depend": "xmlto",
"build-depend": true
},
{
"depend": "pkg-config",
"build-depend": true
},
{
"depend": "freetype",
"build-depend": false
},
{
"depend": "imagemagick",
"build-depend": false
},
{
"depend": "jpeg",
"build-depend": false
},
{
"depend": "libtool",
"build-depend": false
},
{
"depend": "ufraw",
"build-depend": false
},
{
"depend": "xz",
"build-depend": false
}
],
"resource": [],
"conflicts": [],
"patches": [
{
"url": null,
"data": [
"diff --git a/zbar/jpeg.c b/zbar/jpeg.c\n",
"index fb566f4..d1c1fb2 100644\n",
"--- a/zbar/jpeg.c\n",
"+++ b/zbar/jpeg.c\n",
"@@ -79,8 +79,15 @@ int fill_input_buffer (j_decompress_ptr cinfo)\n",
" void skip_input_data (j_decompress_ptr cinfo,\n",
" long num_bytes)\n",
" {\n",
"- cinfo->src->next_input_byte = NULL;\n",
"- cinfo->src->bytes_in_buffer = 0;\n",
"+ if (num_bytes > 0) {\n",
"+ if (num_bytes < cinfo->src->bytes_in_buffer) {\n",
"+ cinfo->src->next_input_byte += num_bytes;\n",
"+ cinfo->src->bytes_in_buffer -= num_bytes;\n",
"+ }\n",
"+ else {\n",
"+ fill_input_buffer(cinfo);\n",
"+ }\n",
"+ }\n",
" }\n",
" \n",
" void term_source (j_decompress_ptr cinfo)\n"
]
}
],
"install": [
"if build.head?",
"inreplace \"configure.ac\", \"-Werror\", \"\"",
"gettext = Formula[\"gettext\"]",
"system \"autoreconf\", \"-fvi\", \"-I\", \"#{gettext.opt_share}/aclocal\"",
"end",
"inreplace [\"configure\", \"zbarimg/zbarimg.c\"],",
"\"wand/MagickWand.h\",",
"\"ImageMagick-7/MagickWand/MagickWand.h\"",
"args = %W[",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-python",
"--without-qt",
"--disable-video",
"--without-gtk",
"--without-x",
"]",
"system \"./configure\", *args",
"system \"make\", \"install\""
],
"version": "0.10",
"file": "zbar.rb"
}
|