From cd356b722fd8d162f02a5059fae1a66e00be52e3 Mon Sep 17 00:00:00 2001
From: V3n3RiX <venerix@koprulu.sector>
Date: Sun, 17 Mar 2024 00:48:59 +0000
Subject: gentoo auto-resync : 17:03:2024 - 00:48:58

---
 net-print/Manifest.gz                              | Bin 6418 -> 6417 bytes
 net-print/epson-inkjet-printer-escpr/Manifest      |   3 +
 .../epson-inkjet-printer-escpr-1.8.5.ebuild        |  39 +++++++
 ...jet-printer-escpr-1.8.5-1-missing-include.patch | 129 +++++++++++++++++++++
 4 files changed, 171 insertions(+)
 create mode 100644 net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.8.5.ebuild
 create mode 100644 net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.8.5-1-missing-include.patch

(limited to 'net-print')

diff --git a/net-print/Manifest.gz b/net-print/Manifest.gz
index 4e87cbc03593..2174a360586e 100644
Binary files a/net-print/Manifest.gz and b/net-print/Manifest.gz differ
diff --git a/net-print/epson-inkjet-printer-escpr/Manifest b/net-print/epson-inkjet-printer-escpr/Manifest
index b59845544b7c..7e93ba19a55f 100644
--- a/net-print/epson-inkjet-printer-escpr/Manifest
+++ b/net-print/epson-inkjet-printer-escpr/Manifest
@@ -1,10 +1,13 @@
 AUX 1.6.5-warnings.patch 1115 BLAKE2B eac889dc8f5b39bbcf633c3ff2469ba1d3e07f475aa29f82e2ff81568aa72e2a3c25018c481b9d56bfd321314fb931561bbaed5b0883597c6fb296465ac486f1 SHA512 8a32ce7d22bb97cf1a7c1864353cab4a148eb4d1dc599f355420e0119dfb89abbfb66cbe58c8f35e2f8fc3a62b0c4018e0d48065acd21b17cb250e4722b9e027
 AUX epson-inkjet-printer-escpr-1.7.7-fnocommon.patch 309 BLAKE2B 70e10c99dcf8b5d06acd38722f419c09f994253538d88cc9621051ee58b8a9cbe203c35c279c9ef8b5f0f7cd091118a0b2ccf802e09e2996f4e6346e7927f695 SHA512 5cff64797453868d1d0540a22fd72b53d7214d2e9c574cdf635206baf71fc227147babcfe97c73193ca356ad40afa5bb7ea80107576efee138b936e052b9fb2d
 AUX epson-inkjet-printer-escpr-1.8.4-1-missing-include.patch 6575 BLAKE2B 24e0d0e2674fb74b4cfabe27a695c08f4b1a87a26ddb82956157449c09c4f0e71ca9585db3507b92902ec7deb02a41a3aa9df770820379bcd851b47f4865b8e1 SHA512 392b4713ca94fd8656d39205f61db3f5491c09a15f5dc1f1239a07928d62d243d24941893c197bc227195129e7e346c8479de234aaafbf91d64716dba395068a
+AUX epson-inkjet-printer-escpr-1.8.5-1-missing-include.patch 6575 BLAKE2B 24e0d0e2674fb74b4cfabe27a695c08f4b1a87a26ddb82956157449c09c4f0e71ca9585db3507b92902ec7deb02a41a3aa9df770820379bcd851b47f4865b8e1 SHA512 392b4713ca94fd8656d39205f61db3f5491c09a15f5dc1f1239a07928d62d243d24941893c197bc227195129e7e346c8479de234aaafbf91d64716dba395068a
 DIST epson-inkjet-printer-escpr-1.8.3-1.src.rpm 5127233 BLAKE2B f00ec01459411100c0502afbda4d9b3449af80ac4517e4288c3861558eef6ec946f4a6c04ea4e22818a455befa652d7135a5d2bce5e3941284f16862ebc4546f SHA512 d4cbf8342e5c664c7473c43f00739bc5ea5f6ccdb818893338bab103cee77630aaf33c1714313e4ae79687a152f8389d9a68faff685d63a35888c28d9abce9dc
 DIST epson-inkjet-printer-escpr-1.8.4-1.tar.gz 5595766 BLAKE2B 9baba92331d0f55a6831d23a7b9b2824b5f33392d41f6ef0e2c45a4df7b54503d16b14dccc5dcc0d9b163f2677ba473b502e605f2f9509a1fc8c6c3095bbe858 SHA512 548b0cc27ab91c19b1d4fad79e3c3cacfb821b7c3156d8f1f3aafd31b94405794a86ff8b6abf5e56fb6692a471d96b5665a006cdc748d8de83c2ebadb0f634bc
