diff options
author | Nathan Phillip Brink <binki@gentoo.org> | 2011-08-23 03:59:00 +0000 |
---|---|---|
committer | Nathan Phillip Brink <binki@gentoo.org> | 2011-08-23 03:59:00 +0000 |
commit | 929cf898ed43eaedfbbeb6dde5633d91a6ef00ac (patch) | |
tree | 79a3f6a4e22509a2ba6f08821ebb04ee0164fb0b /net-print | |
parent | Version bump for stable channel release. (diff) | |
download | historical-929cf898ed43eaedfbbeb6dde5633d91a6ef00ac.tar.gz historical-929cf898ed43eaedfbbeb6dde5633d91a6ef00ac.tar.bz2 historical-929cf898ed43eaedfbbeb6dde5633d91a6ef00ac.zip |
Add c2esp-18, a driver for certain Canon ESP series printers.
Package-Manager: portage-2.2.0_alpha50-r1/cvs/Linux x86_64
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/c2esp/ChangeLog | 10 | ||||
-rw-r--r-- | net-print/c2esp/Manifest | 25 | ||||
-rw-r--r-- | net-print/c2esp/c2esp-18.ebuild | 48 | ||||
-rw-r--r-- | net-print/c2esp/files/c2esp-18-ldflags.patch | 36 | ||||
-rw-r--r-- | net-print/c2esp/metadata.xml | 9 |
5 files changed, 128 insertions, 0 deletions
diff --git a/net-print/c2esp/ChangeLog b/net-print/c2esp/ChangeLog new file mode 100644 index 000000000000..d2c3cd9760e2 --- /dev/null +++ b/net-print/c2esp/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-print/c2esp +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/c2esp/ChangeLog,v 1.1 2011/08/23 03:59:00 binki Exp $ + +*c2esp-18 (23 Aug 2011) + + 23 Aug 2011; Nathan Phillip Brink <binki@gentoo.org> +c2esp-18.ebuild, + +files/c2esp-18-ldflags.patch, +metadata.xml: + Add c2esp-18, a driver for certain Canon ESP series printers. + diff --git a/net-print/c2esp/Manifest b/net-print/c2esp/Manifest new file mode 100644 index 000000000000..022c8b8195a5 --- /dev/null +++ b/net-print/c2esp/Manifest @@ -0,0 +1,25 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX c2esp-18-ldflags.patch 1497 RMD160 cbb1feab09874be02109bd3d5742296994bbcdfc SHA1 2c89340a36b527abe58d49f50b8343b00589345e SHA256 23335490f884ea82ac726df99db6bd53f794d865c3fbe0934ef35c0e173ae200 +DIST c2esp18.tar.gz 94854 RMD160 27ef332ec6d269151fa5f2d4e8e80a4d6025444a SHA1 f72706342be82ea8747b163625fb6888249f197f SHA256 1503a30e3dcc0fe58bc4f52b0b6029dafcc7339e09660893076b79d69fc8c15e +EBUILD c2esp-18.ebuild 1148 RMD160 6fc1379aadaa60b08ef29d18937b8766957061fa SHA1 a2daeeaa388c1732f19aa6f4e934e4026bdced7c SHA256 8703fccd20494448d72526b17d2ec348cde1bdf6fe213f13b9314488530af469 +MISC ChangeLog 413 RMD160 dbafb8eb0e3b41aa39cc7b19f9f095d0fade9c2d SHA1 f5eb6b89e64ab793382a83e9dba72a409cfbe17d SHA256 7281cae6713a0ee74fb2f73fed527ceaf01411cc1137358b45c9a2446c1a86a2 +MISC metadata.xml 268 RMD160 2d0bb43e83624ddfe747a2039aa62ca6055e7f99 SHA1 52ae921bc4a4ceed4687e29ac3f67dcc0ac91376 SHA256 288c33a2f3360fb312a69164b4f5ef4dfa9234a5e790de319f00ebebbcbd6331 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.14 (GNU/Linux) + +iQIcBAEBCAAGBQJOUyYsAAoJEHQ6UuhrqBBQ7Q0P/0tITnyIU/XDsC3Yv+6tWygz +uHCbjaqmdXi7SQYHCCKW7VidrXh+Gfit2eiuFRYGYRtMz41VsGX3vAtqSVDO0MBg +V5R7dcvX2FNqa1vSpUYGScFOvnyk12nhNTSdpLn7Yh2cTCB4AKjmjQGNdqRdJoB1 +XINQfx6tp1sPGQ4BmJfatb/22eC0wUOTxQIIR5/gz7p4Zx7EL97sLkoaVfI154fd +m02pnxLmBambI1r3BzSg4iSI/t5kvC0s7y8BkK3TdqtY95L6zL7Vvfc2DY/rPvdO +2SZDMUicCYE1e+Gn/HsMyepLWKJjBEQwmnQeLh8CfHi3CoBPmqM98NKSDtH6nfNI +m7TNRGcHt4KLHiFdWaYgX5/aySgI6AM8Qa52paKI19The5FrPYc06hbQ5EDEbUvX +tVr72i256EuwMvXe06u9SLCowx+7lTHT5F40oSsndO66hh04MzCOXS3K0Y2pyDy1 +gxKdqfhSDAlLf/H1rmE06Rqb1v4BH3YDAqD9VQVs5BZGLaaiggnrOJZUPdYDzRwT +OWaXlLLB3nst+JGt0hvtv3ZlkHFQT7ILMqvXUe5IRdW2jNvWoJHMy4sgH+Aets4d +g8s8WIv43YJIpkL2KyCfj9fexsG8AFlaln5vW23FEPea01zJxmEjIXil4zXOl4H7 ++DPJv1lO5gn94KmGeaMr +=sids +-----END PGP SIGNATURE----- diff --git a/net-print/c2esp/c2esp-18.ebuild b/net-print/c2esp/c2esp-18.ebuild new file mode 100644 index 000000000000..53b24fca075e --- /dev/null +++ b/net-print/c2esp/c2esp-18.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/c2esp/c2esp-18.ebuild,v 1.1 2011/08/23 03:59:00 binki Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +MY_P=${PN}${PV} + +DESCRIPTION="A cups filter for Kodak ESP printers" +HOMEPAGE="http://cupsdriverkodak.sf.net/" +SRC_URI="mirror://sourceforge/cupsdriverkodak/files/${MY_P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +DEPEND=">=media-libs/jbigkit-2.0-r1 + >=net-print/cups-1.4" +RDEPEND="${DEPEND}" + +src_prepare() { + # Remove embedded media-libs/jbigkit + rm -f *jbig* || die + + # Remove the embedded jbig files from the Makefile's dependencies: + sed -i \ + -e '/^[a-z0-9.]*:/s/\$(LIBJBG)//g' \ + -e '/^[a-z0-9.]*:/s/jbig[^ ]*\.h//g' \ + Makefile || die + + # Use Gentoo-style cups paths + sed -i -e s,/usr/lib/cups/filter,/usr/libexec/cups/filter,g ppd/*.ppd || die + + epatch "${FILESDIR}"/${P}-ldflags.patch +} + +src_compile() { + emake CC="$(tc-getCC)" LIBJBG='-ljbig85 -ljbig' +} + +src_install() { + emake DESTDIR="${D}" FILTERBIN="${D}"/usr/libexec/cups/filter install +} diff --git a/net-print/c2esp/files/c2esp-18-ldflags.patch b/net-print/c2esp/files/c2esp-18-ldflags.patch new file mode 100644 index 000000000000..2a1e94740f39 --- /dev/null +++ b/net-print/c2esp/files/c2esp-18-ldflags.patch @@ -0,0 +1,36 @@ +From: Nathan Phillip Brink <binki@gentoo.org> +Subject: Do not ignore LDFLAGS when linking. + +--- a/Makefile ++++ b/Makefile +@@ -214,7 +214,7 @@ + #CUPSLIBS_ST = /usr/lib/libcups.a -lgssapi_krb5 -lgnutls -lz -lpthread -lm -lcrypt + + c2esptst: c2esptst.o +- $(CC) $(CFLAGS) -o $@ c2esptst.o -lcupsimage -lcups -lcupsdriver $(LIBJBG) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ c2esptst.o -lcupsimage -lcups -lcupsdriver $(LIBJBG) + #last $(CC) $(CFLAGS) -o $@ c2esptst.o -lcupsimage -lcups -lgssapi_krb5 -lgnutls -lz -lpthread -lm -lcrypt $(LIBJBG) libcupsdriver.a + #was $(CC) $(CFLAGS) -o $@ c2esptst.o -lcupsimage $(LIBJBG) libcupsdriver.a + +@@ -222,16 +222,16 @@ + c2esp: c2esp.o + # /usr/lib/libcupsimage.so.2 replaced by -lcupsimage + # libcupsdriver.a removed +- $(CC) $(CFLAGS) -o $@ c2esp.o -lcupsimage -lcups -lcupsdriver $(LIBJBG) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ c2esp.o -lcupsimage -lcups -lcupsdriver $(LIBJBG) + # previous version below, simplified version above + # $(CC) $(CFLAGS) -o $@ c2esp.o -lcups -lgssapi_krb5 -lgnutls -lz -lpthread -lm -lcrypt /usr/lib/libcupsimage.so.2 $(LIBJBG) + + command2esp: command2esp.o + # $(CC) $(CFLAGS) -o $@ command2esp.o -lcups -lcupsdriver +- $(CC) $(CFLAGS) -o $@ command2esp.o -lcups -lcupsdriver ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ command2esp.o -lcups -lcupsdriver + + myopldecode: myopldecode.o +- $(CC) $(CFLAGS) -g myopldecode.o $(LIBJBG) -o $@ ++ $(CC) $(CFLAGS) -g $(LDFLAGS) myopldecode.o $(LIBJBG) -o $@ + + + # + +Diff finished. Sat Aug 20 18:40:17 2011 diff --git a/net-print/c2esp/metadata.xml b/net-print/c2esp/metadata.xml new file mode 100644 index 000000000000..7c12f3b82e46 --- /dev/null +++ b/net-print/c2esp/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>printing</herd> + <maintainer> + <email>binki@gentoo.org</email> + <name>Nathan Phillip Brink</name> + </maintainer> +</pkgmetadata> |