From 138e7f528e95951e3cd551e67d96b2a67523d97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BB=D0=BE=D1=85=D0=B8=D0=BD=20=D0=AE=D1=80=D0=B8?= =?UTF-8?q?=D0=B9?= Date: Mon, 14 May 2012 17:59:46 +0400 Subject: [PATCH] (IssueID #428) --- net-print/cndrvcups-capt/Manifest | 2 + .../cndrvcups-capt-2.20-r1.ebuild | 236 ++++++++++++++++++ net-print/cndrvcups-common/Manifest | 2 + .../cndrvcups-common-2.20-r1.ebuild | 100 ++++++++ net-print/cndrvcups-lb/ChangeLog | 9 + net-print/cndrvcups-lb/Manifest | 4 + .../cndrvcups-lb/cndrvcups-lb-2.20-r1.ebuild | 66 +++++ net-print/cndrvcups-lb/metadata.xml | 9 + 8 files changed, 428 insertions(+) create mode 100644 net-print/cndrvcups-capt/cndrvcups-capt-2.20-r1.ebuild create mode 100644 net-print/cndrvcups-common/cndrvcups-common-2.20-r1.ebuild create mode 100644 net-print/cndrvcups-lb/ChangeLog create mode 100644 net-print/cndrvcups-lb/Manifest create mode 100644 net-print/cndrvcups-lb/cndrvcups-lb-2.20-r1.ebuild create mode 100644 net-print/cndrvcups-lb/metadata.xml diff --git a/net-print/cndrvcups-capt/Manifest b/net-print/cndrvcups-capt/Manifest index 05532b6ee..a12cf6e2e 100644 --- a/net-print/cndrvcups-capt/Manifest +++ b/net-print/cndrvcups-capt/Manifest @@ -1,5 +1,7 @@ AUX cndrvcups-capt-init.d 658 RMD160 ff3118b872a07252b68576008949deb601417201 SHA1 3708529d6dce7507c33b8049429716f81b326354 SHA256 d682e2a266e8b03b2eda7d22dc7ff522c58f69b2262bb7b01b91e441fac6b362 DIST CAPT_Printer_Driver_for_Linux_V200_uk_EN.tar.gz 24605162 RMD160 1808f62dea97ab2df629dbce83e05b52636fb5f6 SHA1 443b9d7f89a567a6859c46d283360fb26aa9979d SHA256 8504ae9a2fe1f8413d9e6aa15fa34d4b289b514a7a2de13da8efb4ace9d541bb +DIST CAPT_Printer_Driver_for_Linux_V220_uk_EN.tar.gz 34571533 RMD160 d25955287c9dd5982e6e7ad090d977a35f7e6af4 SHA1 eb10c74e58ac463fc6ca969cfc78c077f0ed5a19 SHA256 608e9735618fd11bd62fec159b133a93f56dc10184e26784fd1ffd1e6b314e68 EBUILD cndrvcups-capt-2.00-r2.ebuild 4874 RMD160 4359f4f25e078055530466de9741b58e411284aa SHA1 2e9cb8f557522701b442270019395fd6daa91ad2 SHA256 e23aaebe7c00daa800f9a3567631d377ef0bcebb0e543d6d6e7192acc0ed1b03 +EBUILD cndrvcups-capt-2.20-r1.ebuild 5625 RMD160 d8acc8f38c41013611f8c64d6aea9d0f36ea798a SHA1 3b7f4b8b47a2b1ea9277063fe1192f0cc2a93ca2 SHA256 61327b104a4b4cbfdda92da07fe991f32b81214dea171a18d2fb35688c62e856 MISC ChangeLog 639 RMD160 dc2522df24071a063d73f387e57ae6dec3719c87 SHA1 936c6f989aedf092c7d0778d5747db42987e0d03 SHA256 11f2ef2a816f4bc455b38fbbce64866e0ec9489086ce50696fd2ef75447232ed MISC metadata.xml 261 RMD160 fd6c87fa63054c379e842b826f994dce900bb013 SHA1 471683d4ccc2d0934e4f154b51de1be0435f508b SHA256 c4a2402d01197b6c1a7476c5b2b1ec7552b4acbc7dd51c7d775c4100c6324c8d diff --git a/net-print/cndrvcups-capt/cndrvcups-capt-2.20-r1.ebuild b/net-print/cndrvcups-capt/cndrvcups-capt-2.20-r1.ebuild new file mode 100644 index 000000000..cb5dedb64 --- /dev/null +++ b/net-print/cndrvcups-capt/cndrvcups-capt-2.20-r1.ebuild @@ -0,0 +1,236 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ ver 1.1 + +EAPI="2" + +inherit multilib eutils versionator +#MY_PF=${PF/-r2/-2} +S=${WORKDIR}/${PN}-$(get_version_component_range 1-2) +DESCRIPTION="Canon CUPS Capt driver" +HOMEPAGE="http://www.canon.com/" + +SRC_URI="http://files.canon-europe.com/files/soft40567/software/CAPT_Printer_Driver_for_Linux_V${PV/./}_uk_EN.tar.gz" + +LICENSE="CANON" +RESTRICT="mirror" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cngplp gtk" + +DEPEND="=net-print/cndrvcups-common-${PVR}[cngplp=] + >=net-print/cups-1.1.17 + || ( + sys-devel/automake:1.6 + sys-devel/automake:1.7 + sys-devel/automake:1.8 + sys-devel/automake:1.9 + ) + " + +dir=/usr/$(get_libdir) + +QA_TEXTRELS="${dir:1}/libcaiocaptnet.so.1.0.0" + +RDEPEND="${DEPEND} + >=sys-apps/portage-2.1.1_pre1 + app-text/ghostscript-gpl + amd64? ( + gtk? ( + >=app-emulation/emul-linux-x86-gtklibs-2.0 + ) + >=app-emulation/emul-linux-x86-baselibs-10.0-r1 + >=app-emulation/emul-linux-x86-bjdeps-0.1-r2 + ) + !amd64? ( + dev-libs/popt + dev-libs/libxml2 + ) + gtk? ( + x11-libs/gtk+ + )" + +src_unpack() { + unpack ${A} + SRC="CAPT_Printer_Driver_for_Linux_V${PV/./}_uk_EN/Src/${PN}-${PVR/r/}.tar.gz" + einfo "Unpacking ${SRC}" + unpack "./${SRC}" + einfo "Removing unnecessary sources" + rm -rf "CAPT_Printer_Driver_for_Linux_V${PV/./}_uk_EN" + cd ${S} + # Fix the cups backend path + for i in backend pstocapt{,2,3}/filter; do + sed -i -e 's@libdir@libexecdir@' "${i}/Makefile.am" + done +} + +src_configure() { + STATUSDIR= + CNGPLPDIR= + CNGPLPFDIR= + if use gtk; then + STATUSDIR=statusui + fi + if use cngplp; then + CNGPLPDIR="cngplp" + fi + if use cngplp; then + CNGPLPFDIR="cngplp/files" + fi + + cd driver + NOCONFIGURE=1 ./autogen.sh + econf --disable-static + cd .. + for i in ${CNGPLPDIR} ${CNGPLPFDIR} backend pstocapt{,2,3} ppd ${STATUSDIR}; do + cd ${i} + NOCONFIGURE=1 ./autogen.sh + econf + cd .. + done + #if use gtk; then + # cd statusui + # NOCONFIGURE=1 ./autogen.sh + # econf + # cd .. + #fi + +} + +src_compile() { + for i in ${CNGPLPDIR} ${CNGPLPFDIR} driver backend pstocapt{,2,3} ppd ${STATUSDIR}; do + cd ${i} + emake + cd .. + done + #if use gtk; then + # cd statusui + # emake + # cd .. + #fi +} + +src_install() { + for i in driver backend pstocapt{,2,3} ${STATUSDIR} ppd ${CNGPLPDIR} ; do + cd ${i} + make install DESTDIR=${D} + cd - + done + #if use gtk; then + # cd statusui + # make install DESTDIR=${D} + # cd .. + #fi + + # Install the libs + OABI=${ABI} + has_multilib_profile && ABI="x86" + for i in $(cd libs; ls *.so.?.?.?; cd ..); do + dolib.so libs/${i} + dosym ${i} /usr/$(get_libdir)/${i%.?} + dosym ${i} /usr/$(get_libdir)/${i%.?.?} + dosym ${i} /usr/$(get_libdir)/${i%.?.?.?} + done + + # Install bin + dobin libs/captdrv \ + libs/captfilter \ + libs/captemon/captmoncnab6 \ + libs/captemon/captmoncnab7 \ + libs/captemon/captmoncnab8 \ + libs/captemon/captmoncnab9 \ + libs/captemon/captmoncnaba \ + libs/captemon/captmoncnac5 \ + libs/captemon/captmoncnac6 \ + libs/captemon/captmoncnac8 \ + libs/captemon/captmoncnac9 \ + libs/captemon/captmonlbp3300 \ + libs/captemon/captmonlbp5000 \ + libs/captemon/captmonlbp3300 \ + libs/captmon/captmon \ + libs/captmon2/captmon2 + + # Install sbin + dosbin libs/ccpd libs/ccpdadmin + + ABI=${OABI} + + # Install the data + insinto /usr/share/ccpd + doins libs/ccpddata/* + + insinto /usr/share/captmon + doins libs/captmon/msgtable.xml + + insinto /usr/share/captmon2 + doins libs/captmon2/msgtable2.xml + + insinto /usr/share/captemon + doins libs/captemon/*.xml + + insinto /usr/share/caepcm + doins data/CnA* libs/CnA* data/CNL* + + # Install doc + dodoc LICENSE* README* COPYING + + for i in ${STATUSDIR} driver backend pstocapt{,2,3} ppd ${CNGPLPDIR}; do + docinto ${i} + dodoc ${i}/NEWS ${i}/README ${i}/AUTHORS ${i}/ChangeLog ${i}/LICENSE* + done + + + # Fix the fifos + dodir /var/ccpd + mkfifo -m 600 ${D}/var/ccpd/fifo0 + fowners lp:lp /var/ccpd/fifo0 + + # fix captmon + dodir /var/captmon + fowners lp:lp /var/captmon + keepdir /var/captmon + + # Install startupscripts + newinitd ${FILESDIR}/${PN}-init.d ccpd + + insinto /etc + doins samples/ccpd.conf + einfo "Deleting /usr/share/caepcm/CNLC10{A,B}.ICC because there is the same in net-print/cndrvcups-lb" + rm -fv ${D}/usr/share/caepcm/CNLC10{A,B}.ICC +} + +pkg_postinst() { + einfo "To get your printer working you need to restart cupsd" + einfo + einfo "/etc/init.d/cupsd restart" + einfo + einfo "Now you can add your printer with either the webinterface or lpadmin" + einfo + einfo "/usr/sbin/lpadmin -p LBP3010 -m CNCUPSLBP3050CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E" + einfo + einfo "Replace 3050 with either on of the following printers:" + einfo "1120 1210 2900 3000 3050 3200 3210 3300 5000" + einfo + einfo "Now you must register the printer in ccpd, if connected with usb" + einfo + einfo "/usr/sbin/ccpdadmin -p LBP3010 -o /dev/usb/lp0" + einfo + einfo "Notice that you can't use LPT port with this driver." + einfo "If you have a network connection to your printer use -o net:" + einfo "instead of -o /dev/usb/lp0" + einfo "See manual for more information at " + einfo "http://software.canon-europe.com/files/soft31118/readme/README-capt-1.8xE.pdf" + einfo + einfo "Now you can go ahead and start the ccpd daemon" + einfo + einfo "/etc/init.d/ccpd start" + einfo + einfo "If you have more then one printer just create more fifos in" + einfo "/var/ccpd/ , increase the fifo number for more printers" + einfo + einfo "mkfifo -m 600 /var/ccpd/fifo1; chown lp:lp /var/ccpd/fifo1" + einfo + einfo + ewarn "If you reinstall make sure the fifo is created in /var/ccpd, if not" + ewarn "just reinstall again. This is due to bug #136199" +} diff --git a/net-print/cndrvcups-common/Manifest b/net-print/cndrvcups-common/Manifest index 7d1e5c9d5..72cc0f493 100644 --- a/net-print/cndrvcups-common/Manifest +++ b/net-print/cndrvcups-common/Manifest @@ -1,4 +1,6 @@ DIST CAPT_Printer_Driver_for_Linux_V200_uk_EN.tar.gz 24605162 RMD160 1808f62dea97ab2df629dbce83e05b52636fb5f6 SHA1 443b9d7f89a567a6859c46d283360fb26aa9979d SHA256 8504ae9a2fe1f8413d9e6aa15fa34d4b289b514a7a2de13da8efb4ace9d541bb +DIST o1113enx_l_ufr220.zip 32622341 RMD160 56fb65b81e84740e6322e296402ec6e55fa40d83 SHA1 48803bef1820c9cf67d2c5f22dad354787d44d37 SHA256 c7d38c4fa0c3af5914767500f484b59afd5da71d0aa9c453de03d2a025fb21d8 EBUILD cndrvcups-common-2.00-r2.ebuild 2394 RMD160 370337f70e6fe43b1f857b5d35632098c72ac344 SHA1 9cd7dcb2eb9e6ab414de8cbe6ac6af9a93eb7168 SHA256 85d3b3472544fb77b16779ad4d70edc2c988c7b794deb69e87fedfa197b2c9c6 +EBUILD cndrvcups-common-2.20-r1.ebuild 2251 RMD160 7688dfa9dcd75ad3182960649ead00d1ac51432d SHA1 14f6fdc6c96f468eeb53d061d1a3c73d2f36eaa2 SHA256 3406ddcb0f041c701d555d0f43072b9ecf9766bec8e45a84b492f0c70f2dc0ec MISC ChangeLog 414 RMD160 dc4a73273626a6c7d8773452d30099d2e98cec6e SHA1 4b41cd49b3abd846fe668ac428e22ce936fe5a9d SHA256 58345d4879a88b98b13f3355a3e0fd18c28ca8a6451d7828ba0c0912207d0822 MISC metadata.xml 261 RMD160 fd6c87fa63054c379e842b826f994dce900bb013 SHA1 471683d4ccc2d0934e4f154b51de1be0435f508b SHA256 c4a2402d01197b6c1a7476c5b2b1ec7552b4acbc7dd51c7d775c4100c6324c8d diff --git a/net-print/cndrvcups-common/cndrvcups-common-2.20-r1.ebuild b/net-print/cndrvcups-common/cndrvcups-common-2.20-r1.ebuild new file mode 100644 index 000000000..0547c44c5 --- /dev/null +++ b/net-print/cndrvcups-common/cndrvcups-common-2.20-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit multilib eutils rpm versionator + +DESCRIPTION="Common files for the Canon CUPS Capt driver" +HOMEPAGE="http://www.canon.com/" + +SRC_URI="http://files.canon-europe.com/files/soft40355/Software/o1113enx_l_ufr${PV/./}.zip" + +LICENSE="CANON" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="-cngplp" # enable or disable cngplp compilation, may cause build break on ~amd64, don't really know if cngplp is ever needed +RESTRICT="" +EAPI="2" + +DEPEND=">=net-print/cups-1.1.17" + +dir=/usr/$(get_libdir) +CNGPLP="" + +QA_TEXTRELS="${dir:1}/libcaepcm.so.1.0 + ${dir:1}/libc3pl.so.0.0.1 + ${dir:1}/libcnlbcm.so.1.0 + ${dir:1}/libcaiousb.so.1.0.0" + +src_unpack() { + unpack ${A} + SRC="UK/Sources/${PF/-r/-}.tar.gz" + einfo "Unpacking ${SRC}" + tar xzpf "${SRC}" + einfo "Removing unnecessary sources" + rm -rf "UK/" +} + +src_configure(){ + if hasuse cngplp; then CNGPLP="cngplp"; fi + for i in buftool ${CNGPLP}; do + cd ${i} + NOCONFIGURE=1 ./autogen.sh + econf + cd - + done +} + +src_compile() { + for i in ${CNGPL} buftool; do + cd ${i} + emake + cd - + done +} + +src_install() { + for i in buftool ${CNGPLP}; do + cd ${i} + make install DESTDIR=${D} || die "make install failed for ${i}" + cd - + done + + OABI=${ABI} + has_multilib_profile && ABI="x86" + for i in $(cd libs; ls *.so.?.?.?; cd ..); do + dolib.so libs/${i} + dosym ${i} /usr/$(get_libdir)/${i%.?} + dosym ${i} /usr/$(get_libdir)/${i%.?.?} + dosym ${i} /usr/$(get_libdir)/${i%.?.?.?} + done + for i in $(cd libs; ls *.so.?.?; cd ..); do + dolib.so libs/${i} + dosym ${i} /usr/$(get_libdir)/${i%.?} + dosym ${i} /usr/$(get_libdir)/${i%.?.?} + done + + #dolib.so c3plmod_ipc/libcanonc3pl.so.1.0.0 + dosym libcanonc3pl.so.1.0.0 /usr/$(get_libdir)/libcanonc3pl.so.1.0 + dosym libcanonc3pl.so.1.0.0 /usr/$(get_libdir)/libcanonc3pl.so.1 + dosym libcanonc3pl.so.1.0.0 /usr/$(get_libdir)/libcanonc3pl.so + + #dobin libs/cnpkmodule + dobin libs/c3pldrv + + ABI=${OABI} + + insinto /usr/share/caepcm + doins data/* + + + dodoc LICENSE-common-*.txt README + for i in buftool c3plmod_ipc ${CNGPLP}; do + docinto ${i} + dodoc ${i}/NEWS ${i}/README ${i}/AUTHORS ${i}/ChangeLog + done + docinto buftool + dodoc buftool/LICENSE.txt +} diff --git a/net-print/cndrvcups-lb/ChangeLog b/net-print/cndrvcups-lb/ChangeLog new file mode 100644 index 000000000..51b7d0d02 --- /dev/null +++ b/net-print/cndrvcups-lb/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for cndrvcups-lb +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*cndrvcups-lb-2.20-r1 (14 May 2012) + + 14 May 2012; Yuriy Blokhin +cndrvcups-lb-2.20-r1.ebuild: + Inital ebuild. Taken from (IssueID #428) + diff --git a/net-print/cndrvcups-lb/Manifest b/net-print/cndrvcups-lb/Manifest new file mode 100644 index 000000000..fe4f37078 --- /dev/null +++ b/net-print/cndrvcups-lb/Manifest @@ -0,0 +1,4 @@ +DIST o1113enx_l_ufr220.zip 32622341 RMD160 56fb65b81e84740e6322e296402ec6e55fa40d83 SHA1 48803bef1820c9cf67d2c5f22dad354787d44d37 SHA256 c7d38c4fa0c3af5914767500f484b59afd5da71d0aa9c453de03d2a025fb21d8 +EBUILD cndrvcups-lb-2.20-r1.ebuild 1532 RMD160 dda3950f0d3fca768aebca4ba93862c44ae43b99 SHA1 b1d2d31e2bfc6368769493661786f8e22a85e224 SHA256 3af9333e952640c539f27211dfb0caf0bf8d41c63044f4ed1e74f9abc94a4fd3 +MISC ChangeLog 271 RMD160 55c2c0d183bf57a1ddff420be519841b8cac1edf SHA1 78292aa686c12df24cc631a38f98e8eee6704671 SHA256 dd89e56cf1e69393e02625cbc8002ab7f0d1a608e956c8c0e496c83c18b68e61 +MISC metadata.xml 252 RMD160 0eb548bc91f3378854c74a2723ec3c8b38bec522 SHA1 90276b091ca0e02243052b80454df13795e50bba SHA256 2bd10548884ee038f2928f30a97189b56ff4e721b0ee1396e63871be900dfb1a diff --git a/net-print/cndrvcups-lb/cndrvcups-lb-2.20-r1.ebuild b/net-print/cndrvcups-lb/cndrvcups-lb-2.20-r1.ebuild new file mode 100644 index 000000000..e226eb7f6 --- /dev/null +++ b/net-print/cndrvcups-lb/cndrvcups-lb-2.20-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit multilib eutils versionator + +DESCRIPTION="Canon UFR II / LIPSLX Printer Driver" +HOMEPAGE="http://www.canon.com/" + +SRC_URI="http://files.canon-europe.com/files/soft40355/Software/o1113enx_l_ufr${PV/./}.zip" + +LICENSE="CANON" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cngplp" + +DEPEND="sys-devel/automake:1.6 + =net-print/cndrvcups-common-${PV}*[cngplp=]" + +src_unpack() { + unpack ${A} + SRC="UK/Sources/${PF/-r/-}.tar.gz" + einfo "Unpacking ${SRC}" + tar xzpf "${SRC}" + einfo "Removing unnecessary sources" + rm -rf "UK/" +} + +src_configure() { + for i in ppd pstoufr2cpca backend $( use cngplp && echo cngplp{,/files} ) cpca; do + cd ${i} + NOCONFIGURE=1 ./autogen.sh + case i in + pstoufr2cpca ) _ECONF_OPTS="--libdir=/usr/libexec --enable-shared --disable-static";; + cpca ) _ECONF_OPTS="--libdir=/usr/$(get_libdir) --enable-static --disable-shared";; + * ) _ECONF_OPTS="--libdir=/usr/libexec";; + esac + econf ${_ECONF_OPTS} + cd - + done +} + +src_compile() { + cd cpca + emake + cd - + emake +} + +src_install() { + emake DESTDIR=${D} install + + OABI=${ABI} + has_multilib_profile && ABI="x86" + for i in `cd libs; ls *.so.?.?.?; cd ..`; do + dolib.so libs/${i} + dosym ${i} /usr/$(get_libdir)/${i%.?.?} # Fix the version stuff of libs + dosym ${i} /usr/$(get_libdir)/${i%.?.?.?} + done + dosym /usr/libexec/cups/filter/pstoufr2cpca /usr/$(get_libdir)/cups/filter/ + + insinto /usr/share/caepcm + doins data/* +} diff --git a/net-print/cndrvcups-lb/metadata.xml b/net-print/cndrvcups-lb/metadata.xml new file mode 100644 index 000000000..be427e853 --- /dev/null +++ b/net-print/cndrvcups-lb/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + jb@calculate.ru + Yuriy Blokhin + +