/[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.13 - (hide annotations) (download)
Thu May 24 13:56:55 2012 UTC (2 years, 2 months ago) by ssuominen
Branch: MAIN
Changes since 1.12: +2 -2 lines
ppc stable wrt #410611

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64, RepoMan options: --force)

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 ssuominen 1.13 # $Header: /var/cvsroot/gentoo-x86/mail-client/evolution/evolution-2.32.3-r1.ebuild,v 1.12 2012/05/21 19:05:25 tetromino 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 tetromino 1.12 inherit autotools eutils flag-o-matic gnome2 python versionator
11 pacho 1.1
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 ssuominen 1.13 KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd"
22 pacho 1.1 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 jdhore 1.11 virtual/pkgconfig
74 pacho 1.1 >=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.7 # Apply multiple backports from master fixing important bugs
150     epatch "${WORKDIR}/${P}-patches"/*.patch
151    
152 tetromino 1.6 # Fix build failure with glib-2.32, bug #412111
153     epatch "${FILESDIR}/${P}-gmodule-explicit.patch"
154 tetromino 1.7 epatch "${FILESDIR}/${P}-g_thread_init.patch"
155 pacho 1.1
156     # Use NSS/NSPR only if 'ssl' is enabled.
157     if use ssl ; then
158     sed -e 's|mozilla-nss|nss|' \
159     -e 's|mozilla-nspr|nspr|' \
160     -i configure.ac configure || die "sed 2 failed"
161     fi
162    
163     # Fix compilation flags crazyness
164     sed -e 's/-D.*_DISABLE_DEPRECATED//' \
165     -i configure.ac configure || die "sed 1 failed"
166    
167     intltoolize --force --copy --automake || die "intltoolize failed"
168     eautoreconf
169 tetromino 1.3 gnome2_src_prepare
170 pacho 1.1 }
171    
172     pkg_postinst() {
173     gnome2_pkg_postinst
174    
175     elog "To change the default browser if you are not using GNOME, edit"
176     elog "~/.local/share/applications/mimeapps.list so it includes the"
177     elog "following content:"
178     elog ""
179     elog "[Default Applications]"
180     elog "x-scheme-handler/http=firefox.desktop"
181     elog "x-scheme-handler/https=firefox.desktop"
182     elog ""
183     elog "(replace firefox.desktop with the name of the appropriate .desktop"
184     elog "file from /usr/share/applications if you use a different browser)."
185     elog ""
186     elog "Junk filters are now a run-time choice. You will get a choice of"
187     elog "bogofilter or spamassassin based on which you have installed"
188     elog ""
189     elog "You have to install one of these for the spam filtering to actually work"
190     }

  ViewVC Help
Powered by ViewVC 1.1.20