summaryrefslogtreecommitdiff
path: root/net-print/lm1100
diff options
context:
space:
mode:
Diffstat (limited to 'net-print/lm1100')
-rw-r--r--net-print/lm1100/Manifest11
-rw-r--r--net-print/lm1100/files/lm1100-1.0.2a-class.patch24
-rw-r--r--net-print/lm1100/files/lm1100-1.0.2a-fix-compile-gcc-3.4.patch22
-rw-r--r--net-print/lm1100/files/lm1100-1.0.2a-fix-compile-gcc-4.1.patch73
-rw-r--r--net-print/lm1100/files/lm1100-1.0.2a-makefile.patch35
-rw-r--r--net-print/lm1100/files/lm1100maint-firmware.patch14
-rw-r--r--net-print/lm1100/lm1100-1.0.2a-r1.ebuild45
-rw-r--r--net-print/lm1100/metadata.xml6
8 files changed, 230 insertions, 0 deletions
diff --git a/net-print/lm1100/Manifest b/net-print/lm1100/Manifest
new file mode 100644
index 000000000000..8a1bbc711595
--- /dev/null
+++ b/net-print/lm1100/Manifest
@@ -0,0 +1,11 @@
+AUX lm1100-1.0.2a-class.patch 709 SHA256 5c1543a644e22c38fac3190bea7e344640c9fe335aafe2b3137df8d952d1aced SHA512 1e738e9f6ccf16d9e8afa07c488003b599282578452e793331c2aa9a7c96ba6c4e24044dde503051606d56efef3df8e540b62ccb78687d3b8188e0ecb1b16d58 WHIRLPOOL 22d1387339013c5b639eb462e1992b1e1eb1d3712bf10af9979dcdb705ed31c53118ddfca554304f2240303c97c5d8e5dc1834cdf5b4da1fa2e5134cf326dcb9
+AUX lm1100-1.0.2a-fix-compile-gcc-3.4.patch 866 SHA256 4a7ab49fe2157b1c53e9d7a81a9f929d570e8d255eb2f226aa44c334aa93e076 SHA512 56cfcdcf866bc2a3ea148ffafb574a811bc3ff2920c7b9155f54d6ea5c00b66383ef083cca5e12391c74ed189e59e0b959582ccc88aecb4b3dbe9c3596639467 WHIRLPOOL 6d70166d7e851eaa5a4a8304334731600b5aeacaecfa554be4990835ae732fd20a2bae190ff9637e69a28e86e79cbda5c3e2fd67c4215d947bc0d3300cab6e68
+AUX lm1100-1.0.2a-fix-compile-gcc-4.1.patch 2453 SHA256 6d733e754b5e4f8011c2d009fbac9bd6c102fc205adee8983a88341487d7ea6e SHA512 960f3fabf74c2ed65a5086d9bffc94c96f73a39b112c9f3c4f9e50ed3b8a0830589ef335c2b6a47cb5980269e29ecff21d2c4226af5c764318dac16ea95d2090 WHIRLPOOL 63212864b286ba5fe3549cf00058bbd460e2706c662f767004f8edd0eb86f3cd18c77137670f8550eb6481989e59894da10e64f8eca78035b2937a56b6a7f68a
+AUX lm1100-1.0.2a-makefile.patch 1021 SHA256 f56ed7c14cfc27fb2a26c480d51ee4bb2497c5c813bf502604bd22006fcafa65 SHA512 10b1b0bdda41793168c107f7e8ae388c5721fcfb0719d2abc80d2a90545d0a9fe91f0b8f5e27e322ce980281d5311c4635eb3147e32e13308d8d300336126067 WHIRLPOOL f3229c6e37d260e9123cf9c14260b68e0ab885e20aaba2941523853cd09920f659b6487cc76f066a28562b48637a4bd2b58e1dd48ac730f2dfe2b80ed13934a8
+AUX lm1100maint-firmware.patch 638 SHA256 15448ea5604cdd7ff1baa04a5831477432bdfdf4219916cc5fcd90e8342ceaf6 SHA512 7605373b4777a5b880944d38b318144d8dab18f337080bbba3e6e164ab0c8285a648fc57659fe1efa77053db9af748f96c3c4bf98d114ec70306cf65a027409f WHIRLPOOL 1ba67dc8483a4a97bd48fec716bff292ee26f188e9e9eedd1ff375666a51d93dc6acca993645bb0ab8b22961f29862f2f31c6c070b51cb2807d1f22229df1804
+DIST lm1100.1.0.2a.tar.gz 64316 SHA256 680da0b4a7decef197fa833a57b85e66aa2ec0d67fbcd4345c426fdaca6412fb SHA512 3dda80602af99d93a570e066ca2a121afd93b28b5d28b6f49b52c2c90e288de7b87cefdd5e00bf4edd73439fb6088433fabe884b841befd24183f27a12fcbcb1 WHIRLPOOL b57fc0191d43b66d5c7660c190098d0e09543bfdf86d2f1571ca90f1918dab568489eec437b44468ceeb6fe749b36377484a584a7ce67119177a88a321c630f6
+DIST lm1100maint.tar.gz 708 SHA256 832586bd028e2516f62651bb8e23ced87ea2714831156b1a069231a34971281d SHA512 fe81351705c36dd30e01d402461820ed583d2a8222af8dd81f4dff35c6629592e09fb6dbc0740b9ba0f555de65aeae41c0cb953fbedd0c8620db29b37d797b02 WHIRLPOOL 1d75b48678db43aad319031f6afdd77004a7ee7c9a53101bd4079c3e10255bf163b0776eaf94b076aff3149ea6306929dd65bafd6c2b27f8f174f0fe6980b96e
+EBUILD lm1100-1.0.2a-r1.ebuild 1132 SHA256 c8b4579780ccc41af6e5b5e83b2cfc9a915bd77f20d4c9463928763d59f241d1 SHA512 66faf7c1704f79a5dc9c03ddce75cf070e6a2ccbd35269b06f094904254f39a60fb053e85c5f432fe6423c272cb2f4b3397d7eaccbe5d4d4ecb9b4264d645999 WHIRLPOOL 4168ad112bcfbf562f4a456e656e1d801e61f291960a8f5390369d60f152d022b2600f19ecd926dae8aedb6e6c0760f211b21459a2826bca62e66378c927fd5b
+MISC ChangeLog 2738 SHA256 531445f71c7b5f4abe5ec5aa0f39901cb2f06625f5823608d0a891d208f6a5ce SHA512 100065451f4ab343f25a7f19990b7642ba90d49c4786bbd8a8fe022cb0e2edafc98a012b83ebd810adb089c9a9b586f0b3d65c3fe902bdedd91c2746813180cb WHIRLPOOL 50ef2c7478af396cae8cec9b151ef65cfaf4cb24b4122213b9be024fad10f103a6282dca46a6cc9c3563c3736d485af9d723878fec32b5bb0b44734e11f4ecaa
+MISC ChangeLog-2015 1187 SHA256 356712945e2b1063a1669294472bd625669aaef2f0306960f33c2195ce0c8c59 SHA512 b2999d6470a7d9d14153790776e5da9b32ca143addd3d189c7242857a6cb41eae2de0ba0fe2f990f73249c1b48bee6725597f0b96b256a19549907723c4cd321 WHIRLPOOL 299397ec4fc935a7af56bbcb3cc99f2482c9699dae5e22c64136c1a26eba06d9a7056ed12888463e1b04ea22774f5b8410edf1ca47201b74c0be0c8ac5c35159
+MISC metadata.xml 238 SHA256 0556ecc8da649a50d4d2b33d7f5ca5963b19f18e7088a0159eccd27fa2a0fbf0 SHA512 719a406392f802cb889fcd4b266bc1ecd571529c917b167273d04ad34c2d530ac4c7aa314a9fee7bbe12f497ad2bd0ae45778ac604584500a7e35a745da3749a WHIRLPOOL 868744adfbc9fb329824cc0b5ce353d5d1a3018e5016c6096a467bffc2eb83c1c6fc151d9bd9d7404299e21c34f0201b124a8c6a82ebabd6099bb299b6c689f6
diff --git a/net-print/lm1100/files/lm1100-1.0.2a-class.patch b/net-print/lm1100/files/lm1100-1.0.2a-class.patch
new file mode 100644
index 000000000000..b771e1bf1449
--- /dev/null
+++ b/net-print/lm1100/files/lm1100-1.0.2a-class.patch
@@ -0,0 +1,24 @@
+diff -ur lm1100.1.0.2a~/PaintLine300c.h lm1100.1.0.2a/PaintLine300c.h
+--- lm1100.1.0.2a~/PaintLine300c.h 2006-06-22 15:14:36.000000000 +0200
++++ lm1100.1.0.2a/PaintLine300c.h 2006-06-22 15:14:55.000000000 +0200
+@@ -32,7 +32,7 @@
+ int size;
+ int x,y;
+
+- friend LexmarkProtocol300c;
++ friend class LexmarkProtocol300c;
+
+ public:
+ void pad(int pad_amount);
+diff -ur lm1100.1.0.2a~/PaintLineBW.h lm1100.1.0.2a/PaintLineBW.h
+--- lm1100.1.0.2a~/PaintLineBW.h 2006-06-22 15:14:36.000000000 +0200
++++ lm1100.1.0.2a/PaintLineBW.h 2006-06-22 15:14:55.000000000 +0200
+@@ -33,7 +33,7 @@
+ int size;
+ int x,y;
+
+- friend LexmarkProtocolBW;
++ friend class LexmarkProtocolBW;
+
+ public:
+ void pad(int pad_amount);
diff --git a/net-print/lm1100/files/lm1100-1.0.2a-fix-compile-gcc-3.4.patch b/net-print/lm1100/files/lm1100-1.0.2a-fix-compile-gcc-3.4.patch
new file mode 100644
index 000000000000..60e1b5c2e7a3
--- /dev/null
+++ b/net-print/lm1100/files/lm1100-1.0.2a-fix-compile-gcc-3.4.patch
@@ -0,0 +1,22 @@
+--- LexmarkProtocol300c.cc.orig 2000-11-21 09:06:22.000000000 +0100
++++ LexmarkProtocol300c.cc 2004-06-16 13:28:04.397060286 +0200
+@@ -69,7 +69,7 @@
+ Jet **LexmarkProtocol300c::createJets(int *numJets, Map *imageMap)
+ {
+ *numJets = 6;
+- class Jet **jets = new (Jet *)[6];
++ class Jet **jets = new Jet*[6];
+ jets[0] = new Jet(0,9,0,imageMap,LEFT_JET,0,8);
+ jets[1] = new Jet(1,0,0,imageMap,RIGHT_JET,0,8);
+ jets[2] = new Jet(2,-9,20,imageMap,LEFT_JET,1,8);
+--- LexmarkProtocolBW.cc.orig 2000-11-21 09:06:22.000000000 +0100
++++ LexmarkProtocolBW.cc 2004-06-16 13:32:51.291509280 +0200
+@@ -68,7 +68,7 @@
+ Jet **LexmarkProtocolBW::createJets(int *numJets, Map *imageMap)
+ {
+ *numJets = 2;
+- class Jet **jets = new (Jet *)[2];
++ class Jet **jets = new Jet*[2];
+ jets[0] = new Jet(0,9,0,imageMap,LEFT_JET,0,28);
+ jets[1] = new Jet(0,0,0,imageMap,RIGHT_JET,0,28);
+
diff --git a/net-print/lm1100/files/lm1100-1.0.2a-fix-compile-gcc-4.1.patch b/net-print/lm1100/files/lm1100-1.0.2a-fix-compile-gcc-4.1.patch
new file mode 100644
index 000000000000..bc797a09a44b
--- /dev/null
+++ b/net-print/lm1100/files/lm1100-1.0.2a-fix-compile-gcc-4.1.patch
@@ -0,0 +1,73 @@
+diff -ru lm1100.1.0.2a~/Jet.h lm1100.1.0.2a/Jet.h
+--- lm1100.1.0.2a~/Jet.h 2006-12-02 18:48:16.000000000 +0100
++++ lm1100.1.0.2a/Jet.h 2006-12-02 18:49:54.000000000 +0100
+@@ -45,7 +45,7 @@
+ Coord imageStart; // start of image from edge of paper
+
+ bool insideImage(int x, int y);
+- bool Jet::needsPainting(int ix, int iy, int bit);
++ bool needsPainting(int ix, int iy, int bit);
+
+ public:
+ /* Range of paper jet covers when head is at 0,0 */
+@@ -54,7 +54,7 @@
+ /* Range of paper jet needs to cover to get the entire image */
+ void getImageRange(Rect *dest);
+ Coord *getPreferredImageStart(Coord *start);
+- int Jet::getPreferredEnd();
++ int getPreferredEnd();
+ bool finished();
+ void setImageStart(Coord *imageStart);
+ void paint(int startX, int endX, int y, class LexmarkProtocol *protocol);
+diff -ru lm1100.1.0.2a~/LinkedList.h lm1100.1.0.2a/LinkedList.h
+--- lm1100.1.0.2a~/LinkedList.h 2006-12-02 18:48:16.000000000 +0100
++++ lm1100.1.0.2a/LinkedList.h 2006-12-02 18:49:54.000000000 +0100
+@@ -26,8 +26,8 @@
+ void *object;
+ LinkedList *next;
+
+- LinkedList::LinkedList();
+- LinkedList::LinkedList(void * object);
++ LinkedList();
++ LinkedList(void * object);
+ };
+
+ #endif
+diff -ru lm1100.1.0.2a~/Map.h lm1100.1.0.2a/Map.h
+--- lm1100.1.0.2a~/Map.h 2006-12-02 18:48:16.000000000 +0100
++++ lm1100.1.0.2a/Map.h 2006-12-02 18:49:54.000000000 +0100
+@@ -41,7 +41,7 @@
+ int height; /* height of map in cells */
+
+ Map(int width, int height, int cellSize);
+- Map::~Map();
++ ~Map();
+
+ void cacheLines(int start, int len);
+ void addAlgorithm(MapAlgorithm *algorithm);
+diff -ru lm1100.1.0.2a~/PPMRaw.h lm1100.1.0.2a/PPMRaw.h
+--- lm1100.1.0.2a~/PPMRaw.h 2006-12-02 18:48:16.000000000 +0100
++++ lm1100.1.0.2a/PPMRaw.h 2006-12-02 18:49:54.000000000 +0100
+@@ -32,7 +32,7 @@
+
+ public:
+ PPMRaw(Reader *reader,bool readMagic);
+- static void PPMRaw::readHeader(int *width, int *height, int *maxval, Reader *reader, bool readMagic);
++ static void readHeader(int *width, int *height, int *maxval, Reader *reader, bool readMagic);
+
+ virtual void getRGB(RGB *rgb, int x, int y);
+
+diff -ru lm1100.1.0.2a~/Rect.h lm1100.1.0.2a/Rect.h
+--- lm1100.1.0.2a~/Rect.h 2006-12-02 18:48:16.000000000 +0100
++++ lm1100.1.0.2a/Rect.h 2006-12-02 18:49:54.000000000 +0100
+@@ -23,8 +23,8 @@
+ class Rect
+ {
+ public:
+- Rect::Rect();
+- Rect::Rect(int x, int y, int width, int height);
++ Rect();
++ Rect(int x, int y, int width, int height);
+
+ int x,y,width,height;
+
diff --git a/net-print/lm1100/files/lm1100-1.0.2a-makefile.patch b/net-print/lm1100/files/lm1100-1.0.2a-makefile.patch
new file mode 100644
index 000000000000..b1f0a2ac4913
--- /dev/null
+++ b/net-print/lm1100/files/lm1100-1.0.2a-makefile.patch
@@ -0,0 +1,35 @@
+--- lm1100.1.0.2a~/Makefile 2001-02-26 01:40:16.000000000 +0100
++++ lm1100.1.0.2a/Makefile 2006-10-23 19:01:57.000000000 +0200
+@@ -7,17 +7,19 @@
+ VERSION=lm1100.1.0.2a
+ TARFILES = $(FILES:%=$(VERSION)/%)
+
+-CC = g++ -O2
++CXX?=g++
++CXXFLAGS?= -O2
++#CC = g++ -O2
+ #CC = g++ -g
+
+ lm1100: $(OBJS)
+- $(CC) -o lm1100 $(OBJS) $(LIBS)
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o lm1100 $(OBJS) $(LIBS)
+
+ bufcat: SpongeWriter.o ThreadSafeCircleBuffer.o bufcat.o
+- $(CC) -o bufcat SpongeWriter.o ThreadSafeCircleBuffer.o bufcat.o -lpthread
++ $(CXX) $(CXXFLAGS) -o bufcat SpongeWriter.o ThreadSafeCircleBuffer.o bufcat.o -lpthread
+
+ leak: $(OBJS)
+- $(CC) -o lm1100 $(OBJS) $(LIBS) /usr/local/LeakTracer/LeakTracer.o
++ $(CXX) $(CXXFLAGS) -o lm1100 $(OBJS) $(LIBS) /usr/local/LeakTracer/LeakTracer.o
+
+ tarball: $(FILES)
+ rm $(VERSION);ln -s . $(VERSION);tar -cf - $(TARFILES) | gzip > $(VERSION).tar.gz
+@@ -27,7 +29,7 @@
+ rm *.o
+
+ %.o: %.cc
+- $(CC) $(DEFINES) -c $<
++ $(CXX) $(CXXFLAGS) $(DEFINES) -c $<
+
+ TAGS: $(SRCS)
+ etag $(SRCS)
diff --git a/net-print/lm1100/files/lm1100maint-firmware.patch b/net-print/lm1100/files/lm1100maint-firmware.patch
new file mode 100644
index 000000000000..5c3f4c92ea86
--- /dev/null
+++ b/net-print/lm1100/files/lm1100maint-firmware.patch
@@ -0,0 +1,14 @@
+diff -ur lm1100maint~/lm1100back lm1100maint/lm1100back
+--- lm1100maint~/lm1100back 2006-06-26 19:48:51.000000000 +0200
++++ lm1100maint/lm1100back 2006-06-26 19:50:41.000000000 +0200
+@@ -1,2 +1,2 @@
+ #!/bin/sh
+-dd if=/usr/share/lm1100maint/lexmarkback of=/dev/lp0
++dd if=/usr/share/lm1100/lexmarkback of=/dev/lp0
+diff -ur lm1100maint~/lm1100change lm1100maint/lm1100change
+--- lm1100maint~/lm1100change 2006-06-26 19:48:51.000000000 +0200
++++ lm1100maint/lm1100change 2006-06-26 19:50:55.000000000 +0200
+@@ -1,2 +1,2 @@
+ #!/bin/sh
+-dd if=/usr/share/lm1100maint/lexmarkchange of=/dev/lp0
++dd if=/usr/share/lm1100/lexmarkchange of=/dev/lp0
diff --git a/net-print/lm1100/lm1100-1.0.2a-r1.ebuild b/net-print/lm1100/lm1100-1.0.2a-r1.ebuild
new file mode 100644
index 000000000000..507c39e260d8
--- /dev/null
+++ b/net-print/lm1100/lm1100-1.0.2a-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="The Tim Engler's Lexmark 1100 driver"
+HOMEPAGE="http://www.linuxprinting.org/show_driver.cgi?driver=lm1100"
+MY_P=${P/lm1100-/lm1100.}
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz
+ mirror://gentoo/${PN}maint.tar.gz"
+#http://www.linuxprinting.org/download/printing/${PN}/${PN}maint.tar.gz
+#http://www.linuxprinting.org/download/printing/${PN}/${MY_P}.tar.gz
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+DEPEND=""
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-fix-compile-gcc-3.4.patch"\
+ "${FILESDIR}/${P}-fix-compile-gcc-4.1.patch"\
+ "${FILESDIR}/${P}-class.patch"\
+ "${FILESDIR}/${P}-makefile.patch"
+ cd "${WORKDIR}/${PN}maint" || die
+ epatch "${FILESDIR}/${PN}maint-firmware.patch"
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)"
+}
+
+src_install() {
+ dobin lm1100
+ dodoc README RELEASE.txt
+
+ cd "${WORKDIR}/${PN}maint" || die
+ dobin lm1100back lm1100change
+ insinto "/usr/share/${PN}"
+ doins lexmarkback lexmarkchange
+ newdoc README README.maint
+}
diff --git a/net-print/lm1100/metadata.xml b/net-print/lm1100/metadata.xml
new file mode 100644
index 000000000000..8f24252f25d3
--- /dev/null
+++ b/net-print/lm1100/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<longdescription>The Tim Engler's Lexmark 1100 driver</longdescription>
+</pkgmetadata>