Feature #190

use Cannon MF printers in gentoo

Added by Михаил Гагауз about 14 years ago. Updated almost 14 years ago.

Status:Closed Start:12/13/2010
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Calculate Linux Spent time: -
Target version:11.0
Votes: 0

Description

  1. thanks to http://bugs.gentoo.org/130612

need:
net-print/cndrvcups-lb/cndrvcups-lb-2.10_p1.ebuild and net-print/cndrvcups-common/cndrvcups-common-2.10_p1.ebuild

*cat net-print/cndrvcups-common/cndrvcups-common-2.10_p1.ebuild *

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit multilib eutils rpm versionator
MY_P=${P/_p/-}
DESCRIPTION="Common files for the Canon CUPS Capt driver" 
HOMEPAGE="http://www.canon.com/" 
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" 

SRC_URI="mirror://canon/${PN}/${MY_P}.tar.gz" 
###
# Go to http://software.canon-europe.com/, select in "Multifunctionals" i-SENSYS MF4010
# Find and follow UFRII/UFRII LT Printer Driver for Linux v2.10 (2.10)
# Download 106eenx.zip and extract anywhere
# copy from this anywhere file UK/Sources/cndrvcups-common-2.10-1.tar.gz to ${DISTDIR}
# 
# PORFIT
###
### TODO:
# VMESTO ETOGO KRIVOGO KOMMENTA --^^ CDELATI ADEKVTNII  SRC_URI
###

DEPEND=">=net-print/cups-1.1.17" 
S=${WORKDIR}/${PN}-$(get_version_component_range 1-2)

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_configure(){
    if hasuse cngplp; then CNGPLP="cngplp"; fi
    for i in buftool ${CNGPLP}; do
        cd ${i}
        NOCONFIGURE=1 ./autogen.sh
        econf
        cd ..
    done
    cd cpca
    NOCONFIGURE=1 ./autogen.sh
    econf --enable-shared --disable-static
    cd ..
}

src_compile() {
    for i in buftool cpca c3plmod_ipc ${CNGPLP}; do
        cd ${i}
        emake
        cd ..
    done
}

src_install() {
    for i in buftool cpca ${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 cpca c3plmod_ipc ${CNGPLP}; do
        docinto ${i}
        dodoc ${i}/NEWS ${i}/README ${i}/AUTHORS ${i}/ChangeLog
    done
    docinto buftool
    dodoc buftool/LICENSE.txt
}

cat net-print/cndrvcups-lb/cndrvcups-lb-2.10_p1.ebuild

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit multilib eutils versionator

MY_P=${P/_p/-}
S=${WORKDIR}/${PN}-$(get_version_component_range 1-2)

DESCRIPTION="Canon UFR II / LIPSLX Printer Driver" 
HOMEPAGE="http://www.canon.com/" 

SRC_URI="mirror://canon/${PN}/${MY_P}.tar.gz" 
###
# Go to http://software.canon-europe.com/, select in "Multifunctionals" i-SENSYS MF4010
# Find and follow UFRII/UFRII LT Printer Driver for Linux v2.10 (2.10)
# Download 106eenx.zip and extract anywhere
# copy from this anywhere file UK/Sources/cndrvcups-lb-2.10-1.tar.gz to ${DISTDIR}
# 
# PORFIT
###
### TODO:
# VMESTO ETOGO KRIVOGO KOMMENTA --^^ CDELATI ADEKVTNII  SRC_URI
###

LICENSE="CANON" 
SLOT="0" 
KEYWORDS="~amd64 ~x86" 
IUSE="" 

DEPEND="=net-print/cndrvcups-common-${PV}" 

src_compile() {
    for i in ppd pstoufr2cpca backend; do
        cd ${i}
        NOCONFIGURE=1 ./autogen.sh
        econf \
            --libdir=/usr/libexec/
        emake
        cd ..
    done
}

src_install() {
    emake install DESTDIR=${D}

    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

    insinto /usr/share/caepcm
    doins data/*
}

History

Updated by Alexander Tratsevskiy about 14 years ago

>>> Downloading 'http://distfiles.gentoo.org/distfiles/cndrvcups-common-2.10-1.tar.gz'
--2010-12-21 23:52:54--  http://distfiles.gentoo.org/distfiles/cndrvcups-common-2.10-1.tar.gz
Распознаётся distfiles.gentoo.org... 156.56.247.195, 204.152.191.39, 216.165.129.135, ...
Устанавливается соединение с distfiles.gentoo.org|156.56.247.195|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 404 Not Found
2010-12-21 23:52:55 ОШИБКА 404: Not Found.

!!! Couldn't download 'cndrvcups-common-2.10-1.tar.gz'. Aborting.
!!! Fetch failed for cndrvcups-common-2.10-1.tar.gz, can't update Manifest

Updated by Alexander Tratsevskiy almost 14 years ago

  • Status changed from New to Closed
  • Target version set to 11.0
  • % Done changed from 0 to 100

Updated by Михаил Падалка almost 14 years ago

Эм... какой такой Closed? А где cndrvcups-lb? В нем драйверы для новых МФУ, типа MF-4530D.

Also available in: Atom PDF

Thank you!