Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482176 - net-print/epson-inkjet-printer-artisan-725-835-series-1.0.0 -
Summary: net-print/epson-inkjet-printer-artisan-725-835-series-1.0.0 -
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: printer-drivers
  Show dependency tree
 
Reported: 2013-08-23 07:54 UTC by CyberGuerro
Modified: 2021-02-21 09:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CyberGuerro 2013-08-23 07:54:16 UTC
This is the ebuild:

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

EAPI=5

inherit rpm autotools base

MY_P="${P}-1lsb3.2.src.rpm"
TGT="/opt/${PN}"

DESCRIPTION="Epson Inkjet Printer Driver (ESC/P) for Linux" # common Linux printer driver
HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
SRC_URI=${MY_P}
FILTERDIR=${WORKDIR}/epson-inkjet-printer-filter-1.0.0
RESTRICT="fetch mirror"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"

DEPEND="net-print/cups
        x11-misc/colord"
RDEPEND="${DEPEND}"

pkg_nofetch() {
    einfo "Please download ${MY_P}"
    einfo "from ${HOMEPAGE}"
    einfo "and place it into ${DISTDIR}"
}
src_unpack() {
    rpm_src_unpack
}

src_prepare() {
    cd ${FILTERDIR}
    sed -i -e 's:/opt/lsb/:/usr/:g' configure.ac || die
    chmod +x configure
    eautoreconf
    filter-ldflags "-Wl,--as-needed"
    # if you have runtime problems: add "--enable-debug" and look into /tmp/epson-inkjet-printer-filter.txt
    ./configure --prefix=$TGT
}

src_compile() {
    cd ${FILTERDIR}
    make -j1 || die
}

src_install() {
    # install docs
    cd ${S}
    into $TGT
    dodoc AUTHORS COPYING COPYING.EPSON README Manual.txt

    # install ppds-files into /usr/share/ppd/Epson
    cd ppds
    gzip -9 *.ppd
    insinto /usr/share/ppd/Epson
    doins *.ppd.gz       || die

    # install lib's, recources and watermarks
    case `uname -m` in
    x86_64) X86LIB=64 ;;
    *)      ;;
    esac

    insinto $TGT/lib"$X86LIB"
    doins lib"$X86LIB"/* || die

    insinto $TGT/watermark
    doins watermark/*    || die

    insinto $TGT/resource
    doins resource/*     || die

    # install filter-binary
    exeinto $TGT/cups/lib/filter
    doexe ${FILTERDIR}/src/epson_inkjet_printer_filter || die
}

Reproducible: Always
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2017-02-19 21:55:46 UTC
Is anyone still interested in this?