commit:     3496e0734aea0e27e88cfe7b5bf804714c5fcba6
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 27 19:43:13 2018 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Aug 27 21:05:32 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3496e073

net-print/c2esp: Version bump to 27, EAPI 7

This now uses CMake, which is much less painful. Unfortunately my old
printer turned out to be dead so this has only been build tested.

Package-Manager: Portage-2.3.48, Repoman-2.3.10

 net-print/c2esp/Manifest                           |  1 +
 net-print/c2esp/c2esp-27.ebuild                    | 29 ++++++++++++++++++
 .../files/0001-Fix-various-missing-includes.patch  | 35 ++++++++++++++++++++++
 3 files changed, 65 insertions(+)

diff --git a/net-print/c2esp/Manifest b/net-print/c2esp/Manifest
index bbe6a99c995..c3a56a3241b 100644
--- a/net-print/c2esp/Manifest
+++ b/net-print/c2esp/Manifest
@@ -1,2 +1,3 @@
+DIST c2esp-27.tar.gz 143551 BLAKE2B 
7cc80fd72eed24c24cb153d7395a692849c51249ca40a563f94bedbb82c6d976bce6b44d47dbe21c36ec40f26571178f562b175485f404d356724b4bc3f611bf
 SHA512 
d3ff9dc6de7cf692e4be4f4b316f862d271bff06181f0000daf1ce2fb6921f1b24efe88ec24f7b811d78cb9dca18fcba3f17dd5273ac84ceb9f6bfcecedeecce
 DIST c2esp25c.tar.gz 338047 BLAKE2B 
645127bdd61f478d519a7d17a1f621357e0c80ac6b313832ddcaba6744cb7f4a62a592c1140293e78a3a63447ad7295bd3fcda0f6f18f0d33b1cca0cca162803
 SHA512 
788da75c0049c1aa445890d67a7088bc4e7aa5c4e3e67689677fa5bee0e17e29fbb6e7ba9397aaec99f43ba79043aca7d147b6c510e3dd472d238ce6e2636b12
 DIST c2esp26.tar.gz 127593 BLAKE2B 
84e6ff61fc5af225526a569861bf316a2b7b1aa8f2bf4d7af15a04042f9dd2da7726d34b66d12dea8748532a54d5ae3a1b0bbfafdccccbea192725751cf3416e
 SHA512 
aa1ca61f895de4892e1058b349fcf1830da78455ffbd0d9989b7ac4e922076e184de91a2b79f285d946d29ece7a6d8159f62c900ed8d6c76859a4261c92da359

diff --git a/net-print/c2esp/c2esp-27.ebuild b/net-print/c2esp/c2esp-27.ebuild
new file mode 100644
index 00000000000..69e58fbb92f
--- /dev/null
+++ b/net-print/c2esp/c2esp-27.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A CUPS filter for Kodak ESP printers"
+HOMEPAGE="https://sourceforge.net/projects/cupsdriverkodak";
+SRC_URI="mirror://sourceforge/cupsdriverkodak/files/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+DEPEND=">=media-libs/jbigkit-2.0-r1:=
+       >=net-print/cups-1.6
+       sys-libs/zlib:="
+
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/0001-Fix-various-missing-includes.patch
+)
+
+src_configure() {
+       # Don't trust cups-config in case ROOT!=/.
+
+       econf \
+               --with-cupsfilterdir="${EPREFIX}"/usr/libexec/cups/filter \
+               --with-cupsdatadir="${EPREFIX}"/usr/share/cups
+}

diff --git a/net-print/c2esp/files/0001-Fix-various-missing-includes.patch 
b/net-print/c2esp/files/0001-Fix-various-missing-includes.patch
new file mode 100644
index 00000000000..bde86e66668
--- /dev/null
+++ b/net-print/c2esp/files/0001-Fix-various-missing-includes.patch
@@ -0,0 +1,35 @@
+From 4341f243a34dbb8140800337d189345c370dc499 Mon Sep 17 00:00:00 2001
+From: Didier Raboud <o...@debian.org>
+Date: Fri, 9 Feb 2018 17:23:25 +0100
+Subject: Fix various missing includes
+
+Last-Update: 2016-10-03
+---
+ src/c2espcommon.h | 1 +
+ src/command2esp.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/src/c2espcommon.h b/src/c2espcommon.h
+index 471f46a..088a2b8 100644
+--- a/src/c2espcommon.h
++++ b/src/c2espcommon.h
+@@ -19,6 +19,7 @@
+  */
+ 
+ #include <cups/sidechannel.h> //FlushBackChannel, and the side channel 
functions and constants
++#include <stdio.h> // FILE
+ #include <fcntl.h> //files
+ #include <time.h> //time functions used for debugging
+ 
+diff --git a/src/command2esp.c b/src/command2esp.c
+index 529342c..e30357e 100644
+--- a/src/command2esp.c
++++ b/src/command2esp.c
+@@ -44,6 +44,7 @@ Maintenance=003?
+ #include <cups/cups.h>
+ #include <cups/sidechannel.h> //FlushBackChannel, and the side channel 
functions and constants
+ #include "string.h"
++#include "strings.h" // strncasecmp
+ #include <ctype.h> 
+ #include <fcntl.h> //files
+ #include <time.h> //time functions used for debugging

Reply via email to