Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 83271 Details for
Bug 61955
Canon i560 printer driver for cups (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
rewritten bjfilter-2.4.0.ebuild, supporting i250 and i255, too.
bjfilter-2.4.0.ebuild (text/plain), 6.91 KB, created by
Elias Probst
on 2006-03-27 17:19:32 UTC
(
hide
)
Description:
rewritten bjfilter-2.4.0.ebuild, supporting i250 and i255, too.
Filename:
MIME Type:
Creator:
Elias Probst
Created:
2006-03-27 17:19:32 UTC
Size:
6.91 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils rpm > >MY_PV="${PV/.0/-0}" >MY_OLD_PV="${PV/4.0/3-0}" >OLD_PRINTERS="i250 i255" >NEW_PRINTERS="pixus560i pixus860i pixus990i" >PRINTERS="${OLD_PRINTERS}, ${NEW_PRINTERS}" >DESCRIPTION="Canon printer drivers for models i250, i255, pixus560i, pixus860i and pixus990i" ># The drivers for i250/i255 can be found at the website of Canon New Zealand ># http://www.canon.co.nz/products/printers/colour_bj_printers/i250_drivers.html ># The drivers for 560i/860i/990i can be found at the website of Canon Japan ># http://www.canon-sales.co.jp/drv-upd/bj/bjlinux240.html >HOMEPAGE="http://www.canon.co.nz http://canon.jp/" > ># These are a lot of packages... we also fetch version ${MY_OLD_PV} from New Zealand ># bjcupsmon-2.4-0 provides a generic interface, so we just need the latest ># version. ># I know, that precompiled RPMs are evil, but we just need some libs... ># bjfilteri255-2.3-0.i386.rpm comes from a strange source... does anybody know ># the official one?? Couldn't find it anywhere >SRC_URI=" > http://download.canon.com.au/bj/i250linux/bjfilter-${MY_OLD_PV}.tar.gz > http://download.canon.com.au/bj/i250linux/bjcups-${MY_OLD_PV}.tar.gz > http://download.canon.com.au/bj/i250linux/printui-${MY_OLD_PV}.tar.gz > http://download.canon.com.au/bj/i250linux/stsmon-${MY_OLD_PV}.tar.gz > http://download.canon.com.au/bj/i250linux/bjfilteri250-${MY_OLD_PV}.i386.rpm > http://download.canon.com.au/bj/i250linux/bjfiltercups-${MY_OLD_PV}.i386.rpm > http://kaosgeek.baliwae.com/produk/bjfilteri255-${MY_OLD_PV}.i386.rpm > ftp://download.canon.jp/pub/driver/bj/linux/bjcups-${MY_PV}.tar.gz > ftp://download.canon.jp/pub/driver/bj/linux/bjcupsmon-${MY_PV}.tar.gz > ftp://download.canon.jp/pub/driver/bj/linux/bjfilter-${MY_PV}.tar.gz > ftp://download.canon.jp/pub/driver/bj/linux/printui-${MY_PV}.tar.gz > ftp://download.canon.jp/pub/driver/bj/linux/stsmon-${MY_PV}.tar.gz > ftp://download.canon.jp/pub/driver/bj/linux/bjfilterpixus560i-${MY_PV}.i386.rpm > ftp://download.canon.jp/pub/driver/bj/linux/bjfilterpixus860i-${MY_PV}.i386.rpm > ftp://download.canon.jp/pub/driver/bj/linux/bjfilterpixus990i-${MY_PV}.i386.rpm >" >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" >IUSE="gtk" >RDEPEND=" > virtual/ghostscript > >=dev-libs/libxml-1.8.17-r2 > >=dev-libs/popt-1.7-r1 > >=gnome-base/libglade-2.5.1 > >=media-libs/libpng-1.2.8-r1 > >=media-libs/tiff-3.7.3 > >=net-print/cups-1.1.23-r7 > gtk? > ( > =x11-libs/gtk+-1.2* > <gnome-base/libglade-2.0 > ) >" > >DEPEND=" > ${RDEPEND} > >=sys-devel/autoconf-2.59-r7 > >=sys-devel/automake-1.9.6-r1 > >=sys-libs/glibc-2.3.5-r2 >" > ># Just specify the root directory of all extracted packages >S=${WORKDIR} > >pkg_setup() >{ > if use !gtk; > then > einfo "If you want to use the status monitor for Canon" > einfo "Bubble Jet Printers under CUPS, you have to" > einfo "enable the 'gtk'-USE flag. Do this by adding it" > einfo "to '/etc/make.conf'." > einfo "e.g. 'euse -E gtk'" > sleep 2 > fi >} > >src_compile() { > cd ${S} > # Thank you Canon developers, but there are a lot of strange things.. ;-) > epatch ${FILESDIR}/${P}.patch > cd ${S}/bjcups-${MY_PV}/libs > emake || die "Could not make 'bjcups/libs'." > cd ${S}/bjcups-${MY_PV} > emake || die "Could not make 'bjcups'." > if use gtk; > then > export WANT_AUTOCONF=2.5 WANT_AUTOMAKE=1.4 > cd ${S}/bjcupsmon-${MY_PV} > ./autogen.sh --prefix=/usr || die "Could not configure 'bjcupsmon'." > emake || die "Could not make 'bjcupsmon'." > unset WANT_AUTOCONF WANT_AUTOMAKE > fi > # Create temporary libraries symlinks > cd ${S}/usr/lib > for lib in libcnbp*.so.*; > do > ln -s ${lib} $(echo ${lib} | cut -d "." -f 1).so > done >} > >src_install() { > if use gtk; > then > # As already mentioned, 2.4-0 is enough, 2.3-0 isn't needed additionally > # in this case, because they provide a generic interface > for dir in {{bjcups-${MY_PV},bjcupsmon-${MY_PV/-0/}}; > do > cd ${S}/${dir} > emake install DESTDIR=${D} || die "Could not install '${dir}'." > done > fi > > # 2.3-0 packages ... > export WANT_AUTOCONF=2.5 WANT_AUTOMAKE=1.4 # unset after the 2.4-0 block > for dir23 in {{bjfilter,printui}-2.3-0,stsmon-2.3}; > do > for printer in ${OLD_PRINTERS}; > do > if use !gtk; > then > if [ "${dir23}" == "printui-2.3-0" ]; > then > einfo "${printer}: 'printui' is only installed, when USE=\"gtk\" is set" > elif [ "${dir23}" == "stsmon-2.3" ]; > then > einfo "${printer}: 'stsmon' is only installed, when USE=\"gtk\" is set" > else > cd ${S}/${dir23} > ./autogen.sh --program-suffix=${printer} > emake clean || die "Could not clean '${dir23}' (${printer})." > emake || die "Could not make '${dir23}' (${printer})." > emake install DESTDIR=${D} || die "Could not install '${dir23}' (${printer})." > fi > else > cd ${S}/bjfilter-2.3-0 > ./autogen.sh --program-suffix=i250 > make clean || die "Could not clean 'bjfilter-2.3-0'." > make || die "Could not make 'bjfilter-2.3-0'." > make install DESTDIR=${D} || die "Could not install 'printer'." > cd ${S}/${dir23} > ./autogen.sh --program-suffix=${printer} > make clean || die "Could not clean '${dir23}'." > make || die "Could not make '${dir23}'." > make install DESTDIR=${D} || die "Could not install '${dir23}' (${printer})." > fi > done > done > > # 2.4-0 packages ... > for dir24 in {{bjfilter,printui}-2.4-0,stsmon-2.4}; > do > for printer in ${NEW_PRINTERS}; > do > if use !gtk; > then > if [ "${dir24}" == "printui-2.4-0" ]; > then > einfo "${printer}: 'printui' is only installed, when USE=\"gtk\" is set" > elif [ "${dir24}" == "stsmon-2.4" ]; > then > einfo "${printer}: 'stsmon' is only installed, when USE=\"gtk\" is set" > else > cd ${S}/${dir24} > ./autogen.sh --program-suffix=${printer} > emake clean || die "Could not clean '${dir24}' (${printer})." > emake || die "Could not make '${dir24}' (${printer})." > emake install DESTDIR=${D} || die "Could not install '${dir24}' (${printer})." > fi > else > cd ${S}/${dir24} > ./autogen.sh --program-suffix=${printer} > emake clean || die "Could not clean '${dir24}' (${printer})." > emake || die "Could not make '${dir24}' (${printer})." > emake install DESTDIR=${D} || die "Could not install '${dir24} (${printer})." > fi > done > done > unset WANT_AUTOCONF WANT_AUTOMAKE > insinto /usr/share/cups/model/ > for printer in ${OLD_PRINTERS}; > do > doins ${S}/bjcups-2.3-0/ppd/canon${printer}.ppd > done > for printer in ${NEW_PRINTERS}; > do > doins ${S}/bjcups-2.4-0/ppd/canon${printer}.ppd > done > > # Install libraries > dolib.so ${S}/usr/lib/libcnbp*.so.* > insinto /usr/lib/bjlib > insopts -m 0755 > doins ${S}/usr/lib/bjlib/* > > # Create libraries symlinks > cd ${D}/usr/lib > for lib in libcnbp*.so.*; > do > dosym ${lib} /usr/lib/$(echo ${lib} | cut -d "." -f 1).so > done > > # Finally, the docs ... > cd ${S} > for dir in $(ls -1|grep -v usr); > do > cd ${S}/${dir} > docinto ${dir} > for file in {AUTHORS,ChangeLog,COPYING,INSTALL,LICENSE,NEWS,README}; > do > if [ -e ${file} ]; > then > dodoc ${file} > fi > done > done >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 61955
:
38313
|
47243
|
47244
|
47245
|
47246
|
47247
|
47248
|
47249
|
47399
|
47402
|
47404
|
47405
|
65277
|
65278
|
65280
|
65281
|
65282
|
65322
|
65323
|
65349
|
65350
|
83271
|
83272
|
83760