diff --git a/net-print/epson-inkjet-printer-escpr/Manifest b/net-print/epson-inkjet-printer-escpr/Manifest index a4c4c5302646d..2a56dd6a2f2f9 100644 --- a/net-print/epson-inkjet-printer-escpr/Manifest +++ b/net-print/epson-inkjet-printer-escpr/Manifest @@ -1,2 +1,3 @@ DIST epson-inkjet-printer-escpr-1.8.6-1.tar.gz 5715741 BLAKE2B 0da5e0af022bf2ce42ef94631c984b8308562bcb8f1f47a8f50b77be09326a80e9495ddaf02becdf72e78e50041f73cdd558c96d72046600452de50bc68f1bc8 SHA512 d0040c99793ba33e54ec5f0137f3b672628f089a6cd792916c24fc5edab75702561dade91eb63cd4b3b8e898f7b4647c899ca425e1449a401c7ff562f8cc0f1e +DIST epson-inkjet-printer-escpr-1.8.8-1.src.rpm 5274878 BLAKE2B 9c876fd321fee6dae734dd3f0442edd89d63c97a1702435ffbe65d077a5f5afcb79ab911c87a46c83a7c7e8264c6266591db3975e37b006a614981992703cc59 SHA512 85bcaff840fe4dfb256b42e5625e221ad273881b7bbeefafc53cff96ab4ddb91e0045fdfcdcf9e53a469385ec524077bfc40051429fba205b659c95741168a51 DIST epson-inkjet-printer-escpr2-1.2.15-1.tar.gz 5560479 BLAKE2B 8180fe06df8175ec31044b0eec2a125b9567c11a827343401a07e59e8bd93e689617b9b29364374f1d6ba6d6bca320d6615f601791c59e966d3a4d63f7adbeb0 SHA512 62cd5161f65f8ca6f8c1a8bb755e06eb147d4a06b5f796a8068ed9235b3abf38e6ccb10e82bdd93fddc085b90a7f9332e024ba09679aa08490a05735c0372653 diff --git a/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.8.8.ebuild b/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.8.8.ebuild new file mode 100644 index 0000000000000..9ecf5a2c11bb9 --- /dev/null +++ b/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.8.8.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools edos2unix rpm + +DESCRIPTION="Epson Inkjet Printer Driver (ESC/P-R)" +HOMEPAGE="https://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" +SRC_URI="${P}-1.src.rpm" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc64" +RESTRICT="fetch" + +DEPEND="net-print/cups" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PV}-warnings.patch" + "${FILESDIR}/${PN}-1.7.7-fnocommon.patch" + "${FILESDIR}/${PN}-1.8-missing-include.patch" +) + +pkg_nofetch() { + einfo "Please download ${SRC_URI} from:" + einfo "https://download-center.epson.com/search/?region=US&language=en" + einfo "and move it to your distfiles directory." +} + +src_prepare() { + local f + for f in $(find ./ -type f || die); do + edos2unix "${f}" + done + + eautoreconf + default +} + +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/1.8.8-warnings.patch b/net-print/epson-inkjet-printer-escpr/files/1.8.8-warnings.patch new file mode 100644 index 0000000000000..3f01ee52ba4ee --- /dev/null +++ b/net-print/epson-inkjet-printer-escpr/files/1.8.8-warnings.patch @@ -0,0 +1,53 @@ +--- a/lib/epson-escpr-api.h 2026-03-19 07:42:36.886592312 -0400 ++++ b/lib/epson-escpr-api.h 2026-03-19 07:48:42.364228918 -0400 +@@ -111,6 +111,10 @@ extern EPS_ERR_CODE epsGetUsersizeRange + /*** -------------------------------------------------------------------------------*/ + extern EPS_ERR_CODE epsMakeMainteCmd (EPS_INT32, EPS_UINT8*, EPS_UINT32* ); + ++extern EPS_ERR_CODE SetupJobAttrib (const EPS_JOB_ATTRIB* ); ++extern EPS_ERR_CODE SendStartJob (EPS_BOOL ); ++extern EPS_ERR_CODE PrintBand (const EPS_UINT8*, EPS_UINT32, EPS_UINT32* ); ++ + #ifdef __cplusplus + } + #endif +--- a/src/filter.c 2026-03-19 07:43:28.517557190 -0400 ++++ b/src/filter.c 2026-03-19 07:49:49.216432346 -0400 +@@ -31,7 +31,9 @@ + + #include "epson-protocol.h" + #include "epson-escpr-api.h" ++#include "epson-escpr-services.h" + #include "epson-escpr-mem.h" ++#include "epson-escpage.h" + + #include "err.h" + #include "mem.h" +@@ -41,6 +43,7 @@ + #include "optBase.h" + #include "linux_cmn.h" + #include "custompage.h" ++#include "xfifo.h" + + #define WIDTH_BYTES(bits) (((bits) + 31) / 32 * 4) + +--- a/src/mem.c 2026-03-19 07:43:34.625555671 -0400 ++++ b/src/mem.c 2026-03-19 07:50:52.904484035 -0400 +@@ -22,6 +22,7 @@ + #endif + + #include ++#include "err.h" + #include "mem.h" + + void * +--- a/src/wrapper.c 2026-03-19 07:43:45.227424448 -0400 ++++ b/src/wrapper.c 2026-03-19 07:51:13.850794453 -0400 +@@ -35,6 +35,7 @@ + #include + + #include "libprtX.h" ++#include "custompage.h" + + #define HAVE_PPM_W 0 +