+DIST epson-inkjet-printer-escpr-1.8.5-1.tar.gz 5666905 BLAKE2B 549c948709993779b5615b501038fdceb6c3d6f173709b8cf99459346fff89923bdbe1babe34ee98eed4e1ebbd7a4b5962ddbc9cec9711aa15ff2056fec3d436 SHA512 4117b1efe903e4f506bbc67c45079f1d467ff6527691308734e55d32feeda3ec44b2dd85361e0243114f924eef04a91b0a5e86b5008f0a32ef323989b3d2896f
 DIST epson-inkjet-printer-escpr2-1.2.9-1.tar.gz 5367737 BLAKE2B 6868569a6bed622e2f50619a36ffb0a0f7e834fd8a794ae3bc906d971db26b0c86386c9545190ec384027d0b8e8f62ddda6cb24f1e3f60b9c535a1eeddff4332 SHA512 70ff744d42fac4c79d2994648763b0b3970ee5463a7a310a0721a63735d536cb9a0499c894289d946b30e6f564f9bf60aa61801580ab6635af211d50867921a1
 EBUILD epson-inkjet-printer-escpr-1.2.9.ebuild 834 BLAKE2B 94b8e2591dbd4342fa04624a1234bc5de84305a81f1842e44b3c8d8f757fe857d62e2c14daeb4e8b36bf8273d28c1576a73d36980edc7a24abc6eca35bfa038a SHA512 bf8ba23bb4b03a04a265e49629b1dc47983996daf45722d72b32019fb6a3cb09ebb97bc0a18fe2f36b5af90467f526e342e807dedff4d17e04020c17fafffa0e
 EBUILD epson-inkjet-printer-escpr-1.8.3.ebuild 932 BLAKE2B 49e4bc55171903b2f93389580ddc61edfa4d9704a71bf3553c710208e7c81920633be8e26d8be70fc3248a35960a2cecd9f256389c5b41752f72f2e0565f38bc SHA512 bb1226233c72b2b11f01e748c34f5549bdca4f54ec8a26bd386547aa39c455eb0ef056522a20282e1034c286138707db36a7017122fbacf662f98b6a4314bc28
 EBUILD epson-inkjet-printer-escpr-1.8.4.ebuild 1076 BLAKE2B 1a85f7a78f78efc27d19ac73f1f8983954b2c221066120fea6868798565863c6063d50879d6c0ffb29aa719eab7d70cd6f25e9e867dbb38c1b45e9a984458d3d SHA512 81bbc30855fda0cd34282e685690ee02415e10ed69f570c8f4e66d7b898004e65ad492dafbb7b44f54de6d35eaa0ff7acc66cfabdd431b61e38d6afea275c69b
+EBUILD epson-inkjet-printer-escpr-1.8.5.ebuild 1078 BLAKE2B f299e49b44afa3b247da00f2c4921ef33a07166a3d5f8f30ecf57a0dfa55bbda1ca63aba8754391c7d471ca7e7aa5a371d9cade59284a91d188511fb79250be9 SHA512 f37e166a58f6cff824a3d6d38b9f23eaa448e315417f143c261f173189170047c6c48a3e165cccf3d908d783c98c0c225eb7839ff31df069dde8381ecbe6d3ab
 MISC metadata.xml 1890 BLAKE2B b90489bd80a2957d1a6287a727d847c1fdbdfb576f7e816b60196b7d82ac13c72fd19322202f651cdfd11b56fe09fe962230f0d2eb4f1a9565ff9ad9b9ab0c24 SHA512 8cb73e282d607a5699d4c3e4f6f6f4663153ea9a0240a5b6b73317ab7ffb8ba1d54ed00c7b6ed53045059b246f62ee841cf27cc83a56a7ed72d9b2131463bc24
