diff options
author | 2010-02-02 17:45:35 +0000 | |
---|---|---|
committer | 2010-02-02 17:45:35 +0000 | |
commit | 116d60d9b9ddb1b843a58c6cb24424e7d4c00760 (patch) | |
tree | c95e6f0f1eafd16a4462a8175bb6bdc562e32cfb /mail-client | |
parent | Version bump (diff) | |
download | gentoo-2-116d60d9b9ddb1b843a58c6cb24424e7d4c00760.tar.gz gentoo-2-116d60d9b9ddb1b843a58c6cb24424e7d4c00760.tar.bz2 gentoo-2-116d60d9b9ddb1b843a58c6cb24424e7d4c00760.zip |
Version bump thanks to Andreas Niederl and many others (bug #156878). Respect CC (bug #244132).
(Portage version: 2.2_rc62/cvs/Linux i686)
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/nail/ChangeLog | 10 | ||||
-rw-r--r-- | mail-client/nail/nail-11.25-r3.ebuild | 4 | ||||
-rw-r--r-- | mail-client/nail/nail-12.4.ebuild | 87 |
3 files changed, 97 insertions, 4 deletions
diff --git a/mail-client/nail/ChangeLog b/mail-client/nail/ChangeLog index 42132f3e5814..2989e6372db2 100644 --- a/mail-client/nail/ChangeLog +++ b/mail-client/nail/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-client/nail -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/ChangeLog,v 1.55 2008/08/23 01:42:24 cardoe Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/ChangeLog,v 1.56 2010/02/02 17:45:35 jer Exp $ + +*nail-12.4 (02 Feb 2010) + + 02 Feb 2010; Jeroen Roovers <jer@gentoo.org> +nail-12.4.ebuild: + Version bump thanks to Andreas Niederl and many others (bug #156878). + Respect CC (bug #244132). 23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml: add GLEP 56 USE flag desc from use.local.desc diff --git a/mail-client/nail/nail-11.25-r3.ebuild b/mail-client/nail/nail-11.25-r3.ebuild index f8fc6e18bff0..9cbd9d762fd1 100644 --- a/mail-client/nail/nail-11.25-r3.ebuild +++ b/mail-client/nail/nail-11.25-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/nail-11.25-r3.ebuild,v 1.13 2007/07/09 05:37:56 redhatter Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/nail-11.25-r3.ebuild,v 1.14 2010/02/02 17:45:35 jer Exp $ inherit eutils DESCRIPTION="Nail is an enhanced mailx-compatible mail client" @@ -58,7 +58,7 @@ src_install () { #set smtp=localhost EOSMTP - make DESTDIR=${D} \ + make DESTDIR="${D}" \ UCBINSTALL=$(type -p install) \ PREFIX=/usr install || die "install failed" dodoc AUTHORS INSTALL README diff --git a/mail-client/nail/nail-12.4.ebuild b/mail-client/nail/nail-12.4.ebuild new file mode 100644 index 000000000000..6d2784e83ea3 --- /dev/null +++ b/mail-client/nail/nail-12.4.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/nail-12.4.ebuild,v 1.1 2010/02/02 17:45:35 jer Exp $ + +EAPI="2" + +inherit eutils + +HOMEPAGE="http://heirloom.sourceforge.net/" +DESCRIPTION="an enhanced mailx-compatible mail client" +LICENSE="BSD" + +MY_PN="mailx" +MY_P="${MY_PN}-${PV}" +SRC_URI="mirror://sourceforge/project/heirloom/heirloom-${MY_PN}/${PV}/${MY_P}.tar.bz2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="ssl net kerberos" + +PROVIDE="virtual/mailx" +RDEPEND=" + ssl? ( dev-libs/openssl ) + kerberos? ( virtual/krb5 ) + !virtual/mailx +" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +remove_ssl() { + elog "Disabling SSL support" + sed -i -e 's~#define USE_\(OPEN\)\?SSL~#undef USE_\1SSL~' config.h + sed -i -e 's~-ssl~~' -e 's~-lcrypto~~' LIBS +} + +remove_sockets() { + elog "Not enabling sockets (thus disabling IMAP, POP and SMTP)" + sed -i -e 's~#define HAVE_SOCKETS~#undef HAVE_SOCKETS~' config.h +} + +src_prepare() { + # Do not strip the binary + sed -i -e '/STRIP/d' Makefile +} + +src_configure() { + # Build config.h and LIBS, neccesary to tweak the config + make config.h LIBS + + # Logic to 'configure' the package + if use net && ! use ssl ; then + remove_ssl + elif ! use net ; then + # Linking to ssl without net support is pointless + remove_ssl + remove_sockets + fi +} + +src_compile() { + # No configure script to check for and set this + tc-export CC + + emake \ + PREFIX=/usr \ + MAILSPOOL='/var/spool/mail' \ + || die "emake failed" +} + +src_install () { + # Use /usr/lib/sendmail by default and provide an example + cat <<- EOSMTP >> nail.rc + + # Use the local sendmail (/usr/lib/sendmail) binary by default. + # (Uncomment the following line to use a SMTP server) + #set smtp=localhost + EOSMTP + + make DESTDIR="${D}" \ + UCBINSTALL=$(type -p install) \ + PREFIX=/usr install || die "install failed" + dodoc AUTHORS INSTALL README + dodir /bin + dosym /usr/bin/mailx /bin/mail + dosym /usr/bin/mailx /usr/bin/mail + dosym /usr/bin/mailx /usr/bin/Mail +} |