summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Janda <felix.janda@posteo.de>2016-04-24 20:56:21 +0200
committerAnthony G. Basile <blueness@gentoo.org>2016-04-24 15:39:43 -0400
commit6492645b5abdf58f024dcd5c2b0ff068d92f8cf2 (patch)
tree0ea2469e4bc02537dcdf1f482c86a39a4ff8208c /mail-client/mailx
parentapp-admin/systemrescuecd-x86: Bump to 4.7.2, #581074 (diff)
downloadgentoo-6492645b5abdf58f024dcd5c2b0ff068d92f8cf2.tar.gz
gentoo-6492645b5abdf58f024dcd5c2b0ff068d92f8cf2.tar.bz2
gentoo-6492645b5abdf58f024dcd5c2b0ff068d92f8cf2.zip
mail-client/mailx: Fix build with musl, bug #575098
- Add patch - Bump EAPI to 6
Diffstat (limited to 'mail-client/mailx')
-rw-r--r--mail-client/mailx/files/mailx-8.1.2.20050715-musl.patch19
-rw-r--r--mail-client/mailx/mailx-8.1.2.20050715-r7.ebuild67
2 files changed, 86 insertions, 0 deletions
diff --git a/mail-client/mailx/files/mailx-8.1.2.20050715-musl.patch b/mail-client/mailx/files/mailx-8.1.2.20050715-musl.patch
new file mode 100644
index 000000000000..a2e03ec9753f
--- /dev/null
+++ b/mail-client/mailx/files/mailx-8.1.2.20050715-musl.patch
@@ -0,0 +1,19 @@
+--- a/mailx-8.1.2-0.20050715cvs.orig/EXT/vis.h
++++ b/mailx-8.1.2-0.20050715cvs.orig/EXT/vis.h
+@@ -70,9 +70,6 @@
+ */
+ #define UNVIS_END 1 /* no more characters */
+
+-#include <sys/cdefs.h>
+-
+-__BEGIN_DECLS
+ char *vis(char *, int, int, int);
+ int strvis(char *, const char *, int);
+ int strnvis(char *, const char *, size_t, int)
+@@ -84,6 +81,4 @@ int unvis(char *, char, int *, int);
+ ssize_t strnunvis(char *, const char *, size_t)
+ /* __attribute__ ((__bounded__(__string__,1,3)))*/;
+
+-__END_DECLS
+-
+ #endif /* !_VIS_H_ */
diff --git a/mail-client/mailx/mailx-8.1.2.20050715-r7.ebuild b/mail-client/mailx/mailx-8.1.2.20050715-r7.ebuild
new file mode 100644
index 000000000000..97001f4b46f2
--- /dev/null
+++ b/mail-client/mailx/mailx-8.1.2.20050715-r7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils
+
+MX_MAJ_VER=${PV%.*}
+MX_MIN_VER=${PV##*.}
+MY_PV=${MX_MAJ_VER}-0.${MX_MIN_VER}cvs
+S=${WORKDIR}/${PN}-${MY_PV}.orig
+debian_patch=${PN}_${MY_PV}-1.diff.gz
+
+DESCRIPTION="The /bin/mail program, which is used to send mail via shell scripts"
+HOMEPAGE="http://www.debian.org/"
+SRC_URI="mirror://gentoo/mailx_${MY_PV}.orig.tar.gz
+ mirror://gentoo/${debian_patch}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+DEPEND=">=net-libs/liblockfile-1.03
+ virtual/mta
+ mail-client/mailx-support"
+
+RDEPEND="${DEPEND}
+ !mail-client/nail
+ !net-mail/mailutils"
+
+src_prepare() {
+ epatch "${DISTDIR}/${debian_patch}"
+ epatch "${FILESDIR}/${P}-musl.patch"
+ epatch "${FILESDIR}/${P}-nostrip.patch"
+ sed -i -e "s: -O2: \$(EXTRAFLAGS):g" Makefile || die
+ epatch "${FILESDIR}/${P}-offsetof.patch"
+ eapply_user
+}
+
+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
+
+ # compatibility link
+ dosym /usr/bin/mail /bin/mail
+}
+
+pkg_postinst() {
+ elog "mail command now lives in /usr/bin."
+ elog "Please adjust your scripts."
+}