diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-31 22:36:37 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-31 22:36:37 +0000 |
commit | d3161a6e7d6da995221cb34a25e1563a5ec78865 (patch) | |
tree | a68cbfc842452e4e271f69995b3e5842b296525f /net-print | |
parent | Tweak dis.h dependency so we don't regenerate the i386_gendis helper binary. (diff) | |
download | historical-d3161a6e7d6da995221cb34a25e1563a5ec78865.tar.gz historical-d3161a6e7d6da995221cb34a25e1563a5ec78865.tar.bz2 historical-d3161a6e7d6da995221cb34a25e1563a5ec78865.zip |
old, requires ghostscript-gpl version no longer in tree
Package-Manager: portage-2.2.0_alpha71_p73/cvs/Linux x86_64
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/splix/ChangeLog | 8 | ||||
-rw-r--r-- | net-print/splix/Manifest | 21 | ||||
-rw-r--r-- | net-print/splix/files/splix-2.0.0-algo0x0d_one_scanline_over_fix.patch | 289 | ||||
-rw-r--r-- | net-print/splix/files/splix-2.0.0-gcc45.patch | 15 | ||||
-rw-r--r-- | net-print/splix/splix-2.0.0.ebuild | 66 | ||||
-rw-r--r-- | net-print/splix/splix-2.0.0_p20110219.ebuild | 62 |
6 files changed, 22 insertions, 439 deletions
diff --git a/net-print/splix/ChangeLog b/net-print/splix/ChangeLog index 8b011fbf4bdd..026dfd5a493e 100644 --- a/net-print/splix/ChangeLog +++ b/net-print/splix/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-print/splix # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/splix/ChangeLog,v 1.23 2011/09/24 21:24:04 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/splix/ChangeLog,v 1.24 2011/10/31 22:36:37 ssuominen Exp $ + + 31 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> -splix-2.0.0.ebuild, + -splix-2.0.0_p20110219.ebuild, + -files/splix-2.0.0-algo0x0d_one_scanline_over_fix.patch, + -files/splix-2.0.0-gcc45.patch: + old 24 Sep 2011; Tony Vroon <chainsaw@gentoo.org> splix-2.0.0_p20110219-r1.ebuild: diff --git a/net-print/splix/Manifest b/net-print/splix/Manifest index 9777de9726f4..58c8971af338 100644 --- a/net-print/splix/Manifest +++ b/net-print/splix/Manifest @@ -1,10 +1,19 @@ -AUX splix-2.0.0-algo0x0d_one_scanline_over_fix.patch 14016 RMD160 9a2395a4e143504def63ab85698cedd0dfa78666 SHA1 49baf79d47ef2a15553679fe78308f660b051cdb SHA256 1358989dc10673f011bed156b298160a2d6934434b63bcbb7a5e0b068e964187 -AUX splix-2.0.0-gcc45.patch 381 RMD160 2dd2a1f808ee80b9b536e542cdde9f584f6a8467 SHA1 e3586c3ddaa98b33531e4f7a2e70eb69e80ef697 SHA256 17832ef83e46db8c8b9f76011cafb7b697bb61072f55e610f7910531aa774665 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + DIST samsung_cms.tar.bz2 2893884 RMD160 fdc92bfe0c2fd0a6d538b9c1e88071aab012ffd3 SHA1 b854cdc4647043e7aae1a4affa5a1813a4d04613 SHA256 b45daf773caba7ab6b66abba667c56be2d78ad60ac3648d4a9a916cd2275a684 -DIST splix-2.0.0.tar.bz2 101197 RMD160 7f194de23d465a3acbf5c0eec979b194f016a8b5 SHA1 d40b9fcfd03efd7a9b6b2700fbb0af96569f095b SHA256 97f703fc73a2940e63da43130615f3ef2a06d4d1f85fe6edfed0c0cd79de912f DIST splix-2.0.0_p20110219.tar.bz2 119512 RMD160 1b333bd0bc53c0ba95aa585c50a69912b76cff9f SHA1 8cf92443dff418b6e2f6cd97c654a24c3e81eb8b SHA256 c01f887bdcfd34b34101819b4aa92ac826b82649424f1fe293a611cad421d723 -EBUILD splix-2.0.0.ebuild 2288 RMD160 7828170b48485aed3493b826858254535e712a92 SHA1 04490530d0cb2444632cdf18a00d20d3a22fcca3 SHA256 6267b7c5660a4d008a2cfb8899847b3b416cace7085a1cbc3d633048bfa7bf02 EBUILD splix-2.0.0_p20110219-r1.ebuild 2122 RMD160 65b55ade16e3e6f5fc5c1930e15ff8de262f0a2b SHA1 6cdc7de6695929b1bf63769b6f09080eb4346b76 SHA256 3be816ca58c4c6f59f49b1e030687f381e3c2a157015517f4959ca903eef5fff -EBUILD splix-2.0.0_p20110219.ebuild 2123 RMD160 b9559a9e92438b5d0c6e55fff2229ce27bb3ab23 SHA1 d6e7b1a31812c7f43860542cfec20758e6307df2 SHA256 95510cfb6cc1e87f4ab01cb1c7148759fef649a514ca383971cd6552e1072e16 -MISC ChangeLog 4633 RMD160 812945ec8667ca883390ebd9c721998ae5b11f79 SHA1 4fdf3daccdbd49929fc18a52d159b45a32e3ab20 SHA256 7a699d52b0636202c4b72b60c756d9ac7cc6701c1e4520140a58cc482b5ae424 +MISC ChangeLog 4842 RMD160 4ea82403a02f667e5a50ddee49411e0140a43816 SHA1 092c613909ef80955ba2fec178c9807c7173b942 SHA256 70ba85ef8fd4950ad04a682bbfb186558e23edf49e7566fae31b8ff4d1bc4fdb MISC metadata.xml 396 RMD160 786e6f8b392630994fc23e44b999607c4e99e8a3 SHA1 f6d4b6456aff27f7d185d5c29740c795306cf0b4 SHA256 004f0a4b1cd4a60f1772e9418f274af9b552c4ad3026ee9dde5e13a0159e99d4 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iQEcBAEBAgAGBQJOryLvAAoJEEdUh39IaPFNZ6kIAI7ixlX0hwQ+/iVOnWJdv0s3 +CVD8GFGdhqROOKZr/qto34CrWKqgENeRxmATkW5ExOgTvMDz5XHWvQLf1KFLTqq/ +bj+7bSQCKNM3nRYVB5L5w7cHYTinFuIoNvn5RFs2+OWNcXYIKqQKvyzw9rJzCJHH +hmiCcJecOrpzh6aZnUtpV4w1mFL9NgPGA9K30rZiLfw7COIrzZgtIdfxlWYPlK+J +Zzcwxrcx1Bk9U6LX3qDMl2cFxL+/WE+ClBcZTfhOqmAjmoYT7ma4pKfrFAc0p+sS +i6GjCbzrN17kccwT6bp77Fou6aVTUrLygDgJrcyMLTO56qWYLk8mdHB+IqaSV84= +=3dfX +-----END PGP SIGNATURE----- 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 deleted file mode 100644 index d5c90a5a7c7a..000000000000 --- a/net-print/splix/files/splix-2.0.0-algo0x0d_one_scanline_over_fix.patch +++ /dev/null @@ -1,289 +0,0 @@ -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/files/splix-2.0.0-gcc45.patch b/net-print/splix/files/splix-2.0.0-gcc45.patch deleted file mode 100644 index d1ae9ba5172e..000000000000 --- a/net-print/splix/files/splix-2.0.0-gcc45.patch +++ /dev/null @@ -1,15 +0,0 @@ -Fixing build with gcc 4.5 - -http://bugs.gentoo.org/show_bug.cgi?id=318581 - ---- src/ppdfile.cpp -+++ src/ppdfile.cpp -@@ -282,7 +282,7 @@ - * Opérateur d'assignation - * Assignment operator - */ --void PPDFile::Value::operator = (const PPDFile::Value::Value &val) -+void PPDFile::Value::operator = (const PPDFile::Value &val) - { - if (_preformatted) - delete[] _preformatted; diff --git a/net-print/splix/splix-2.0.0.ebuild b/net-print/splix/splix-2.0.0.ebuild deleted file mode 100644 index ca301f05c61c..000000000000 --- a/net-print/splix/splix-2.0.0.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2011 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.6 2011/09/14 12:56:07 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="<app-text/ghostscript-gpl-9.02 - >=net-print/cups-1.4.0 - 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 - - epatch "${FILESDIR}"/${P}-gcc45.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)'" -} diff --git a/net-print/splix/splix-2.0.0_p20110219.ebuild b/net-print/splix/splix-2.0.0_p20110219.ebuild deleted file mode 100644 index d871cb269d9d..000000000000 --- a/net-print/splix/splix-2.0.0_p20110219.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2011 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_p20110219.ebuild,v 1.2 2011/05/13 22:17:48 voyageur Exp $ - -EAPI=2 -inherit eutils toolchain-funcs - -DESCRIPTION="A set of CUPS printer drivers for SPL (Samsung Printer Language) printers" -HOMEPAGE="http://splix.sourceforge.net/" -SRC_URI="http://dev.gentoo.org/~voyageur/distfiles/${P}.tar.bz2 - http://splix.ap2c.org/samsung_cms.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+jbig" - -DEPEND="<app-text/ghostscript-gpl-9.02 - || ( >=net-print/cups-1.4.0 net-print/cupsddk ) - jbig? ( media-libs/jbigkit )" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${PN} - -src_prepare() { - # 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)'" -} |