blob: 7e3a909cb4f2f9eac29eca841a29a904ec112788 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="A simple fax program for single-user systems"
HOMEPAGE="https://www.cce.com/efax/"
SRC_URI="
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig.tar.gz
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-$(ver_cut 5).$(ver_cut 7).diff.gz
"
KEYWORDS="~amd64 ~ppc ~x86"
SLOT="0"
LICENSE="GPL-2"
PATCHES=(
"${FILESDIR}"/${PN}-0.9a-fax-command.patch
"${FILESDIR}"/${PN}-0.9a-fno-common.patch
"${FILESDIR}"/${PN}-0.9a-strip.patch
)
S="${WORKDIR}/${P/_p*}-001114"
src_prepare() {
eapply "${WORKDIR}"/${PN}_${PV/_p*}-$(ver_cut 5).$(ver_cut 7).diff
local patch
for patch in $(< debian/patches/00list); do
if [[ -f debian/patches/${patch} ]]; then
eapply debian/patches/${patch}
elif [[ -f debian/patches/${patch}.dpatch ]]; then
eapply debian/patches/${patch}.dpatch
else
die "Cannot find patch ${patch}"
fi
done
default
}
src_compile() {
emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install() {
dobin efax efix fax
doman efax.1 efix.1
newman fax.1 efax-fax.1 # Don't collide with net-dialup/mgetty, bug #429808
dodoc README
}
|