Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Net-CUPS/, dev-perl/Net-CUPS/files/
Date: Sat, 31 Dec 2016 15:08:33
Message-Id: 1483196879.c426d288182183de62f96eec7b7773cef410ee26.dilfridge@gentoo
1 commit: c426d288182183de62f96eec7b7773cef410ee26
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 31 14:47:10 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 31 15:07:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c426d288
7
8 dev-perl/Net-CUPS: Remove old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-perl/Net-CUPS/Manifest | 1 -
13 dev-perl/Net-CUPS/Net-CUPS-0.610.0-r2.ebuild | 23 ---
14 .../Net-CUPS/files/Net-CUPS-0.610.0-cups16.patch | 165 ---------------------
15 3 files changed, 189 deletions(-)
16
17 diff --git a/dev-perl/Net-CUPS/Manifest b/dev-perl/Net-CUPS/Manifest
18 index 0dbc981..03b2a94 100644
19 --- a/dev-perl/Net-CUPS/Manifest
20 +++ b/dev-perl/Net-CUPS/Manifest
21 @@ -1,2 +1 @@
22 -DIST Net-CUPS-0.61.tar.gz 83893 SHA256 fd4a5a86038df9dfe57dcfed78b2d045e4b18d507a6fa5a8f82ecb3a732e0e35 SHA512 6e906dfebd7a5970f393f8187808049004d6b89fc268bb89abb4dca43145ec97ea45dd3faa51a04de2843a2aedc8051bcb88ab688f4a9886acc188166e2c2cf7 WHIRLPOOL df2ac30aa164ab8e6494bcd0cad59143020df8e50d670d9fd6dcfd0ec986c73363788435ae83b6bc7ac67cdf430cd6550a5926038f124e950735caa47adfae53
23 DIST Net-CUPS-0.63.tar.gz 86922 SHA256 a548a34f6258970375d3f5173e070b65a128bbf77ebb0cc6e88ebba55c15a687 SHA512 ac407d1a0ebb686cd1f12f76516581073da90cf129a24ef57f10facf0a879ee9a13bdf0b498163c998030f9ec837fc237f440d24894e997e7e57ad2a13693b8a WHIRLPOOL e5e52e666bd4388ac57da37a4205362a6ea4bb1792b60e90bbd7c686b786fc0d0415893c6601a0916cf9bab4882b442cc588c71b2c4b586c1f314f92fc505606
24
25 diff --git a/dev-perl/Net-CUPS/Net-CUPS-0.610.0-r2.ebuild b/dev-perl/Net-CUPS/Net-CUPS-0.610.0-r2.ebuild
26 deleted file mode 100644
27 index 4ea3544..00000000
28 --- a/dev-perl/Net-CUPS/Net-CUPS-0.610.0-r2.ebuild
29 +++ /dev/null
30 @@ -1,23 +0,0 @@
31 -# Copyright 1999-2014 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -# $Id$
34 -
35 -EAPI=5
36 -
37 -MODULE_AUTHOR=DHAGEMAN
38 -MODULE_VERSION=0.61
39 -inherit perl-module
40 -
41 -DESCRIPTION="CUPS C API Interface"
42 -
43 -SLOT="0"
44 -KEYWORDS="amd64 x86"
45 -IUSE="test"
46 -
47 -RDEPEND="net-print/cups"
48 -DEPEND="${RDEPEND}
49 - test? ( virtual/perl-Test-Simple )"
50 -
51 -PATCHES=( "${FILESDIR}/${P}-cups16.patch" )
52 -
53 -SRC_TEST="do"
54
55 diff --git a/dev-perl/Net-CUPS/files/Net-CUPS-0.610.0-cups16.patch b/dev-perl/Net-CUPS/files/Net-CUPS-0.610.0-cups16.patch
56 deleted file mode 100644
57 index 4c5bf66..00000000
58 --- a/dev-perl/Net-CUPS/files/Net-CUPS-0.610.0-cups16.patch
59 +++ /dev/null
60 @@ -1,165 +0,0 @@
61 -diff --git a/CUPS.xs b/CUPS.xs
62 -index 2da9558..109f73f 100644
63 ---- a/CUPS.xs
64 -+++ b/CUPS.xs
65 -@@ -5,9 +5,17 @@
66 - #include "ppport.h"
67 -
68 - #include <cups/cups.h>
69 -+#if (CUPS_VERSION_MAJOR > 1) || (CUPS_VERSION_MINOR > 5)
70 -+#define HAVE_CUPS_1_6 1
71 -+#endif
72 -+
73 - /*#include <cups/backend.h>*/
74 - #include <cups/http.h>
75 --#include <cups/image.h>
76 -+#ifdef HAVE_CUPS_1_6
77 -+ #include <cupsfilters/image.h>
78 -+#else
79 -+ #include <cups/image.h>
80 -+#endif
81 - #include <cups/ipp.h>
82 - #include <cups/ppd.h>
83 - #include <cups/file.h>
84 -@@ -19,6 +27,17 @@
85 - #include "const-c.inc"
86 - #include "packer.c"
87 -
88 -+#ifndef HAVE_CUPS_1_6
89 -+#define ippGetGroupTag(attr) attr->group_tag
90 -+#define ippGetName(attr) attr->name
91 -+#define ippGetValueTag(attr) attr->value_tag
92 -+#define ippGetInteger(attr, element) attr->values[element].integer
93 -+#define ippGetString(attr, element, language) attr->values[element].string.text
94 -+#define ippGetStatusCode(ipp) ipp->request.status.status_code
95 -+#define ippFirstAttribute(ipp) ipp->current = ipp->attrs
96 -+#define ippNextAttribute(ipp) ipp->current = ipp->current->next
97 -+#endif
98 -+
99 - static SV *password_cb = (SV*) NULL;
100 -
101 - const char *
102 -@@ -200,7 +219,7 @@ NETCUPS_getPPDMakes()
103 - if (response != NULL) {
104 - attr = ippFindAttribute(response, "ppd-make", IPP_TAG_TEXT);
105 - rv = sv_newmortal();
106 -- sv_setpv(rv, attr->values[0].string.text);
107 -+ sv_setpv(rv, ippGetString(attr, 0, NULL));
108 - XPUSHs(rv);
109 - count++;
110 -
111 -@@ -211,7 +230,7 @@ NETCUPS_getPPDMakes()
112 - }
113 -
114 - rv = sv_newmortal();
115 -- sv_setpv(rv, attr->values[0].string.text);
116 -+ sv_setpv(rv, ippGetString(attr, 0, NULL));
117 - XPUSHs(rv);
118 - count++;
119 - }
120 -@@ -252,7 +271,7 @@ NETCUPS_getAllPPDs ()
121 - "ppd-make-and-model",
122 - IPP_TAG_TEXT);
123 - rv = sv_newmortal();
124 -- sv_setpv(rv, attr->values[0].string.text);
125 -+ sv_setpv(rv, ippGetString(attr, 0, NULL));
126 - XPUSHs(rv);
127 - count++;
128 - while (attr != NULL) {
129 -@@ -263,7 +282,7 @@ NETCUPS_getAllPPDs ()
130 - break;
131 - }
132 - rv = sv_newmortal();
133 -- sv_setpv(rv, attr->values[0].string.text);
134 -+ sv_setpv(rv, ippGetString(attr, 0, NULL));
135 - XPUSHs(rv);
136 - count++;
137 - }
138 -@@ -356,14 +375,14 @@ NETCUPS_getPPDFileName(ppdfilename);
139 - if (response != NULL) {
140 - attr = ippFindAttribute(response, "ppd-name", IPP_TAG_NAME );
141 - while ((attr != NULL) && (i < 1)) {
142 -- tmpppd = attr->values[0].string.text;
143 -+ tmpppd = ippGetString(attr, 0, NULL);
144 - attr = ippFindNextAttribute(response,
145 - "ppd-make",
146 - IPP_TAG_TEXT);
147 - attr = ippFindNextAttribute(response,
148 - "ppd-make-and-model",
149 - IPP_TAG_TEXT);
150 -- if (strcmp(attr->values[0].string.text, ppdfilename) == 0 ) {
151 -+ if (strcmp(ippGetString(attr, 0, NULL), ppdfilename) == 0 ) {
152 - /* return tmpppd; */
153 - strcpy(test, tmpppd);
154 - break;
155 -@@ -410,12 +429,12 @@ NETCUPS_getDeviceAttribute( device, attribute, attribute_type )
156 - attr = ippFindNextAttribute(response, "printer-name", IPP_TAG_NAME);
157 -
158 - while (attr != NULL) {
159 -- if (strcmp(attr->values[0].string.text, device) == 0) {
160 -+ if (strcmp(ippGetString(attr, 0, NULL), device) == 0) {
161 - attr = ippFindNextAttribute( response,
162 - attribute,
163 - attribute_type);
164 - rv = sv_newmortal();
165 -- sv_setpv( rv, attr->values[0].string.text);
166 -+ sv_setpv( rv, ippGetString(attr, 0, NULL));
167 - XPUSHs( rv );
168 - break;
169 - }
170 -@@ -858,15 +877,15 @@ NETCUPS_getAttributes( ipp )
171 - SV* rv = NULL;
172 - int count = 0;
173 - ipp_attribute_t* attr = NULL;
174 -- for (attr = ipp->attrs; attr != NULL; attr = attr->next)
175 -+ for (attr = ippFirstAttribute(ipp); attr != NULL; attr = ippNextAttribute(ipp))
176 - {
177 -- while (attr != NULL && attr->group_tag != IPP_TAG_JOB)
178 -- attr = attr->next;
179 -+ while (attr != NULL && ippGetGroupTag(attr) != IPP_TAG_JOB)
180 -+ attr = ippNextAttribute(ipp);
181 -
182 - if (attr == NULL)
183 - break;
184 - rv = sv_newmortal();
185 -- sv_setpv( rv, attr->name );
186 -+ sv_setpv( rv, ippGetName(attr) );
187 - XPUSHs( rv );
188 - count++;
189 - }
190 -@@ -880,27 +899,27 @@ NETCUPS_getAttributeValue( ipp, name )
191 - SV* rv = NULL;
192 - int count = 0;
193 - ipp_attribute_t* attr = NULL;
194 -- for (attr = ipp->attrs; attr != NULL; attr = attr->next)
195 -+ for (attr = ippFirstAttribute(ipp); attr != NULL; attr = ippNextAttribute(ipp))
196 - {
197 -- while (attr != NULL && attr->group_tag != IPP_TAG_JOB)
198 -- attr = attr->next;
199 -+ while (attr != NULL && ippGetGroupTag(attr) != IPP_TAG_JOB)
200 -+ attr = ippNextAttribute(ipp);
201 -
202 - if (attr == NULL)
203 - break;
204 -
205 -- if( !strcmp( attr->name, name ) )
206 -+ if( !strcmp( ippGetName(attr), name ) )
207 - {
208 - rv = sv_newmortal();
209 -- if( ( attr->value_tag == IPP_TAG_INTEGER ) ||
210 -- ( attr->value_tag == IPP_TAG_ENUM ) )
211 -+ if( ( ippGetValueTag(attr) == IPP_TAG_INTEGER ) ||
212 -+ ( ippGetValueTag(attr) == IPP_TAG_ENUM ) )
213 - {
214 - /* We have a number with any luck ... */
215 -- sv_setiv( rv, attr->values[0].integer );
216 -+ sv_setiv( rv, ippGetInteger(attr, 0) );
217 - }
218 - else
219 - {
220 - /* We have a string ... maybe ... try to set it. */
221 -- sv_setpv( rv, attr->values[0].string.text );
222 -+ sv_setpv( rv, ippGetString(attr, 0, NULL) );
223 - }
224 -
225 - XPUSHs( rv );