Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 312725 Details for
Bug 130645
net-print/cnijfilter-3.20 - 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]
cnijfilter-3.20-r1.ebuild
cnijfilter-3.20-r1.ebuild (text/plain), 7.27 KB, created by
Fitzcarraldo
on 2012-05-22 18:38:26 UTC
(
hide
)
Description:
cnijfilter-3.20-r1.ebuild
Filename:
MIME Type:
Creator:
Fitzcarraldo
Created:
2012-05-22 18:38:26 UTC
Size:
7.27 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># Changelog since last bugzilla upload ># ># 2011-11-10 Rom cnijfilter 3.20 updated Version ># > >inherit eutils rpm flag-o-matic multilib > >DESCRIPTION="Canon InkJet Printer Driver for Linux (Pixus/Pixma-Series)." >HOMEPAGE="http://support-asia.canon-asia.com/content/EN/0100084101.html" >RESTRICT="nomirror confcache" > >SRC_URI="http://gdlp01.c-wss.com/gds/7/0100002367/01/cnijfilter-source-3.20-1.tar.gz" >LICENSE="UNKNOWN" # GPL-2 source and proprietary binaries > >#cnijfilter ROM package set name correctly >REAL_PN="cnijfilter" > >SLOT="3" >KEYWORDS="~x86 ~amd64" >IUSE="amd64 > servicetools > nocupsdetection > mp250 > mp270 > mp490 > mp550 > mp560 > ip4700 > mp640" >DEPEND="app-text/ghostscript-gpl > >=net-print/cups-1.1.14 > !amd64? ( sys-libs/glibc > >=dev-libs/popt-1.6 > >=media-libs/tiff-3.4 > >=media-libs/libpng-1.0.9 ) > amd64? ( >=app-emulation/emul-linux-x86-bjdeps-0.1 > app-emulation/emul-linux-x86-compat > app-emulation/emul-linux-x86-baselibs ) > servicetools? ( !amd64? ( >=gnome-base/libglade-0.6 > >=dev-libs/libxml2-2.7.3-r2 > =x11-libs/gtk+-1.2* ) > amd64? ( >=app-emulation/emul-linux-x86-bjdeps-0.1 > app-emulation/emul-linux-x86-gtklibs ) )" > ># Arrays of supported Printers, there IDs and compatible models >_pruse=("mp250" "mp270" "mp490" "mp550" "mp560" "ip4700" "mp640") >_prname=(${_pruse[@]}) >_prid=("356" "357" "358" "359" "360" "361" "362") >_prcomp=("mp250series" "mp270series" "mp490series" "mp550series" "mp560series" "ip4700series" "mp640series") >_max=$((${#_pruse[@]}-1)) # used for iterating through these arrays > >### ># Standard Ebuild-functions >### > >pkg_setup() { > > if [ -z "$LINGUAS" ]; then # -z tests to see if the argument is empty > ewarn "You didn't specify 'LINGUAS' in your make.conf. Assuming" > ewarn "english localisation, i.e. 'LINGUAS=\"en\"'." > LINGUAS="en" > fi > ># use amd64 && export ABI=x86 ># use amd64 && append-flags -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib -L/usr/lib32 > use amd64 && multilib_toolchain_setup x86 > > > _prefix="/usr/local" > _bindir="/usr/local/bin" > _libdir="/usr/$(get_libdir)" # either lib or lib32 > _cupsdir1="/usr/lib/cups" > _cupsdir2="/usr/libexec/cups" > _ppddir="/usr/share/cups/model" > > einfo "" > einfo " USE-flags (description / probably compatible printers)" > einfo "" > einfo " amd64 (basic support for this architecture - currently without servicetools)" > einfo " servicetools (additional monitoring and maintenance software)" > einfo " nocupsdetection (this is only useful to create binary packages)" > _autochoose="true" > for i in `seq 0 ${_max}`; do > einfo " ${_pruse[$i]}\t${_prcomp[$i]}" > if (use ${_pruse[$i]}); then > _autochoose="false" > fi > done > einfo "" > if (${_autochoose}); then > ewarn "You didn't specify any driver model (set it's USE-flag)." > einfo "" > einfo "As example:\tbasic MP140 support without maintenance tools" > einfo "\t\t -> USE=\"mp140\"" > einfo "" > einfo "Press Ctrl+C to abort" > echo > ebeep > > n=15 > while [[ $n -gt 0 ]]; do > echo -en " Waiting $n seconds...\r" > sleep 1 > (( n-- )) > done > fi >} > >src_unpack() { > > PN=${REAL_PN} > > unpack ${A} > mv ${PN}-source-${PV}-1 ${P} || die # Correcting directory-structure > > einfo "S: ${S}" > > cd "${S}" ># EPATCH_SOURCE=${FILESDIR} EPATCH_SUFFIX="patch" \ ># EPATCH_FORCE="yes" epatch > epatch ${FILESDIR}/include_cups_ppd_h.patch || die > epatch ${FILESDIR}/ldl.patch || die > epatch ${FILESDIR}/libpng15.patch || die > >} > >src_compile() { > > cd libs || die > ./autogen.sh --prefix=${_prefix} || die "Error: libs/autoconf.sh failed" > make || die "Couldn't make libs" > > cd ../backend || die > ./autogen.sh --prefix=/usr --enable-progpath=${_bindir} || die "Error: backend/autoconf.sh failed" > make || die "Couldn't make backend" > > cd ../pstocanonij || die > ./autogen.sh --prefix=/usr --enable-progpath=${_bindir} || die "Error: pstocanonij/autoconf.sh failed" > make || die "Couldn't make pstocanonij" > > if use servicetools; then > cd ../cngpij || die > ./autogen.sh --prefix=${_prefix} --enable-progpath=${_bindir} || die "Error: cngpij/autoconf.sh failed" > make || die "Couldn't make cngpij" > > cd ../cngpijmon || die > ./autogen.sh --prefix=${_prefix} || die "Error: cngpijmon/autoconf.sh failed" > make || die "Couldn't make cngpijmon" > fi > > cd .. > > for i in `seq 0 ${_max}`; do > if use ${_pruse[$i]} || ${_autochoose}; then > _pr=${_prname[$i]} _prid=${_prid[$i]} > src_compile_pr; > fi > done >} > >src_install() { > mkdir -p ${D}${_bindir} || die > mkdir -p ${D}${_libdir}/cups/filter || die > mkdir -p ${D}${_ppddir} || die > mkdir -p ${D}${_libdir}/cnijlib || die > > cd libs || die > make DESTDIR=${D} install || die "Couldn't make install libs" > > cd ../backend || die > make DESTDIR=${D} install || die "Couldn't make install backend" > > cd ../pstocanonij || die > make DESTDIR=${D} install || die "Couldn't make install pstocanoncnij" > > if use servicetools; then > cd ../cngpij || die > make DESTDIR=${D} install || die "Couldn't make install cngpij" > > cd ../cngpijmon || die > make DESTDIR=${D} install || die "Couldn't make install cngpijmon" > fi > > cd .. > > for i in `seq 0 ${_max}`; do > if use ${_pruse[$i]} || ${_autochoose}; then > _pr=${_prname[$i]} _prid=${_prid[$i]} > src_install_pr; > fi > done > > # fix directory structure > if use nocupsdetection; then > mkdir -p ${D}${_cupsdir2}/filter || die > dosym ${_cupsdir1}/filter/pstocanonij ${_cupsdir2}/filter/pstocanonij > elif has_version ">=net-print/cups-1.2.0"; then > mkdir -p ${D}${_cupsdir2} || die > mv ${D}${_cupsdir1}/* ${D}${_cupsdir2} || die > 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 cnijfilter ${_pr} || die > cp -a printui ${_pr} || die > cp -a lgmon ${_pr} || die ># cp -a stsmon ${_pr} || die > > sleep 10 > cd ${_pr}/cnijfilter || die > ./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} --enable-libpath=${_libdir}/cnijlib --enable-binpath=${_bindir} || die > make || die "Couldn't make ${_pr}/cnijfilter" > > if use servicetools; then > cd ../printui || die > ./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} || die > make || die "Couldn't make ${_pr}/printui" > > cd ../lgmon || die > ./autogen.sh --program-suffix=${_pr} || die > make || die "Couldn't make ${_pr}/lgmon" > ># 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}/cnijfilter || die > make DESTDIR=${D} install || die "Couldn't make install ${_pr}/cnijfilter" > > if use servicetools; then > cd ../printui || die > make DESTDIR=${D} install || die "Couldn't make install ${_pr}/printui" > > cd ../lgmon || die > make DESTDIR=${D} install || die "Couldn't make install ${_pr}/lgmon" > ># cd ../stsmon || die ># make DESTDIR=${D} install || die "Couldn't make install ${_pr}/stsmon" > fi > > cd ../.. > cp -a ${_prid}/libs_bin/* ${D}${_libdir} || die > cp -a ${_prid}/database/* ${D}${_libdir}/cnijlib || die > cp -a 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 130645
:
85055
|
89824
|
90098
|
90286
|
92300
|
92394
|
92765
|
94410
|
95341
|
95342
|
95343
|
100540
|
100713
|
100922
|
103002
|
106584
|
189035
|
189036
|
189037
|
189039
|
222229
|
224233
|
224363
|
230051
|
230053
|
233407
|
241641
|
241643
|
261484
|
261485
|
261486
|
262545
|
263077
|
270671
|
270673
|
270681
|
270683
|
270687
|
270875
|
270881
|
277421
|
283773
|
283775
|
284261
|
284263
|
292163
|
292399
|
292401
|
292403
|
295761
|
295777
|
295779
|
296499
|
297123
|
302461
|
302525
|
302527
|
304563
|
304565
|
304995
|
304997
|
304999
|
305003
|
305005
|
312725
|
312727
|
312729
|
312731
|
323934
|
323936
|
323938
|
323940
|
332928
|
332936
|
332938
|
332940
|
332942
|
332996
|
333010
|
333012
|
333014
|
333040
|
333042
|
340020
|
340022
|
349482
|
357984
|
357990
|
385826
|
402866
|
491132
|
515100
|
515104
|
560112
|
560114
|
762522
|
882299