gentoo/mail-client/mailx/mailx-8.1.2.20220412.ebuild
Fabian Groffen 2d25fad95c
*/*: drop *-linux keywords
Bug: https://bugs.gentoo.org/473598
Bug: https://bugs.gentoo.org/720224
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2025-12-19 10:51:55 +01:00

56 lines
1.2 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DP="bsd-${PN}_${PV%.*}-0.${PV##*.}cvs"
DPT="${DP}.orig.tar.xz"
DPP="${DP}-1.debian.tar.xz"
DESCRIPTION="The $ mail program, which is used to send mail via shell scripts"
HOMEPAGE="https://www.debian.org/"
SRC_URI="
http://http.debian.net/debian/pool/main/b/bsd-${PN}/${DPT}
http://http.debian.net/debian/pool/main/b/bsd-${PN}/${DPP}
"
S="${WORKDIR}/${DP/_/-}.orig"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
DEPEND="
>=net-libs/liblockfile-1.03
dev-libs/libbsd
virtual/mta
|| ( mail-client/mailx-support mail-mta/opensmtpd )"
RDEPEND="${DEPEND}
!net-mail/mailutils"
PATCHES=(
"${WORKDIR}"/debian/patches
"${FILESDIR}"/${PN}-8.1.2.20050715-offsetof.patch
"${FILESDIR}"/${PN}-8.1.2-20180807-musl-CCEQ.patch
)
src_compile() {
emake CC="$(tc-getCC)" EXTRAFLAGS="${CFLAGS}"
}
src_install() {
dobin mail
doman mail.1
dosym mail /usr/bin/Mail
dosym mail /usr/bin/mailx
dosym mail.1 /usr/share/man/man1/Mail.1
insinto /usr/share/mailx/
doins misc/mail.help misc/mail.tildehelp
insinto /etc
doins misc/mail.rc
}