summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-11-17 21:26:32 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-11-17 21:26:32 +0000
commitf3ef5354a64560456161d408a0e835ecdc6300da (patch)
tree1471d313894b4e05c4252e06b89fdde120311d70 /net-print
parentMarking gst-plugins-neon-0.10.14 ppc64 for bug 290343 (diff)
downloadhistorical-f3ef5354a64560456161d408a0e835ecdc6300da.tar.gz
historical-f3ef5354a64560456161d408a0e835ecdc6300da.tar.bz2
historical-f3ef5354a64560456161d408a0e835ecdc6300da.zip
Version bump, add myself to maintainers, fixes bug #258574
Package-Manager: portage-2.2_rc50/cvs/Linux x86_64
Diffstat (limited to 'net-print')
-rw-r--r--net-print/splix/ChangeLog8
-rw-r--r--net-print/splix/Manifest8
-rw-r--r--net-print/splix/files/splix-2.0.0-algo0x0d_one_scanline_over_fix.patch289
-rw-r--r--net-print/splix/metadata.xml6
-rw-r--r--net-print/splix/splix-2.0.0.ebuild63
5 files changed, 370 insertions, 4 deletions
diff --git a/net-print/splix/ChangeLog b/net-print/splix/ChangeLog
index a2e82e8a894d..c4bf9fed61d7 100644
--- a/net-print/splix/ChangeLog
+++ b/net-print/splix/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-print/splix
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/splix/ChangeLog,v 1.14 2009/09/13 10:35:07 tgurr Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/splix/ChangeLog,v 1.15 2009/11/17 21:26:32 voyageur Exp $
+
+*splix-2.0.0 (17 Nov 2009)
+
+ 17 Nov 2009; Bernard Cafarelli <voyageur@gentoo.org> +splix-2.0.0.ebuild,
+ +files/splix-2.0.0-algo0x0d_one_scanline_over_fix.patch, metadata.xml:
+ Version bump, add myself to maintainers, fixes bug #258574
13 Sep 2009; Timo Gurr <tgurr@gentoo.org> splix-1.1.0.ebuild,
splix-1.1.1.ebuild:
diff --git a/net-print/splix/Manifest b/net-print/splix/Manifest
index 9a381b639483..1f7e7cfa3a7e 100644
--- a/net-print/splix/Manifest
+++ b/net-print/splix/Manifest
@@ -1,10 +1,14 @@
AUX fixMakefile.patch 887 RMD160 808cb12b2d704d53ac1ed8afdfa1fa596d6b12c9 SHA1 17a7a920d35a15f95bf165fece4e60ed0bb1f56a SHA256 a146a10895215a940369abd8e1428db3e5007502b4bf4bd731c9bb1d553256e4
AUX splix-1.1.0-fix-makefile.patch 1237 RMD160 47393d65c9f10e14c3e1d161ef9e4e065ea79431 SHA1 161e0347c281c06f29b09c7166bc95a93debb41a SHA256 d492d6231b80f5e6dc58dbbd926ca975f41b7c2072cd5d773e68a008e8824a6f
+AUX splix-2.0.0-algo0x0d_one_scanline_over_fix.patch 14016 RMD160 9a2395a4e143504def63ab85698cedd0dfa78666 SHA1 49baf79d47ef2a15553679fe78308f660b051cdb SHA256 1358989dc10673f011bed156b298160a2d6934434b63bcbb7a5e0b068e964187
+DIST samsung_cms.tar.bz2 2893884 RMD160 fdc92bfe0c2fd0a6d538b9c1e88071aab012ffd3 SHA1 b854cdc4647043e7aae1a4affa5a1813a4d04613 SHA256 b45daf773caba7ab6b66abba667c56be2d78ad60ac3648d4a9a916cd2275a684
DIST splix-1.0.1-beta2.tar.bz2 33474 RMD160 d9264250e3117eb2f2915734651156d581bc0f74 SHA1 c2de61b5948c8358a197434e8ea3fb7459f4251e SHA256 9c762c1f94e80f79252a56ab92c95bc6e9a9aa8af5a88128e236853cc6109999
DIST splix-1.1.0.tar.bz2 63855 RMD160 c2df961fa2a52ae78da678df17790196835f1302 SHA1 3a43615bca43d60c0f2c73ec4a59170a5d766975 SHA256 0210c5015bccd08f0e9c25d40bcd01556a9b10528d40737493c1ef8b16b43491
DIST splix-1.1.1.tar.bz2 65233 RMD160 5804ce71147fe50a1c6f75545a841bb5348471ff SHA1 e25486aeb0500f0d1a221b86b96d28b6307f178b SHA256 fb26ef4083dd57cecbee174fe9c7d1b5b1df06f7ccd90e3006cbeb09c6738209
+DIST splix-2.0.0.tar.bz2 101197 RMD160 7f194de23d465a3acbf5c0eec979b194f016a8b5 SHA1 d40b9fcfd03efd7a9b6b2700fbb0af96569f095b SHA256 97f703fc73a2940e63da43130615f3ef2a06d4d1f85fe6edfed0c0cd79de912f
EBUILD splix-1.0.1_beta2.ebuild 954 RMD160 1ae70d68d04eef1b1f9816068591386c7e229584 SHA1 567f6e24e2f99fc49bc03e9611d5a5e0884ae322 SHA256 f13ff7fdc975fcbafea402d27067353c796f28f7c9e2a51408c204982060d033
EBUILD splix-1.1.0.ebuild 1704 RMD160 c23d77188aed7ebab3a7940a399ca15008b54293 SHA1 2ea33ab14ec825214c811ac1487cdfa07892e829 SHA256 f0ff64dce5443448ed98389e67dd1425b36488fd2153f879aabdf693603a412c
EBUILD splix-1.1.1.ebuild 1709 RMD160 902fa3aa5ee815b63cb212e3c06804632f409fb5 SHA1 710603e6153b7ccd790840978fbcf98dbe048005 SHA256 27562dada3cc741edf3fd8d960674408d4a669e66ad104200180ede1da296a79
-MISC ChangeLog 2807 RMD160 df662592f1f75c02036b5c2c952cfeff6195f4c5 SHA1 f768071ffe2cf1b934ecdeb4837a999cdad30186 SHA256 e80438981ee8c8b3febfbaba002674d3358fc1167cfeec3bc112e8b632bdbc80
-MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43
+EBUILD splix-2.0.0.ebuild 2243 RMD160 3511acce58b4c7c75298f429ed39faf968dfbabb SHA1 6f9ffc4e40c849851a2438a20a76bdbffeff1dee SHA256 0fe853381a33e0aca5bc452333bf8f5dc36f4fe46fe6e3ece15d073b6b5301da
+MISC ChangeLog 3049 RMD160 9737ab6ee13de7da4df8467455d699a8f20f978b SHA1 bfb1e2103577a6ef0cb031545da61d9c55748449 SHA256 30fc1cd17d89d91282d859d647a39906921aabad07da9800e42aa53b239b5229
+MISC metadata.xml 396 RMD160 786e6f8b392630994fc23e44b999607c4e99e8a3 SHA1 f6d4b6456aff27f7d185d5c29740c795306cf0b4 SHA256 004f0a4b1cd4a60f1772e9418f274af9b552c4ad3026ee9dde5e13a0159e99d4
diff --git a/net-print/splix/files/splix-2.0.0-algo0x0d_one_scanline_over_fix.patch b/net-print/splix/files/splix-2.0.0-algo0x0d_one_scanline_over_fix.patch
new file mode 100644
index 000000000000..d5c90a5a7c7a
--- /dev/null
+++ b/net-print/splix/files/splix-2.0.0-algo0x0d_one_scanline_over_fix.patch
@@ -0,0 +1,289 @@
+Index: src/algo0x0d.cpp
+===================================================================
+--- src/algo0x0d.cpp (revisão 266)
++++ src/algo0x0d.cpp (cópia de trabalho)
+@@ -50,16 +50,17 @@
+ inline void Algo0x0D::writeTwoBytesPacket( unsigned char * output,
+ unsigned long & outputSize,
+ long int accumulatedHorizontalOffsetValue,
+- long int displacement,
++ long int accumulatedVerticalOffsetValue,
+ unsigned long accumulatedRunCount )
+ {
+ /* Encodes the run count and vertical displacement in the first byte. */
+ output[ outputSize++ ] =
+- ( unsigned char )( ( displacement << 6 ) | accumulatedRunCount );
++ ( unsigned char )( ( accumulatedVerticalOffsetValue << 6 ) |
++ accumulatedRunCount );
+
+ /* Encodes the offset value in the second byte. This is signed. */
+ output[ outputSize++ ] =
+- ( unsigned char )( 0xFF & accumulatedHorizontalOffsetValue );
++ ( unsigned char )( 0xFF & accumulatedHorizontalOffsetValue );
+ }
+
+
+@@ -71,7 +72,7 @@
+ inline void Algo0x0D::writeFourBytesPacket( unsigned char * output,
+ unsigned long & outputSize,
+ long int accumulatedHorizontalOffsetValue,
+- long int displacement,
++ long int accumulatedVerticalOffsetValue,
+ unsigned long accumulatedRunCount )
+ {
+ /* Encodes the upper 6-bit value of the offset value. */
+@@ -84,8 +85,8 @@
+
+ /* Encode the run count as a unsigned 12-bit value in the third byte. */
+ output[ outputSize++ ] = 0x80 |
+- ( unsigned char )( ( displacement << 4 ) |
+- ( accumulatedRunCount >> 8 ) );
++ ( unsigned char )( ( accumulatedVerticalOffsetValue << 4 ) |
++ ( accumulatedRunCount >> 8 ) );
+ /* Encode the last byte of run count. */
+ output[ outputSize++ ] =
+ ( unsigned char )( 0x000000FF & accumulatedRunCount );
+@@ -100,7 +101,7 @@
+ */
+ inline void Algo0x0D::writeSixBytesPacket( unsigned char * output,
+ unsigned long & outputSize,
+- long int displacement,
++ long int accumulatedCombinedOffsetValue,
+ unsigned long accumulatedRunCount )
+ {
+ /* Write the packet header constant in the first byte. */
+@@ -108,18 +109,21 @@
+
+ /* Encodes the upper 8-bit value of the 24-bit offset value. */
+ output[ outputSize++ ] =
+- ( unsigned char )( ( 0x00FF0000 & displacement ) >> 16 );
++ ( unsigned char )( ( 0x00FF0000 &
++ accumulatedCombinedOffsetValue ) >> 16 );
+
+ /* Encodes the middle 8-bit value of the 24-bit offset value. */
+ output[ outputSize++ ] =
+- ( unsigned char )( ( 0x0000FF00 & displacement ) >> 8 );
++ ( unsigned char )( ( 0x0000FF00 &
++ accumulatedCombinedOffsetValue ) >> 8 );
+
+ /* Encodes the remaining 8-bit value of the 24-bit offset value. */
+ output[ outputSize++ ] =
+- ( unsigned char )( 0x000000FF & displacement );
++ ( unsigned char )( 0x000000FF &
++ accumulatedCombinedOffsetValue );
+
+ /* Encodes the run counts as unsigned 14-bit value in the fifth and
+- sixth byte. */
++ sixth byte. */
+
+ /* Encodes the run counts in upper 6-bits. */
+ output[ outputSize++ ] = 0xC0 |
+@@ -133,7 +137,7 @@
+
+
+ /*
+- * Modifications: 29/06/2008, 08/07/2008.
++ * Modifications: Jun-29-2008, Jul-08-2008, Oct-03-2009, Oct-04-2009.
+ */
+ inline void Algo0x0D::selectPacketSize(
+ unsigned char * output,
+@@ -141,96 +145,82 @@
+ unsigned long preAccumulatedHorizontalOffsetValue,
+ unsigned long accumulatedHorizontalOffsetValue,
+ unsigned long currentHorizontalPenPosition,
+- unsigned long pixelsLeftInScanline,
+ unsigned long accumulatedRunCount,
+ unsigned long consecutiveBlankScanLines,
+ unsigned long currentVerticalPenPosition,
+ const unsigned long wrapWidth )
+ {
+- /* Verify that this is the first offset value on the scanline, but not the
+- first scanline. */
++ /* Set the initial vertical offset value. */
++ long int verticalOffsetValue = consecutiveBlankScanLines;
+
+- /* On every new scanline start, the pre-accumulated offset value is zero. */
++ /* Set the initial horizontal offset value. */
++ long int horizontalOffsetValue = accumulatedHorizontalOffsetValue;
++
++ /* Verify if this is the first formed packet of the scan-line
++ and that it is not the first top-most scan-line of the given band.
++ Can be verified because on every beginning of a scan-line work, the
++ pre-accumulated horizontal offset value is zero. */
+ if ( ( 0 == preAccumulatedHorizontalOffsetValue ) &&
+- ( 0 < currentVerticalPenPosition ) ) {
+- /* Evaluate distance between previous and current pen position
+- to output correct packet format. */
+- long int delta =
+- currentHorizontalPenPosition - accumulatedHorizontalOffsetValue;
++ ( 0 < currentVerticalPenPosition ) ) {
++ /* Evaluate pixel distance between previous and current pen position
++ to find the relative horizontal offset value. */
++ horizontalOffsetValue -= currentHorizontalPenPosition;
+
+- /* Calculate necessary displacement position in correct place. */
+- long int displacement = 0;
++ /* Adjust by +1, when any of the previous scan-lines is not blank.
++ Must account for three cases:
++ A - When the band begins with any number of blank scan-lines.
++ B - When the current non-blank scan-line follow a blank scan-line,
++ but there are non-blank scan-lines previously.
++ C - When the previous scan-line was not blank.
++ Notice that when any of the previous scan-lines is non-blank,
++ the blank scan-line counter is always less than and not equal to
++ the value of the vertical pen position. */
++ if ( consecutiveBlankScanLines < currentVerticalPenPosition ) {
++ verticalOffsetValue++;
++ }
+
+- if ( 0 >= delta ) {
++ } else {
+
+- /* Turn the displacement value into a positive integer value. */
+- delta = - delta;
++ /* Process a sequential packet for current scan-line.
++ The pre-accumulated offset value must be added, this was the
++ previous packet's run count value. */
++ horizontalOffsetValue += preAccumulatedHorizontalOffsetValue;
+
+- if ( ( 127 >= delta ) && ( 63 >= accumulatedRunCount )
+- && ( 0 == consecutiveBlankScanLines ) ) {
+- displacement = 1;
+- writeTwoBytesPacket( output, outputSize, delta,
+- displacement, accumulatedRunCount );
+- } else if ( ( 8191 >= delta )
+- && ( 4095 >= accumulatedRunCount )
+- && ( 2 >= consecutiveBlankScanLines ) ) {
+- displacement = 1 + consecutiveBlankScanLines;
+- writeFourBytesPacket( output, outputSize, delta,
+- displacement, accumulatedRunCount );
+- } else {
+- displacement = wrapWidth *
+- ( 1 + consecutiveBlankScanLines ) + delta;
+- writeSixBytesPacket( output, outputSize, displacement,
+- accumulatedRunCount );
+- }
++ }
+
+- } else {
++ /* Choosing the packet size. */
++ if ( ( 127 >= horizontalOffsetValue )
++ && ( -128 <= horizontalOffsetValue )
++ && ( 63 >= accumulatedRunCount )
++ && ( 1 >= verticalOffsetValue ) ) {
+
+- if ( ( 128 >= delta ) && ( 63 >= accumulatedRunCount )
+- && ( 0 == consecutiveBlankScanLines ) ) {
+- displacement = 1;
+- writeTwoBytesPacket( output, outputSize,
+- -delta,
+- displacement, accumulatedRunCount );
++ /* Issue an encoded 2-byte packet. */
++ writeTwoBytesPacket( output, outputSize,
++ horizontalOffsetValue,
++ verticalOffsetValue,
++ accumulatedRunCount );
+
+- } else if ( ( 8192 >= delta )
+- && ( 4095 >= accumulatedRunCount )
+- && ( 2 >= consecutiveBlankScanLines ) ) {
+- displacement = 1 + consecutiveBlankScanLines;
+- writeFourBytesPacket( output, outputSize, -delta,
+- displacement, accumulatedRunCount );
++ } else if ( ( 8191 >= horizontalOffsetValue )
++ && ( -8192 <= horizontalOffsetValue )
++ && ( 4095 >= accumulatedRunCount )
++ && ( 3 >= verticalOffsetValue ) ) {
+
+- } else {
+- displacement = wrapWidth *
+- ( 1 + consecutiveBlankScanLines ) - delta;
+- writeSixBytesPacket( output, outputSize, displacement,
+- accumulatedRunCount );
++ /* Issue an encoded 4-byte packet. */
++ writeFourBytesPacket( output, outputSize,
++ horizontalOffsetValue,
++ verticalOffsetValue,
++ accumulatedRunCount );
+
+- }
+- }
+-
+ } else {
+
+- /* Add the pre-accumulated offset value. */
+- unsigned long recalculatedOffset = accumulatedHorizontalOffsetValue +
+- preAccumulatedHorizontalOffsetValue;
++ /* Issue an encoded 6-byte packet. */
++ writeSixBytesPacket( output, outputSize,
++ wrapWidth * verticalOffsetValue
++ + horizontalOffsetValue,
++ accumulatedRunCount );
+
+- /* Process the rest of packets in the scanline. */
+- if ( ( 127 >= recalculatedOffset ) && ( 63 >= accumulatedRunCount ) ) {
+- writeTwoBytesPacket( output, outputSize, recalculatedOffset, 0,
+- accumulatedRunCount );
+-
+- } else if ( ( 8191 >= recalculatedOffset ) &&
+- ( 4095 >= accumulatedRunCount ) ) {
+- writeFourBytesPacket( output, outputSize, recalculatedOffset, 0,
+- accumulatedRunCount );
+-
+- } else {
+- writeSixBytesPacket( output, outputSize, recalculatedOffset,
+- accumulatedRunCount );
+- }
+-
+ }
++
+ /* Finished one packet encoding. */
+ }
+
+@@ -397,7 +387,7 @@
+ selectPacketSize( output, outputSize,
+ preAccumulatedHorizontalOffsetValue,
+ accumulatedHorizontalOffsetValue,
+- currentHorizontalPenPosition, pixelsLeftInScanline,
++ currentHorizontalPenPosition,
+ accumulatedRunCount, consecutiveBlankScanLines,
+ currentVerticalPenPosition, wrapWidth );
+ } else {
+Index: include/algo0x0d.h
+===================================================================
+--- include/algo0x0d.h (revisão 266)
++++ include/algo0x0d.h (cópia de trabalho)
+@@ -37,20 +37,20 @@
+ unsigned char * output,
+ unsigned long & outputSize,
+ long int accumulatedHorizontalOffsetValue,
+- long int displacementValue,
++ long int accumulatedVerticalOffsetValue,
+ unsigned long accumulatedRunCount );
+
+ inline void writeFourBytesPacket(
+ unsigned char * output,
+ unsigned long & outputSize,
+ long int accumulatedHorizontalOffsetValue,
+- long int displacementValue,
++ long int accumulatedVerticalOffsetValue,
+ unsigned long accumulatedRunCount );
+
+ inline void writeSixBytesPacket(
+ unsigned char * output,
+ unsigned long & outputSize,
+- long int displacementValue,
++ long int accumulatedCombinedOffsetValue,
+ unsigned long accumulatedRunCount );
+
+ inline void selectPacketSize(
+@@ -59,7 +59,6 @@
+ unsigned long preAccumulatedHorizontalOffsetValue,
+ unsigned long accumulatedHorizontalOffsetValue,
+ unsigned long currentHorizontalPenPosition,
+- unsigned long pixelsLeftInScanline,
+ unsigned long accumulatedRunCount,
+ unsigned long consecutiveBlankScanLines,
+ unsigned long currentVerticalPenPosition,
+
+
diff --git a/net-print/splix/metadata.xml b/net-print/splix/metadata.xml
index a7162e9b7104..06ac4fb6e275 100644
--- a/net-print/splix/metadata.xml
+++ b/net-print/splix/metadata.xml
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>no-herd</herd>
+<herd>printing</herd>
<maintainer>
<email>wschlich@gentoo.org</email>
<name>Wolfram Schlich</name>
<description>Primary maintainer</description>
</maintainer>
+<maintainer>
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+</maintainer>
</pkgmetadata>
diff --git a/net-print/splix/splix-2.0.0.ebuild b/net-print/splix/splix-2.0.0.ebuild
new file mode 100644
index 000000000000..35d7db2ac3b9
--- /dev/null
+++ b/net-print/splix/splix-2.0.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/splix/splix-2.0.0.ebuild,v 1.1 2009/11/17 21:26:32 voyageur Exp $
+
+EAPI=2
+inherit eutils toolchain-funcs
+
+MY_P=${PN}-${PV/_p/-}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="A set of CUPS printer drivers for SPL (Samsung Printer Language) printers"
+HOMEPAGE="http://splix.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
+ http://splix.ap2c.org/samsung_cms.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+jbig"
+
+DEPEND="|| ( >=net-print/cups-1.4.0 net-print/cupsddk )
+ jbig? ( media-libs/jbigkit )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # http://sourceforge.net/tracker/?func=detail&aid=2880411&group_id=175815&atid=874748
+ epatch "${FILESDIR}"/${P}-algo0x0d_one_scanline_over_fix.patch
+ # Honor LDFLAGS
+ sed -e "/[a-z]_LDFLAGS/s/:=.*/:= $\{LDFLAGS\}/" -i module.mk \
+ || die "module.mk sed failed"
+ # Correct link comand, do not strip on install
+ sed -e "s/g++/$\{LINKER\}/" -e "/install/s/-s //" -i rules.mk \
+ || die "rules.mk sed failed"
+}
+
+src_compile() {
+ local options="MODE=optimized"
+ use jbig || options="${options} DISABLE_JBIG=1"
+ emake ${options} CXX="$(tc-getCXX)" \
+ OPTIM_CFLAGS="${CFLAGS}" OPTIM_CXXFLAGS="${CXXFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ gzip "${D}"/$(cups-config --datadir)/model/*/*.ppd || die "ppd gzip failed"
+
+ insinto $(cups-config --datadir)/model/samsung
+ doins -r "${WORKDIR}"/cms
+}
+
+pkg_postinst() {
+ ewarn "You *MUST* make sure that the PPD files that CUPS is using"
+ ewarn "for actually installed printers are updated if you upgraded"
+ ewarn "from a previous version of splix!"
+ ewarn "Otherwise you will be unable to print (your printer might"
+ ewarn "spit out blank pages etc.)."
+ ewarn "To do that, simply delete the corresponding PPD file in"
+ ewarn "/etc/cups/ppd/, click on 'Modify Printer' belonging to the"
+ ewarn "corresponding printer in the CUPS webinterface (usually"
+ ewarn "reachable via http://localhost:631/) and choose the correct"
+ ewarn "printer make and model, for example:"
+ ewarn "'Samsung' -> 'Samsung ML-1610, 1.0 (en)'"
+}