Search:  
Gentoo Wiki

Ucpt:Net-print/lexmark-z700/lexmark-z700-1.1.1.ebuild

#

Image:Ebuild_file.png Net-print/lexmark-z700/lexmark-z700-1.1.1.ebuild

Download - Bugs - Discussion - History

Back to the Index
inherit rpm multilib

DESCRIPTION="Lexmark Z700/P700/P3150 CUPS Printer Driver (binary i586)"
HOMEPAGE="http://users.cybercity.dk/~dko12479/"
SRC_URI="http://users.cybercity.dk/~dko12479/z700llpddk-2.0-1.i386.rpm
    http://users.cybercity.dk/~dko12479/${PN}-cups-driver-${PV}-1.i586.rpm"
RESTRICT="mirror"

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

DEPEND=""
RDEPEND="app-text/enscript
    net-print/magicfilter
    >=net-print/cups-1.1
    virtual/ghostscript
    =virtual/libstdc++-3.3"

S=${WORKDIR}

pkg_setup() {
    # This is a binary x86 package => ABI=x86
    has_multilib_profile && ABI="x86"
}

src_unpack() {
    rpm_src_unpack

    gunzip usr/share/cups/model/*.ppd.gz

    chmod 755 usr/include/lexmark
    chmod 644 usr/include/lexmark/*.h

    # >=cups-1.2 uses /usr/libexec instead of /usr/lib
    mkdir -p usr/libexec/cups/{backend,filter}
    for f in usr/lib/cups/*/*; do
        ln -s /$f ${f/lib/libexec}
    done
}

src_compile() {
    einfo "This is a binary package"
}

src_install() {
    mv usr ${D}/ || die "could not move /usr"
}

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 "In case of trouble, check"
    einfo "  http://www.gentoo-wiki.info/Lexmark_Printers"
    einfo ""
}
 # 
Retrieved from "http://www.gentoo-wiki.info/Ucpt:Net-print/lexmark-z700/lexmark-z700-1.1.1.ebuild"

Last modified: Fri, 08 Dec 2006 01:51:00 +0000 Hits: 4,777