diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2022-06-28 02:11:08 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2022-06-28 02:11:08 +0300 |
| commit | ddb931cdb9c15c7b6209dbdf862ba64081b9f115 (patch) | |
| tree | a9338679443ccbfc1b94b83e46440015e3f07291 /net-print/epson-inkjet-printer/files | |
| parent | 4c3584bb8525a0e0ee7950b33aa524707ecfb304 (diff) | |
| download | la-ninpre-overlay-ddb931cdb9c15c7b6209dbdf862ba64081b9f115.tar.gz la-ninpre-overlay-ddb931cdb9c15c7b6209dbdf862ba64081b9f115.zip | |
net-print/epson-inkjet-printer: initial import
phew. i don't think that it's perfect, but it at least kinda works.
Diffstat (limited to 'net-print/epson-inkjet-printer/files')
4 files changed, 134 insertions, 0 deletions
diff --git a/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-cups-libexec-dir.patch b/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-cups-libexec-dir.patch new file mode 100644 index 0000000..47b6387 --- /dev/null +++ b/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-cups-libexec-dir.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -9,7 +9,7 @@ INCLUDES = \ + -I./pagemanager \ + -I./filteropt + +-bindir = $(CUPS_SERVER_DIR)/filter ++bindir = /usr/libexec/cups/filter + + bin_PROGRAMS = epson_inkjet_printer_filter + diff --git a/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-raster.patch b/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-raster.patch new file mode 100644 index 0000000..8594db3 --- /dev/null +++ b/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-raster.patch @@ -0,0 +1,101 @@ + + +--- a/src/pagemanager/pagemanager.c ++++ b/src/pagemanager/pagemanager.c +@@ -22,7 +22,7 @@ + #include "epcgdef.h" + #include "debuglog.h" + #include "memory.h" +-#include "raster.h" ++#include "raster-helper.h" + #include "pagemanager.h" + + extern int JobCanceled; +@@ -45,7 +45,7 @@ fetchRaster(EpsPageManager *pageManager) + int error = 0; + int did_fetch = 0; + int read_bytes = 0; +- int nraster; ++ size_t nraster; + + while (error == 0 && did_fetch == 0 && JobCanceled == 0) { + eps_raster_fetch(privateData->raster_h, NULL, 0, 0, &status); +@@ -212,7 +212,7 @@ int pageManagerGetPageRegion(EpsPageManager *pageManager, EpsPageRegion *pageReg + return EPS_OK; + } + +-int pageManagerGetRaster(EpsPageManager *pageManager, char *buf, int bufSize) ++size_t pageManagerGetRaster(EpsPageManager *pageManager, char *buf, int bufSize) + { + PageManagerPrivateData *privateData = NULL; + int error = EPS_OK; + + +--- a/src/pagemanager/pagemanager.h ++++ b/src/pagemanager/pagemanager.h +@@ -31,7 +31,7 @@ extern "C" + #define EPS_ERROR -1 + #define EPS_OK 0 + +-typedef int (*EpsRasterSource)(char *buf, int bufSize); ++typedef size_t (*EpsRasterSource)(char *buf, int bufSize); + + typedef struct { + EpsRasterSource rasterSource; +@@ -47,7 +47,7 @@ typedef struct { + EpsPageManager* pageManagerCreate(EpsPageRegion pageRegion, EpsFilterPrintOption filterPrintOption, EpsRasterSource rasterSource); + void pageManagerDestroy(EpsPageManager *pageManager); + int pageManagerGetPageRegion(EpsPageManager *pageManager, EpsPageRegion *pageRegion); +-int pageManagerGetRaster(EpsPageManager *pageManager, char *buf, int bufSize); ++size_t pageManagerGetRaster(EpsPageManager *pageManager, char *buf, int bufSize); + int pageManagerIsNextPage(EpsPageManager *pageManager); + + #ifdef __cplusplus + + +--- a/src/raster/raster.c ++++ b/src/raster/raster.c +@@ -218,7 +218,7 @@ eps_raster_init (RASTER * handle, EpsRasterOpt * data, EpsRasterPipeline * pipel + + /* if raster_p equals NULL means that it is need to flush a page. */ + int +-eps_raster_print (RASTER handle, char * raster_p, int raster_bytes, int pixel_num, int * outraster) ++eps_raster_print (RASTER handle, char * raster_p, int raster_bytes, int pixel_num, size_t * outraster) + { + EpsRaster * raster = (EpsRaster *) handle; + EpsRasterPipeline * pipeline = NULL; + + +--- a/src/raster/raster.h ++++ b/src/raster/raster.h +@@ -143,7 +143,7 @@ typedef enum { + } EpsRasterFetchStatus; + + int eps_raster_init (RASTER *, EpsRasterOpt *, EpsRasterPipeline *); +-int eps_raster_print (RASTER, char *, int, int, int *); ++int eps_raster_print (RASTER, char *, int, int, size_t *); + int eps_raster_fetch (RASTER, char *, int, int, EpsRasterFetchStatus *); + int eps_raster_free (RASTER); + + + +--- a/src/raster_to_epson.c ++++ b/src/raster_to_epson.c +@@ -33,7 +33,7 @@ + #include <cups/ppd.h> + #include <cups/raster.h> + +-#include "raster.h" ++#include "raster-helper.h" + #include "memory.h" + #include "raster_to_epson.h" + #include "pagemanager.h" +@@ -75,7 +75,7 @@ static int page_no = 0; + static int pageHeight = 0; + #endif + +-int rasterSource(char *buf, int bufSize) ++size_t rasterSource(char *buf, int bufSize) + { + int readBytes = 0; + if (JobCanceled == 0) { diff --git a/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-resource-dir.patch b/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-resource-dir.patch new file mode 100644 index 0000000..34dcda2 --- /dev/null +++ b/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-resource-dir.patch @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -61,7 +61,7 @@ AC_SUBST(DL_LIBS) + AC_SUBST(STDCPP_LIBS) + + CORE_LIBRARY_PATH=${prefix}/lib"$LSB_ARCH" +-CORE_RESOURCE_PATH=${prefix}/resource ++CORE_RESOURCE_PATH=${prefix}/share/epson-inkjet-printer/resource + + AC_SUBST(CORE_LIBRARY_PATH) + AC_SUBST(CORE_RESOURCE_PATH) diff --git a/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-usrdoc.patch b/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-usrdoc.patch new file mode 100644 index 0000000..4815d0d --- /dev/null +++ b/net-print/epson-inkjet-printer/files/epson-inkjet-printer-1.0.0-usrdoc.patch @@ -0,0 +1,11 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,7 +1,7 @@ + # Copyright (C) Seiko Epson Corporation 2009. + SUBDIRS = src + +-docdir = @prefix@/doc ++docdir = @prefix@/share/doc/${P} + doc_DATA = \ + AUTHORS \ + COPYING \ |
