1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils flag-o-matic toolchain-funcs
10 MY_PV=${MX_MAJ_VER}-0.${MX_MIN_VER}cvs
11 S=${WORKDIR}/${PN}-${MY_PV}.orig/
12 debian_patch=${PN}_${MY_PV}-1.diff.gz
14 DESCRIPTION="The /bin/mail program, which is used to send mail via shell scripts"
15 HOMEPAGE="http://www.debian.org/"
16 SRC_URI="mirror://gentoo/mailx_${MY_PV}.orig.tar.gz
17 mirror://gentoo/${debian_patch}"
21 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos"
24 DEPEND=">=net-libs/liblockfile-1.03
26 mail-client/mailx-support"
35 epatch "${DISTDIR}/${debian_patch}"
36 epatch "${FILESDIR}/${P}-nostrip.patch"
37 sed -i -e "s: -O2: \$(EXTRAFLAGS):g" Makefile
38 epatch "${FILESDIR}/${P}-offsetof.patch"
42 emake CC=$(tc-getCC) EXTRAFLAGS="${CFLAGS}" || die
46 dodir /usr/bin /bin /usr/share/man/man1 /etc
54 dosym mail /usr/bin/Mail
55 dosym mail /usr/bin/mailx
56 dosym mail.1 /usr/share/man/man1/Mail.1
58 insinto /usr/share/mailx/
59 doins misc/mail.help misc/mail.tildehelp || die
62 doins misc/mail.rc || die
65 dosym /usr/bin/mail /bin/mail || die
69 elog "mail command now lives in /usr/bin."
70 elog "Please adjust your scripts."