1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs
7 DESCRIPTION="A simple fax program for single-user systems"
8 HOMEPAGE="http://www.cce.com/efax"
10 mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig.tar.gz
11 mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-$(ver_cut 5).$(ver_cut 7).diff.gz
14 KEYWORDS="~amd64 ~ppc ~x86"
18 "${FILESDIR}"/${PN}-0.9a-fax-command.patch
19 "${FILESDIR}"/${PN}-0.9a-fno-common.patch
20 "${FILESDIR}"/${PN}-0.9a-strip.patch
22 S="${WORKDIR}/${P/_p*}-001114"
25 eapply "${WORKDIR}"/${PN}_${PV/_p*}-$(ver_cut 5).$(ver_cut 7).diff
27 for patch in $(< debian/patches/00list); do
28 if [[ -f debian/patches/${patch} ]]; then
29 eapply debian/patches/${patch}
30 elif [[ -f debian/patches/${patch}.dpatch ]]; then
31 eapply debian/patches/${patch}.dpatch
33 die "Cannot find patch ${patch}"
41 emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
47 newman fax.1 efax-fax.1 # Don't collide with net-dialup/mgetty, bug #429808