summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuan Van <langthang@gentoo.org>2006-03-14 22:41:29 +0000
committerTuan Van <langthang@gentoo.org>2006-03-14 22:41:29 +0000
commita660a0184a4c214f56bb71f9dc7e5d7ffb8abbca (patch)
tree0c0b6aa9eda1ada42210d9ef543c0735d2ace6e8 /mail-client/mailx/mailx-8.1.2.20050715-r1.ebuild
parentNew release for gnome-2.14 (diff)
downloadgentoo-2-a660a0184a4c214f56bb71f9dc7e5d7ffb8abbca.tar.gz
gentoo-2-a660a0184a4c214f56bb71f9dc7e5d7ffb8abbca.tar.bz2
gentoo-2-a660a0184a4c214f56bb71f9dc7e5d7ffb8abbca.zip
Add nostrip patch. Patch by Diego Pettenò <flameeyes@gentoo.org> . Bugs #125557 .
(Portage version: 2.1_pre5-r4)
Diffstat (limited to 'mail-client/mailx/mailx-8.1.2.20050715-r1.ebuild')
-rw-r--r--mail-client/mailx/mailx-8.1.2.20050715-r1.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/mail-client/mailx/mailx-8.1.2.20050715-r1.ebuild b/mail-client/mailx/mailx-8.1.2.20050715-r1.ebuild
new file mode 100644
index 000000000000..8857f08e1cd7
--- /dev/null
+++ b/mail-client/mailx/mailx-8.1.2.20050715-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mailx/mailx-8.1.2.20050715-r1.ebuild,v 1.1 2006/03/14 22:41:29 langthang Exp $
+
+inherit ccc eutils flag-o-matic
+
+IUSE=""
+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."
+SRC_URI="mirror://gentoo/mailx_${MY_PV}.orig.tar.gz
+ mirror://gentoo/${debian_patch}"
+HOMEPAGE="http://www.debian.org"
+
+DEPEND=">=net-libs/liblockfile-1.03
+ virtual/mta
+ !mail-client/mailutils
+ mail-client/mailx-support
+ !virtual/mailx"
+PROVIDE="virtual/mailx"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch "${DISTDIR}/${debian_patch}"
+ epatch "${FILESDIR}/${P}-nostrip.patch"
+ sed -i -e "s: -O2: \$(EXTRAFLAGS):g" Makefile
+}
+
+src_compile() {
+ is-ccc && replace-cc-hardcode
+ make EXTRAFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ dodir /bin /usr/share/man/man1 /etc /usr/lib
+
+ insinto /bin
+ insopts -m 755
+ doins mail
+
+ doman mail.1
+
+ dosym mail /bin/Mail
+ dosym mail /bin/mailx
+ dosym mail.1 /usr/share/man/man1/Mail.1
+
+ cd ${S}/misc
+ insinto /usr/share/${PN}/
+ insopts -m 644
+ doins mail.help mail.tildehelp
+ insinto /etc
+ insopts -m 644
+ doins mail.rc
+}