diff --git a/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.8.5.ebuild b/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.8.5.ebuild
new file mode 100644
index 000000000000..051693641546
--- /dev/null
+++ b/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.8.5.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Epson Inkjet Printer Driver (ESC/P-R)"
+HOMEPAGE="https://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+
+# https://support.epson.net/linux/Printer/LSB_distribution_pages/en/escpr.php
+# Use the "source package for arm CPU" to get a tarball instead of an srpm.
+SRC_URI="https://download3.ebz.epson.net/dsc/f/03/00/15/68/89/fbff579f15226ffcc4a16895bd6bce6842277802/${P}-1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64"
+
+DEPEND="net-print/cups"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+	"${FILESDIR}/1.6.5-warnings.patch"
+	"${FILESDIR}/${PN}-1.7.7-fnocommon.patch"
+	"${FILESDIR}/${P}-1-missing-include.patch"
+)
+
+src_configure() {
+	econf --disable-shared
+
+	# Makefile calls ls to generate a file list which is included in Makefile.am
+	# Set the collation to C to avoid automake being called automatically
+	unset LC_ALL
+	export LC_COLLATE=C
+}
+
+src_install() {
+	emake -C ppd DESTDIR="${D}" install
+	emake -C src DESTDIR="${D}" install
+	einstalldocs
+}
diff --git a/net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.8.5-1-missing-include.patch b/net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.8.5-1-missing-include.patch
new file mode 100644
index 000000000000..4229d649bb26
--- /dev/null
+++ b/net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.8.5-1-missing-include.patch
@@ -0,0 +1,129 @@
+--- /dev/null	2024-02-07 07:14:59.428332875 -0500
++++ b/lib/epson-escpage.h	2024-02-07 12:39:28.463235607 -0500
+@@ -0,0 +1,126 @@
++/*__________________________________  epson-escpage.h   ________________________________*/
++
++/*       1         2         3         4         5         6         7         8        */
++/*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/
++/*******************************************|********************************************/
++/*
++ *   Copyright (c) 2010  Seiko Epson Corporation                 All rights reserved.
++ *
++ *   Copyright protection claimed includes all forms and matters of
++ *   copyrightable material and information now allowed by statutory or judicial
++ *   law or hereinafter granted, including without limitation, material generated
++ *   from the software programs which are displayed on the screen such as icons,
++ *   screen display looks, etc.
++ *
++ */
++/*******************************************|********************************************/
++/*                                                                                      */
++/*                            Epson ESC/Page command Functions                          */
++/*                                                                                      */
++/*******************************************|********************************************/
++
++#ifndef __EPSON_ESCPAGE_H__
++#define __EPSON_ESCPAGE_H__
++#ifdef __cplusplus
++extern "C" {
++#endif
++/*------------------------------------  Includes   -------------------------------------*/
++/*******************************************|********************************************/
++#include "epson-escpr-pvt.h"
++#include "epson-escpr-media.h"
++
++/*------------------------------- Global Compiler Switch -------------------------------*/
++/*******************************************|********************************************/
++#define EPS_PAGE_RIT				(1)
++#define EPS_PAGE_TONER_SAVE			(0)
++#define EPS_PAGE_OUTUNIT_FACEDOWN	(1)
++#define EPS_PAGE_LOWRES_MODE		(1)		/* OFF=0 / ON=1 */
++#define EPS_PAGE_HT_ERR_DIFFUSION	(1)		/* Halftoning mode */
++
++/*-----------------------------------  Definitions  ------------------------------------*/
++/*******************************************|********************************************/
++#define	dim(x)	(sizeof(x) / sizeof(x[0]))
++#define EPS_EJL_LINEMAX				(256)
++
++/*---------------------------  ESC/Page Media Declarations   ---------------------------*/
++/*******************************************|********************************************/
++typedef struct _tagEPS_PAGE_MEDIASIZE_ {
++    EPS_INT32	id;
++    EPS_INT32	paper_x;
++    EPS_INT32	paper_y;
++	EPS_INT32	print_area_x_border;
++	EPS_INT32	print_area_y_border;
++    const EPS_INT8 *name;
++} EPS_PAGE_MEDIASIZE;
++
++/* Size 600dpi */
++static const EPS_PAGE_MEDIASIZE pageMediaSize[] = {
++	{ EPS_MSID_A4,		4960, 7016, 4720, 6776, "A4" },
++	{ EPS_MSID_A3,		7016, 9920, 6776, 9680, "A3" },
++	{ EPS_MSID_B4,		6072, 8600, 5832, 8360, "B4" },
++	{ EPS_MSID_B5,		4300, 6072, 4060, 5832, "B5" },
++	{ EPS_MSID_LETTER,	5100, 6600, 4860, 6360, "LT" },
++	{ EPS_MSID_LEGAL,	5100, 8400, 4860, 8160, "LGL"},
++	{ EPS_MSID_POSTCARD,2362, 3496, 2122, 3256, "PC" }
++};
++
++/*---------------------------  Data Structure Declarations   ---------------------------*/
++/*******************************************|********************************************/
++/* command data buffer                */
++typedef struct tagEPS_COMMAND_BUFFER 
++{
++	EPS_UINT32	size;		/* allocated buffer size */
++	EPS_UINT32	len;		/* data size */
++	EPS_INT8*	p;          
++	void*		pExtent;
++} EPS_COMMAND_BUFFER;
++
++/*--------------------------  Public Function Declarations   ---------------------------*/
++/*******************************************|********************************************/
++extern EPS_ERR_CODE pageInitJob				(const EPS_JOB_ATTRIB *pJobAttr);
++extern EPS_ERR_CODE pageAllocBuffer			(void);
++extern void			pageRelaseBuffer		(void);
++extern EPS_ERR_CODE pageStartJob			(void);
++extern EPS_ERR_CODE pageEndJob				(void);
++extern EPS_ERR_CODE pageStartPage			(void);
++extern EPS_ERR_CODE pageEndPage				(void);
++extern EPS_ERR_CODE pageColorRow			(const EPS_BANDBMP*, EPS_RECT*);
++extern EPS_ERR_CODE pageSendLeftovers		(void);
++
++    /*** Get Supported Media Function                                                   */
++    /*** -------------------------------------------------------------------------------*/
++extern EPS_ERR_CODE pageCreateMediaInfo  	(EPS_PRINTER_INN* printer, EPS_UINT8* pmString,
++											 EPS_INT32 pmSize							);
++extern void			pageClearSupportedMedia	(EPS_PRINTER_INN* printer					);
++extern EPS_ERR_CODE pageGetPrintAreaInfoFromTable(const EPS_JOB_ATTRIB*,
++                                                 EPS_UINT32*, EPS_UINT32*, EPS_LAYOUT_INFO*);
++extern EPS_ERR_CODE pageCreatePrintAreaInfoFromTable (EPS_UINT32,EPS_PRINT_AREA_INFO*   );
++
++    /*** Get Printable Area                                                             */
++    /*** -------------------------------------------------------------------------------*/
++extern EPS_ERR_CODE pageGetPrintableArea  (EPS_JOB_ATTRIB*, EPS_UINT32*, EPS_UINT32*    );
++
++
++/*-----------------------  ESC/Page Local Function Declarations   ----------------------*/
++/*******************************************|********************************************/
++typedef EPS_ERR_CODE	(*PAGE_CmdBuffGrow	)(EPS_COMMAND_BUFFER *pCmdBuff, EPS_INT32 addSize);
++
++extern EPS_ERR_CODE ejlStart	(EPS_COMMAND_BUFFER *pCmdBuff, PAGE_CmdBuffGrow pfncGrow);
++extern EPS_ERR_CODE ejlEnd		(EPS_COMMAND_BUFFER *pCmdBuff, PAGE_CmdBuffGrow pfncGrow,
++								 EPS_INT32 pageCount									);
++extern EPS_ERR_CODE ejlPageEsc	(EPS_COMMAND_BUFFER *pCmdBuff, PAGE_CmdBuffGrow pfncGrow);
++
++#ifdef __cplusplus
++}
++#endif
++
++#endif  /* def __EPSON_ESCPAGE_H__ */
++
++/*__________________________________  epson-escpage.h   ________________________________*/
++  
++/*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/
++/*       1         2         3         4         5         6         7         8        */
++/*******************************************|********************************************/
++/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
++/***** End of File *** End of File *** End of File *** End of File *** End of File ******/
++/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-- 
cgit v1.2.3