# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit autotools edos2unix rpm DESCRIPTION="Epson Inkjet Printer Driver (ESC/P-R)" HOMEPAGE="https://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" SRC_URI="${P}-1.src.rpm" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc64" RESTRICT="fetch" DEPEND="net-print/cups" RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PV}-warnings.patch" "${FILESDIR}/${PN}-1.7.7-fnocommon.patch" "${FILESDIR}/${PN}-1.8-missing-include.patch" ) pkg_nofetch() { einfo "Please download ${SRC_URI} from:" einfo "https://download-center.epson.com/search/?region=US&language=en" einfo "and move it to your distfiles directory." } src_prepare() { local f for f in $(find ./ -type f || die); do edos2unix "${f}" done eautoreconf default } 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 emake -C src DESTDIR="${D}" install einstalldocs }