/[gentoo-x86]/net-mail/mailutils/mailutils-2.2.ebuild
Gentoo

Contents of /net-mail/mailutils/mailutils-2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Aug 11 16:01:29 2012 UTC (2 years ago) by jer
Branch: MAIN
Changes since 1.8: +3 -2 lines
Fix building against sys-libs/glibc-2.16 by Diego Elio Pettenò (bug #426188).

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-mail/mailutils/mailutils-2.2.ebuild,v 1.8 2012/04/24 10:36:06 mgorny Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2"
7
8 inherit eutils flag-o-matic libtool python
9
10 DESCRIPTION="A useful collection of mail servers, clients, and filters."
11 HOMEPAGE="http://www.gnu.org/software/mailutils/mailutils.html"
12 SRC_URI="mirror://gnu/mailutils/${P}.tar.bz2"
13 LICENSE="GPL-2 LGPL-2.1"
14 SLOT="0"
15
16 KEYWORDS="amd64 ~hppa ~ppc x86 ~ppc-macos ~x64-macos ~x86-macos"
17 IUSE="bidi gdbm guile ldap mysql nls pam postgres python test tokyocabinet"
18
19 RDEPEND="!mail-client/nmh
20 !mail-filter/libsieve
21 !mail-client/mailx
22 !mail-client/nail
23 bidi? ( dev-libs/fribidi )
24 guile? ( dev-scheme/guile )
25 gdbm? ( sys-libs/gdbm )
26 ldap? ( net-nds/openldap )
27 mysql? ( virtual/mysql )
28 nls? ( sys-devel/gettext )
29 postgres? ( dev-db/postgresql-base )
30 tokyocabinet? ( dev-db/tokyocabinet )
31 virtual/mta"
32
33 DEPEND="${RDEPEND}
34 test? ( dev-util/dejagnu )"
35
36 pkg_setup() {
37 if use python; then
38 python_set_active_version 2
39 python_pkg_setup
40 fi
41 }
42
43 src_prepare() {
44 epatch "${FILESDIR}"/${PN}-2.1-python.patch \
45 "${FILESDIR}"/${P}-gets.patch
46 elibtoolize # for Darwin bundles
47
48 # Disable bytecompilation of Python modules.
49 echo "#!/bin/sh" > build-aux/py-compile
50 }
51
52 src_configure() {
53 # TODO: Fix this breakage, starting in examples/cpp/
54 append-ldflags $(no-as-needed)
55
56 local myconf="--localstatedir=${EPREFIX}/var --sharedstatedir=${EPREFIX}/var"
57 myconf="${myconf} --enable-mh"
58
59 # We need sendmail or compiling will fail
60 myconf="${myconf} --enable-sendmail"
61
62 econf ${myconf} \
63 $(use_with bidi fribidi) \
64 $(use_with gdbm) \
65 $(use_with guile) \
66 $(use_with ldap) \
67 $(use_with mysql) \
68 $(use_enable nls) \
69 $(use_enable pam) \
70 $(use_with postgres) \
71 $(use_with python) \
72 $(use_with tokyocabinet)
73 }
74
75 src_install() {
76 emake DESTDIR="${D}" install || die
77 # mail.rc stolen from mailx, resolve bug #37302.
78 insinto /etc
79 doins "${FILESDIR}/mail.rc"
80
81 if use python; then
82 python_clean_installation_image
83 rm -f "${ED}$(python_get_sitedir)/mailutils/c_api.a"
84 fi
85 }
86
87 pkg_postinst() {
88 if use python; then
89 python_mod_optimize mailutils
90 fi
91 }
92
93 pkg_postrm() {
94 if use python; then
95 python_mod_cleanup mailutils
96 fi
97 }

  ViewVC Help
Powered by ViewVC 1.1.20