Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 84053 Details for
Bug 128560
net-print/bjfilter/bjfilter-2.50 - Canon pixma/pixus drivers (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-print/bjfilter/bjfilter-2.50.ebuild
bjfilter-2.50.ebuild (text/plain), 7.68 KB, created by
Colin Kiegel
on 2006-04-06 00:58:17 UTC
(
hide
)
Description:
net-print/bjfilter/bjfilter-2.50.ebuild
Filename:
MIME Type:
Creator:
Colin Kiegel
Created:
2006-04-06 00:58:17 UTC
Size:
7.68 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># Inspired by ># http://forums.gentoo.org/viewtopic-t-430913.html ># the file bjfiler-common.spec (download SRC_URI) ># The Ebuild Howto (gentoo.org) > >inherit eutils rpm flag-o-matic multilib > >_release="2" >_prefix="/usr/local" >_bindir="/usr/local/bin" >_libdir="/usr/lib" >_ppddir="/usr/share/cups/model" > >DESCRIPTION="Canon Bubble Jet Printer Driver for Linux (Pixus/Pixma-Series)." >HOMEPAGE="ftp://download.canon.jp/pub/driver/bj/linux/" >RESTRICT="nomirror" > >SRC_URI="${HOMEPAGE}${PN}-common-${PV}-${_release}.src.rpm" >LICENSE="???" # GPL-2 source and proprietary binaries > >SLOT="0" >KEYWORDS="~x86" >IUSE="bjtools > pixusip3100 > pixusip4100 > pixusip8600 > pixmaip1000 > pixmaip1500" >DEPEND=">=sys-devel/automake-1.8 > sys-devel/autoconf" >RDEPEND="virtual/ghostscript > >=dev-libs/popt-1.4 > >=net-print/cups-1.1.14 > !amd64? (sys-libs/glibc > >=media-libs/tiff-3.4 > >=media-libs/libpng-1.0.9) > amd64? (app-emulation/emul-linux-x86-compat > app-emulation/emul-linux-x86-baselibs) > bjtools? (>=dev-libs/popt-1.6 > >=gnome-base/libglade-0.6 > >=dev-libs/libxml-1.8 > !amd64? (>=x11-libs/gtk+-1.2) > amd64? (app-emulation/emul-linux-x86-gtklibs))" > > ># It might be possible to compile against dev-libs/libxml2 instead of Version 1. > > ># Dependencies ># information by canon associated x86 packages AMD64 ># always: ># >=libcups-1.1* >=net-print/cups-1.1.14 emul-linux-x86-baselibs ># >=libpopt-1.4* >=dev-libs/popt-1.4 ? ># >=libm-6.0 sys-libs/glibc emul-linux-x86-compat ># >=libdl-2.0 sys-libs/glibc emul-linux-x86-compat ># >=libtiff-3.4 >=media-libs/tiff-3.4 emul-linux-x86-baselibs ># >=libpng-1.0.9 >=media-libs/libpng-1.0.9 emul-linux-x86-baselibs ># >=cups-1.1.14 >=net-print/cups-1.1.14 emul-linux-x86-baselibs ># >=ghostscript-5.50 virtual/ghostscript virtual/ghostscript ># if use bjtools: ># >=gtk+-1.2* >=x11-libs/gtk+-1.2 emul-linux-x86-gtklibs ># >=libpopt-1.6* >=dev-libs/popt-1.6 ? ># >=libglade-0.6* >=gnome-base/libglade-0.6 ? ># >=libxml-1.8* >=dev-libs/libxml-1.8 ? > > ># Table of supported Printers and it's IDs ># _pr the printers name ># _prid the printers ID ># _prcomp compatible printers > >_pr1="pixusip3100" >_pr2="pixusip4100" >_pr3="pixusip8600" >_pr4="pixmaip1000" >_pr5="pixmaip1500" >_prid1="218" >_prid2="221" >_prid3="238" >_prid4="230" >_prid5="214" >_prcomp1="i560 i850 iP3000 MP730" >_prcomp2="i865 iP4000 iP5000 MP750 MP780" >_prcomp3="?" >_prcomp4="i250 i320 i350" >_prcomp5="iP2000" > ># Changelog since last bugzilla upload ># ># dependency emul-linux-x86-glibc -> emul-linux-x86-compat ># useflag instructions hopefully more readable now ># fixed "autochoose"-bug > > >### ># Standard Ebuild-functions >### > >pkg_setup() { > if use amd64 ; then > if ! has_m32 ; then > eerror "Your compiler seems to be unable to compile 32bit code." > eerror "Make sure you compile gcc with:" > eerror " USE=multilib FEATURES=-sandbox" > die "Cannot produce 32bit code" > fi > if has_multilib_profile ; then > export ABI=x86 > else > append-flags -m32 || die "append-flags" > append-ldflags -m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib || die "append-ldflags" > fi > fi > einfo "" > einfo " USE-flags\t(description / probably compatible printers)" > einfo "" > einfo " bjtools\t(additional monitoring and maintenance software)" > einfo " $_pr1\t($_prcomp1)" > einfo " $_pr2\t($_prcomp2)" > einfo " $_pr3\t($_prcomp3)" > einfo " $_pr4\t($_prcomp4)" > einfo " $_pr5\t($_prcomp5)" > einfo "" > if ! (use $_pr1 || use $_pr2 || use $_pr3 || use $_pr4 || use $_pr5); then > ewarn "You didn't specify any driver model (set it's USE-flag)." > einfo "" > einfo "As example:\tbasic MP780 support without maintenance tools" > einfo "\t\t -> USE=\"pixmaip4100\"" > einfo "" > einfo "Sleeping 10 seconds (Press CTRL+C to abort)" > einfo "" > sleep 10 > _autochoose="true" > else > _autochoose="false" > fi >} > >src_unpack() { > rpm_src_unpack || die > mv bjfilter-common-${PV} ${P} || die # Correcting directory-structure > if use "pixusip4100"; then > epatch ${FILESDIR}/bjfilter-2.50-pixusip4100-ppd.patch || die > fi >} > >src_compile() { > cd libs || die > ./autogen.sh --prefix=${_prefix} || die "Error: libs/autoconf.sh failed" > make || die "Couldn't make libs" > > if use bjtools; then > cd ../bjcups || die > ./autogen.sh --prefix=${_prefix} --enable-progpath=${_bindir} || die "Error: bjcups/autoconf.sh failed" > make || die "Couldn't make bjcups" > fi > > cd ../pstocanonbj || die > ./autogen.sh --prefix=/usr --enable-progpath=${_bindir} || die "Error: pstocanonbj/autoconf.sh failed" > make || die "Couldn't make pstocanonbj" > > if use bjtools; then > cd ../bjcupsmon || die # It's neccessary to cd into bjcupsmon for the next script to work > ./autogen.sh --prefix=${_prefix} || die "Error: bjcupsmon/autoconf.sh failed" > make || die "Couldn't make bjcupsmon" > fi > > cd .. > > _pr=$_pr1 _prid=$_prid1 > if use $_pr || ${_autochoose}; then > src_compile_pr; > fi > > _pr=$_pr2 _prid=$_prid2 > if use $_pr || ${_autochoose}; then > src_compile_pr; > fi > > _pr=$_pr3 _prid=$_prid3 > if use $_pr || ${_autochoose}; then > src_compile_pr; > fi > > _pr=$_pr4 _prid=$_prid4 > if use $_pr || ${_autochoose}; then > src_compile_pr; > fi > > _pr=$_pr5 _prid=$_prid5 > if use $_pr || ${_autochoose}; then > src_compile_pr; > fi >} > >src_install() { > mkdir -p ${D}${_bindir} || die > mkdir -p ${D}${_libdir}/cups/filter || die > mkdir -p ${D}${_ppddir} || die > mkdir -p ${D}${_libdir}/bjlib || die > > cd libs || die > make DESTDIR=${D} install || die "Couldn't make install libs" > > if use bjtools; then > cd ../bjcups || die > make DESTDIR=${D} install || die "Couldn't make install bjcups" > fi > > cd ../pstocanonbj || die > make DESTDIR=${D} install || die "Couldn't make install pstocanonbj" > > if use bjtools; then > cd ../bjcupsmon || die > make DESTDIR=${D} install || die "Couldn't make install bjcupsmon" > fi > > cd .. > > _pr=$_pr1 _prid=$_prid1 > if use $_pr || ${_autochoose}; then > src_install_pr; > fi > > _pr=$_pr2 _prid=$_prid2 > if use $_pr || ${_autochoose}; then > src_install_pr; > fi > > _pr=$_pr3 _prid=$_prid3 > if use $_pr || ${_autochoose}; then > src_install_pr; > fi > > _pr=$_pr4 _prid=$_prid4 > if use $_pr || ${_autochoose}; then > src_install_pr; > fi > > _pr=$_pr5 _prid=$_prid5 > if use $_pr || ${_autochoose}; then > src_install_pr; > fi >} > >pkg_postinst() { > einfo "" > einfo "For installing a printer:" > einfo " * Restart CUPS: /etc/init.d/cupsd restart" > einfo " * Go to http://127.0.0.1:631/" > einfo " -> Printers -> Add Printer" > einfo "" > einfo "If you experience any problems, please visit:" > einfo " http://forums.gentoo.org/viewtopic-p-3217721.html" > einfo "" >} > > >### ># Custom Helper Functions >### > >src_compile_pr() >{ > mkdir ${_pr} > cp -a ${_prid} ${_pr} || die > cp -a bjfilter ${_pr} || die > cp -a printui ${_pr} || die > cp -a stsmon ${_pr} || die > > cd ${_pr}/bjfilter || die > ./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} --enable-libpath=${_libdir}/bjlib --enable-binpath=${_bindir} || die > make || die "Couldn't make ${_pr}/bjfilter" > > if use bjtools; then > cd ../printui || die > ./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} || die > make || die "Couldn't make ${_pr}/printui" > > cd ../stsmon || die > ./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} --enable-progpath=${_bindir} || die > make || die "Couldn't make ${_pr}/stsmon" > fi > > cd ../.. >} > >src_install_pr() >{ > cd ${_pr}/bjfilter || die > make DESTDIR=${D} install || die "Couldn't make install ${_pr}/bjfilter" > > if use bjtools; then > cd ../printui || die > make DESTDIR=${D} install || die "Couldn't make install ${_pr}/printui" > > cd ../stsmon || die > make DESTDIR=${D} install || die "Couldn't make install ${_pr}/stsmon" > fi > > cd ../.. > cp ${_prid}/libs_bin/* ${D}${_libdir} || die > cp ${_prid}/database/* ${D}${_libdir}/bjlib || die > cp ppd/canon${_pr}.ppd ${D}${_ppddir} || die >}
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 128560
:
83752
|
83753
|
83862
|
83894
|
83903
|
83921
|
83973
|
84028
|
84053
|
84283
|
84450
|
85030
|
88018
|
90096
|
92392
|
92758
|
92761
|
92764
|
93518
|
94411
|
100541
|
100703
|
100712
|
100921
|
101969
|
103001
|
158675
|
183765
|
283035
|
296235
|
296237
|
296241
|
401008