/[gentoo-x86]/mail-client/evolution/evolution-2.32.3-r1.ebuild
Gentoo

Contents of /mail-client/evolution/evolution-2.32.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sun Apr 15 20:24:03 2012 UTC (2 years, 4 months ago) by tetromino
Branch: MAIN
Changes since 1.5: +4 -1 lines
Fix building with glib-2.32 (bug #412111, thanks to Peter Alfredsen).

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

1 patrick 1.5 # Copyright 1999-2012 Gentoo Foundation
2 pacho 1.1 # Distributed under the terms of the GNU General Public License v2
3 tetromino 1.6 # $Header: /var/cvsroot/gentoo-x86/mail-client/evolution/evolution-2.32.3-r1.ebuild,v 1.5 2012/02/10 03:29:22 patrick Exp $
4 pacho 1.1
5     EAPI="3"
6     GCONF_DEBUG="no"
7     GNOME2_LA_PUNT="yes"
8 patrick 1.5 PYTHON_DEPEND="python? 2:2.5"
9 pacho 1.1
10     inherit autotools flag-o-matic gnome2 python versionator
11    
12     MY_MAJORV=$(get_version_component_range 1-2)
13    
14     DESCRIPTION="Integrated mail, addressbook and calendaring functionality"
15     HOMEPAGE="http://www.gnome.org/projects/evolution/"
16    
17     SRC_URI="${SRC_URI} http://dev.gentoo.org/~pacho/gnome/${P}-patches.tar.xz"
18    
19     LICENSE="GPL-2 LGPL-2 OPENLDAP"
20     SLOT="2.0"
21     KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
22     IUSE="clutter connman crypt doc gstreamer kerberos ldap networkmanager python ssl"
23    
24     # We need a graphical pinentry frontend to be able to ask for the GPG
25     # password from inside evolution, bug 160302
26     PINENTRY_DEPEND="|| ( app-crypt/pinentry[gtk] app-crypt/pinentry-qt app-crypt/pinentry[qt4] )"
27    
28     # contacts-map plugin requires libchaimplain and geoclue
29     # glade-3 support is for maintainers only per configure.ac
30     # mono plugin disabled as it's incompatible with 2.8 and lacks maintainance (see bgo#634571)
31     # pst is not mature enough and changes API/ABI frequently
32     RDEPEND=">=dev-libs/glib-2.25.12:2
33     >=x11-libs/gtk+-2.20.0:2
34     >=dev-libs/libunique-1.1.2:1
35     >=gnome-base/gnome-desktop-2.26:2
36     >=dev-libs/libgweather-2.25.3:2
37 tetromino 1.4 <dev-libs/libgweather-2.91:2
38 pacho 1.1 media-libs/libcanberra[gtk]
39     >=x11-libs/libnotify-0.3
40     >=gnome-extra/evolution-data-server-${PV}[weather]
41     >=gnome-extra/gtkhtml-3.31.90:3.14
42     >=gnome-base/gconf-2:2
43     dev-libs/atk
44     >=dev-libs/libxml2-2.7.3:2
45     >=net-libs/libsoup-2.4:2.4
46     >=media-gfx/gtkimageview-1.6
47     >=x11-misc/shared-mime-info-0.22
48     >=x11-themes/gnome-icon-theme-2.30.2.1
49     >=dev-libs/libgdata-0.4
50    
51 tetromino 1.2 clutter? (
52     >=media-libs/clutter-1.0.0:1.0
53     >=media-libs/clutter-gtk-0.90:1.0
54     x11-libs/mx:1.0 )
55 pacho 1.1 connman? ( net-misc/connman )
56     crypt? ( || (
57     ( >=app-crypt/gnupg-2.0.1-r2
58     ${PINENTRY_DEPEND} )
59     =app-crypt/gnupg-1.4* ) )
60     gstreamer? (
61     >=media-libs/gstreamer-0.10:0.10
62     >=media-libs/gst-plugins-base-0.10:0.10 )
63     kerberos? ( virtual/krb5 )
64     ldap? ( >=net-nds/openldap-2 )
65     networkmanager? ( >=net-misc/networkmanager-0.7 )
66     ssl? (
67     >=dev-libs/nspr-4.6.1
68     >=dev-libs/nss-3.11 )
69    
70     !<gnome-extra/evolution-exchange-2.32"
71    
72     DEPEND="${RDEPEND}
73     >=dev-util/pkgconfig-0.16
74     >=dev-util/intltool-0.35.5
75     sys-devel/gettext
76     sys-devel/bison
77     app-text/scrollkeeper
78     >=app-text/gnome-doc-utils-0.9.1
79     app-text/docbook-xml-dtd:4.1.2
80     >=gnome-base/gnome-common-2.12
81     >=dev-util/gtk-doc-am-1.9
82     doc? ( >=dev-util/gtk-doc-1.9 )"
83     # eautoreconf needs:
84     # >=gnome-base/gnome-common-2.12
85     # >=dev-util/gtk-doc-am-1.9
86    
87     pkg_setup() {
88     ELTCONF="--reverse-deps"
89     DOCS="AUTHORS ChangeLog* HACKING MAINTAINERS NEWS* README"
90     G2CONF="${G2CONF}
91     --without-kde-applnk-path
92     --enable-plugins=experimental
93     --enable-image-inline
94     --enable-canberra
95     --enable-weather
96     $(use_enable ssl nss)
97     $(use_enable ssl smime)
98     $(use_enable networkmanager nm)
99     $(use_enable connman)
100     $(use_enable gstreamer audio-inline)
101     --disable-profiling
102     --disable-pst-import
103     $(use_enable python)
104     $(use_with clutter)
105     $(use_with ldap openldap)
106     $(use_with kerberos krb5 /usr)
107     --disable-contacts-map
108     --without-glade-catalog
109     --disable-mono
110     --disable-gtk3"
111    
112     # dang - I've changed this to do --enable-plugins=experimental. This will
113     # autodetect new-mail-notify and exchange, but that cannot be helped for the
114     # moment. They should be changed to depend on a --enable-<foo> like mono
115     # is. This cleans up a ton of crap from this ebuild.
116    
117     # Use NSS/NSPR only if 'ssl' is enabled.
118     if use ssl ; then
119     G2CONF="${G2CONF} --enable-nss=yes"
120     else
121     G2CONF="${G2CONF}
122     --without-nspr-libs
123     --without-nspr-includes
124     --without-nss-libs
125     --without-nss-includes"
126     fi
127    
128     # NM and connman support cannot coexist
129     if use networkmanager && use connman ; then
130     ewarn "It is not possible to enable both ConnMan and NetworkManager, disabling connman..."
131     G2CONF="${G2CONF} --disable-connman"
132     fi
133    
134     python_set_active_version 2
135     }
136    
137     src_prepare() {
138     epatch "${FILESDIR}"/${PN}-2.32.1-libnotify-0.7.patch
139    
140     # Fix invalid use of la file in contact-editor, upstream bug #635002
141     epatch "${FILESDIR}/${PN}-2.32.0-wrong-lafile-usage.patch"
142    
143     # Fix compilation with --disable-smime, bug #356471
144     epatch "${FILESDIR}/${PN}-2.32.2-smime-fix.patch"
145    
146     # Fix desktop file to work with latest glib
147     epatch "${FILESDIR}/${PN}-2.32.2-mime-handler.patch"
148    
149 tetromino 1.6 # Fix build failure with glib-2.32, bug #412111
150     epatch "${FILESDIR}/${P}-gmodule-explicit.patch"
151    
152 pacho 1.1 # Apply multiple backports from master fixing important bugs
153     epatch "${WORKDIR}/${P}-patches"/*.patch
154    
155     # Use NSS/NSPR only if 'ssl' is enabled.
156     if use ssl ; then
157     sed -e 's|mozilla-nss|nss|' \
158     -e 's|mozilla-nspr|nspr|' \
159     -i configure.ac configure || die "sed 2 failed"
160     fi
161    
162     # Fix compilation flags crazyness
163     sed -e 's/-D.*_DISABLE_DEPRECATED//' \
164     -i configure.ac configure || die "sed 1 failed"
165    
166     intltoolize --force --copy --automake || die "intltoolize failed"
167     eautoreconf
168 tetromino 1.3 gnome2_src_prepare
169 pacho 1.1 }
170    
171     pkg_postinst() {
172     gnome2_pkg_postinst
173    
174     elog "To change the default browser if you are not using GNOME, edit"
175     elog "~/.local/share/applications/mimeapps.list so it includes the"
176     elog "following content:"
177     elog ""
178     elog "[Default Applications]"
179     elog "x-scheme-handler/http=firefox.desktop"
180     elog "x-scheme-handler/https=firefox.desktop"
181     elog ""
182     elog "(replace firefox.desktop with the name of the appropriate .desktop"
183     elog "file from /usr/share/applications if you use a different browser)."
184     elog ""
185     elog "Junk filters are now a run-time choice. You will get a choice of"
186     elog "bogofilter or spamassassin based on which you have installed"
187     elog ""
188     elog "You have to install one of these for the spam filtering to actually work"
189     }

  ViewVC Help
Powered by ViewVC 1.1.20