/[gentoo-x86]/net-mail/mu/mu-0.9.9.ebuild
Gentoo

Contents of /net-mail/mu/mu-0.9.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Nov 7 21:26:39 2012 UTC (22 months, 1 week ago) by tomka
Branch: MAIN
Changes since 1.3: +6 -3 lines
block net-mail/mailutils (bug 441818)

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x89DEB219565C32BC)

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/mu/mu-0.9.9.ebuild,v 1.3 2012/11/06 20:00:16 tomka Exp $
4
5 EAPI=4
6
7 inherit base elisp-common
8
9 DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
10 HOMEPAGE="http://www.djcbsoftware.nl/code/mu/"
11 SRC_URI="http://mu0.googlecode.com/files/${P}.tar.gz
12 doc? ( http://mu0.googlecode.com/files/mu4e-manual-${PV}.pdf )"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="doc emacs gui"
18
19 # Without webkit-gtk there is no pdf-preview functionality, everything
20 # else works as of 0.9.8.5
21 # net-mail/mailutils also installes /usr/bin/mu. Block it until somebody
22 # really wants both installed at the same time.
23 DEPEND="
24 dev-libs/gmime:2.6
25 dev-libs/xapian
26 dev-libs/glib:2
27 gui? (
28 x11-libs/gtk+:3
29 net-libs/webkit-gtk:3 )
30 emacs? ( >=virtual/emacs-23 )
31 !net-mail/mailutils"
32 RDEPEND="${DEPEND}"
33
34 SITEFILE="70mu-gentoo.el"
35
36 src_unpack() {
37 unpack ${P}.tar.gz
38 if use doc ; then
39 cp "${DISTDIR}"/mu4e-manual-${PV}.pdf "${S}" || die
40 fi
41 }
42
43 src_configure() {
44 local guiconf
45 if use gui; then
46 guiconf="--with-gui=gtk3"
47 else
48 guiconf="--with-gui=none"
49 fi
50
51 # Make a guile USE-flag as soon as >=guile-2 is avaiable
52 econf --disable-guile \
53 $(use_enable gui webkit) \
54 $(use_enable emacs mu4e) \
55 ${guiconf}
56 }
57
58 src_install () {
59 base_src_install
60 # Installing the guis is not supported by upstream
61 if use gui; then
62 dobin toys/mug/mug || die
63 fi
64 dodoc AUTHORS HACKING NEWS TODO README ChangeLog INSTALL
65 if use doc; then
66 dodoc mu4e-manual-${PV}.pdf
67 fi
68 if use emacs; then
69 elisp-install ${PN} mu4e/*.el mu4e/*.elc
70 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
71 fi
72 }
73
74 src_test () {
75 emake check
76 }
77
78 pkg_postinst() {
79 if use emacs; then
80 einfo "To use mu4e you need to configure it in your .emacs file"
81 einfo "See the manual for more information:"
82 einfo "http://www.djcbsoftware.nl/code/mu/mu4e/Getting-started.html"
83 fi
84
85 elog "If you upgrade from an older major version,"
86 elog "then you need to rebuild your mail index."
87
88 use emacs && elisp-site-regen
89 }
90
91 pkg_postrm() {
92 use emacs && elisp-site-regen
93 }

  ViewVC Help
Powered by ViewVC 1.1.20