# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit rpm DESCRIPTION="Epson Inkjet Printer Driver (ESC/P-R) 2" HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" SRC_URI="https://download3.ebz.epson.net/dsc/f/03/00/08/71/45/3c00267c241e8cb90f2167a27c4e9f75828e5e66/epson-inkjet-printer-escpr2-1.0.27-1lsb3.2.src.rpm" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86 ~arm ~arm64" IUSE="escprlib" RDEPEND="net-print/cups !net-print/epson-inkjet-printer-escpr2-bin" DEPEND="${RDEPEND}" PATCHES=( # Shamelessly copied from: # https://aur.archlinux.org/packages/epson-inkjet-printer-escpr2/ # Patch URL: https://aur.archlinux.org/cgit/aur.git/tree/bug_x86_64.patch?h=epson-inkjet-printer-escpr2 "${FILESDIR}/bug_x86_64.patch" ) #src_prepare() { # if use amd64 ; then # epatch "${FILESDIR}/bug_x86_64.patch" # fi #} src_configure() { econf --disable-shared # Makefile calls ls to generate a file list which is included in Makefile.am # Set the collation to C to avoid automake being called automatically unset LC_ALL export LC_COLLATE=C } src_install() { emake -C ppd DESTDIR="${D}" install if use escprlib ; then emake -C escprlib DESTDIR="${D}" install fi emake -C src DESTDIR="${D}" install einstalldocs }