Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/c2esp/, net-print/c2esp/files/
Date: Mon, 27 Aug 2018 21:05:45
Message-Id: 1535403932.3496e0734aea0e27e88cfe7b5bf804714c5fcba6.chewi@gentoo
1 commit: 3496e0734aea0e27e88cfe7b5bf804714c5fcba6
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 27 19:43:13 2018 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 27 21:05:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3496e073
7
8 net-print/c2esp: Version bump to 27, EAPI 7
9
10 This now uses CMake, which is much less painful. Unfortunately my old
11 printer turned out to be dead so this has only been build tested.
12
13 Package-Manager: Portage-2.3.48, Repoman-2.3.10
14
15 net-print/c2esp/Manifest | 1 +
16 net-print/c2esp/c2esp-27.ebuild | 29 ++++++++++++++++++
17 .../files/0001-Fix-various-missing-includes.patch | 35 ++++++++++++++++++++++
18 3 files changed, 65 insertions(+)
19
20 diff --git a/net-print/c2esp/Manifest b/net-print/c2esp/Manifest
21 index bbe6a99c995..c3a56a3241b 100644
22 --- a/net-print/c2esp/Manifest
23 +++ b/net-print/c2esp/Manifest
24 @@ -1,2 +1,3 @@
25 +DIST c2esp-27.tar.gz 143551 BLAKE2B 7cc80fd72eed24c24cb153d7395a692849c51249ca40a563f94bedbb82c6d976bce6b44d47dbe21c36ec40f26571178f562b175485f404d356724b4bc3f611bf SHA512 d3ff9dc6de7cf692e4be4f4b316f862d271bff06181f0000daf1ce2fb6921f1b24efe88ec24f7b811d78cb9dca18fcba3f17dd5273ac84ceb9f6bfcecedeecce
26 DIST c2esp25c.tar.gz 338047 BLAKE2B 645127bdd61f478d519a7d17a1f621357e0c80ac6b313832ddcaba6744cb7f4a62a592c1140293e78a3a63447ad7295bd3fcda0f6f18f0d33b1cca0cca162803 SHA512 788da75c0049c1aa445890d67a7088bc4e7aa5c4e3e67689677fa5bee0e17e29fbb6e7ba9397aaec99f43ba79043aca7d147b6c510e3dd472d238ce6e2636b12
27 DIST c2esp26.tar.gz 127593 BLAKE2B 84e6ff61fc5af225526a569861bf316a2b7b1aa8f2bf4d7af15a04042f9dd2da7726d34b66d12dea8748532a54d5ae3a1b0bbfafdccccbea192725751cf3416e SHA512 aa1ca61f895de4892e1058b349fcf1830da78455ffbd0d9989b7ac4e922076e184de91a2b79f285d946d29ece7a6d8159f62c900ed8d6c76859a4261c92da359
28
29 diff --git a/net-print/c2esp/c2esp-27.ebuild b/net-print/c2esp/c2esp-27.ebuild
30 new file mode 100644
31 index 00000000000..69e58fbb92f
32 --- /dev/null
33 +++ b/net-print/c2esp/c2esp-27.ebuild
34 @@ -0,0 +1,29 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +DESCRIPTION="A CUPS filter for Kodak ESP printers"
41 +HOMEPAGE="https://sourceforge.net/projects/cupsdriverkodak"
42 +SRC_URI="mirror://sourceforge/cupsdriverkodak/files/${P}.tar.gz"
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~x86"
46 +
47 +DEPEND=">=media-libs/jbigkit-2.0-r1:=
48 + >=net-print/cups-1.6
49 + sys-libs/zlib:="
50 +
51 +RDEPEND="${DEPEND}"
52 +
53 +PATCHES=(
54 + "${FILESDIR}"/0001-Fix-various-missing-includes.patch
55 +)
56 +
57 +src_configure() {
58 + # Don't trust cups-config in case ROOT!=/.
59 +
60 + econf \
61 + --with-cupsfilterdir="${EPREFIX}"/usr/libexec/cups/filter \
62 + --with-cupsdatadir="${EPREFIX}"/usr/share/cups
63 +}
64
65 diff --git a/net-print/c2esp/files/0001-Fix-various-missing-includes.patch b/net-print/c2esp/files/0001-Fix-various-missing-includes.patch
66 new file mode 100644
67 index 00000000000..bde86e66668
68 --- /dev/null
69 +++ b/net-print/c2esp/files/0001-Fix-various-missing-includes.patch
70 @@ -0,0 +1,35 @@
71 +From 4341f243a34dbb8140800337d189345c370dc499 Mon Sep 17 00:00:00 2001
72 +From: Didier Raboud <odyx@××××××.org>
73 +Date: Fri, 9 Feb 2018 17:23:25 +0100
74 +Subject: Fix various missing includes
75 +
76 +Last-Update: 2016-10-03
77 +---
78 + src/c2espcommon.h | 1 +
79 + src/command2esp.c | 1 +
80 + 2 files changed, 2 insertions(+)
81 +
82 +diff --git a/src/c2espcommon.h b/src/c2espcommon.h
83 +index 471f46a..088a2b8 100644
84 +--- a/src/c2espcommon.h
85 ++++ b/src/c2espcommon.h
86 +@@ -19,6 +19,7 @@
87 + */
88 +
89 + #include <cups/sidechannel.h> //FlushBackChannel, and the side channel functions and constants
90 ++#include <stdio.h> // FILE
91 + #include <fcntl.h> //files
92 + #include <time.h> //time functions used for debugging
93 +
94 +diff --git a/src/command2esp.c b/src/command2esp.c
95 +index 529342c..e30357e 100644
96 +--- a/src/command2esp.c
97 ++++ b/src/command2esp.c
98 +@@ -44,6 +44,7 @@ Maintenance=003?
99 + #include <cups/cups.h>
100 + #include <cups/sidechannel.h> //FlushBackChannel, and the side channel functions and constants
101 + #include "string.h"
102 ++#include "strings.h" // strncasecmp
103 + #include <ctype.h>
104 + #include <fcntl.h> //files
105 + #include <time.h> //time functions used for debugging