1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs
8 DP="bsd-${PN}_${PV%.*}-0.${PV##*.}cvs"
9 DPT="${DP}.orig.tar.bz2"
10 DPP="${DP}-4.debian.tar.xz"
12 DESCRIPTION="The $ mail program, which is used to send mail via shell scripts"
13 HOMEPAGE="https://www.debian.org/"
14 SRC_URI="http://http.debian.net/debian/pool/main/b/bsd-${PN}/${DPT}
15 http://http.debian.net/debian/pool/main/b/bsd-${PN}/${DPP}"
17 S="${WORKDIR}/${DP/_/-}.orig"
21 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
24 DEPEND=">=net-libs/liblockfile-1.03
27 mail-client/mailx-support"
34 eapply "${WORKDIR}/debian/patches"
35 eapply "${FILESDIR}/${PN}-8.1.2.20050715-offsetof.patch"
40 emake CC=$(tc-getCC) EXTRAFLAGS="${CFLAGS}"
48 dosym mail /usr/bin/Mail
49 dosym mail /usr/bin/mailx
50 dosym mail.1 /usr/share/man/man1/Mail.1
52 insinto /usr/share/mailx/
53 doins misc/mail.help misc/mail.tildehelp