| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/evolution-data-server/evolution-data-server-2.32.3-r2.ebuild,v 1.13 2012/11/25 19:33:56 ulm Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
GCONF_DEBUG="no"
|
| 7 |
GNOME2_LA_PUNT="yes"
|
| 8 |
GNOME_TARBALL_SUFFIX="bz2"
|
| 9 |
WANT_AUTOMAKE="1.11"
|
| 10 |
|
| 11 |
inherit autotools db-use eutils flag-o-matic gnome2 versionator virtualx
|
| 12 |
|
| 13 |
DESCRIPTION="Evolution groupware backend"
|
| 14 |
HOMEPAGE="http://projects.gnome.org/evolution/"
|
| 15 |
|
| 16 |
SRC_URI="${SRC_URI} http://dev.gentoo.org/~pacho/gnome/${P}-patches.tar.xz"
|
| 17 |
|
| 18 |
# Note: explicitly "|| ( LGPL-2 LGPL-3 )", not "LGPL-2+".
|
| 19 |
LICENSE="|| ( LGPL-2 LGPL-3 ) BSD Sleepycat"
|
| 20 |
SLOT="0"
|
| 21 |
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-solaris"
|
| 22 |
|
| 23 |
IUSE="ipv6 kerberos gnome-keyring ldap +weather"
|
| 24 |
|
| 25 |
RDEPEND=">=dev-libs/glib-2.25.12:2
|
| 26 |
>=x11-libs/gtk+-2.24:2
|
| 27 |
>=gnome-base/gconf-2
|
| 28 |
>=dev-db/sqlite-3.5
|
| 29 |
>=dev-libs/libgdata-0.6.3
|
| 30 |
>=dev-libs/libical-0.43
|
| 31 |
>=net-libs/libsoup-2.4:2.4
|
| 32 |
>=dev-libs/libxml2-2
|
| 33 |
>=sys-libs/db-4
|
| 34 |
sys-libs/zlib
|
| 35 |
virtual/libiconv
|
| 36 |
>=dev-libs/nspr-4.4
|
| 37 |
>=dev-libs/nss-3.9
|
| 38 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.20.1 )
|
| 39 |
kerberos? ( virtual/krb5 )
|
| 40 |
ldap? ( >=net-nds/openldap-2 )
|
| 41 |
weather? (
|
| 42 |
>=dev-libs/libgweather-2.25.4:2
|
| 43 |
<dev-libs/libgweather-2.91:2 )
|
| 44 |
"
|
| 45 |
DEPEND="${RDEPEND}
|
| 46 |
dev-util/gperf
|
| 47 |
virtual/pkgconfig
|
| 48 |
>=dev-util/intltool-0.35.5
|
| 49 |
sys-devel/bison
|
| 50 |
>=gnome-base/gnome-common-2
|
| 51 |
>=dev-util/gtk-doc-am-1.9"
|
| 52 |
# eautoreconf needs:
|
| 53 |
# >=gnome-base/gnome-common-2
|
| 54 |
|
| 55 |
pkg_setup() {
|
| 56 |
DOCS="ChangeLog MAINTAINERS NEWS TODO"
|
| 57 |
|
| 58 |
# ssl stuff always enabled as recommended in upstream bug #642984
|
| 59 |
G2CONF="${G2CONF}
|
| 60 |
$(use_enable gnome-keyring)
|
| 61 |
$(use_enable ipv6)
|
| 62 |
$(use_with kerberos krb5 /usr)
|
| 63 |
$(use_with ldap openldap)
|
| 64 |
$(use_with weather)
|
| 65 |
--disable-gtk3
|
| 66 |
--enable-largefile
|
| 67 |
--with-libdb=/usr
|
| 68 |
--enable-ssl
|
| 69 |
--enable-smime"
|
| 70 |
|
| 71 |
}
|
| 72 |
|
| 73 |
src_prepare() {
|
| 74 |
# Adjust to gentoo's /etc/service
|
| 75 |
epatch "${FILESDIR}/${PN}-2.31-gentoo_etc_services.patch"
|
| 76 |
|
| 77 |
# GNOME bug 611353 (skips failing test atm)
|
| 78 |
epatch "${FILESDIR}/e-d-s-camel-skip-failing-test.patch"
|
| 79 |
|
| 80 |
# GNOME bug 621763 (skip failing test-ebook-stress-factory--fifo)
|
| 81 |
sed -e 's/\(SUBDIRS =.*\)ebook/\1/' \
|
| 82 |
-i addressbook/tests/Makefile.{am,in} \
|
| 83 |
|| die "failing test sed 1 failed"
|
| 84 |
|
| 85 |
# Apply multiple backports and fixed from master and 2.32 branches
|
| 86 |
#
|
| 87 |
# 009 and 010 patches are broken, bug #372651
|
| 88 |
rm "${WORKDIR}/${P}-patches"/009*.patch || die
|
| 89 |
rm "${WORKDIR}/${P}-patches"/010*.patch || die
|
| 90 |
epatch "${WORKDIR}/${P}-patches"/*.patch
|
| 91 |
|
| 92 |
# Upstream bug #655167 - Messages moved from IMAP Inbox reappear
|
| 93 |
epatch "${FILESDIR}/${P}-imap-move.patch"
|
| 94 |
|
| 95 |
# Fix building with glib-2.32, bug #412109
|
| 96 |
epatch "${FILESDIR}/${P}-gmodule-explicit.patch"
|
| 97 |
epatch "${FILESDIR}/${P}-g_thread_init.patch"
|
| 98 |
|
| 99 |
# /usr/include/db.h is always db-1 on FreeBSD
|
| 100 |
# so include the right dir in CPPFLAGS
|
| 101 |
append-cppflags "-I$(db_includedir)"
|
| 102 |
|
| 103 |
# FIXME: Fix compilation flags crazyness
|
| 104 |
sed 's/^\(AM_CPPFLAGS="\)$WARNING_FLAGS/\1/' \
|
| 105 |
-i configure.ac configure || die "sed 3 failed"
|
| 106 |
|
| 107 |
sed -e "/AM_INIT_AUTOMAKE/s/-Werror//" -i configure.ac || die
|
| 108 |
|
| 109 |
eautoreconf
|
| 110 |
gnome2_src_prepare
|
| 111 |
}
|
| 112 |
|
| 113 |
src_install() {
|
| 114 |
# Prevent this evolution-data-server from linking to libs in the installed
|
| 115 |
# evolution-data-server libraries by adding -L arguments for build dirs to
|
| 116 |
# every .la file's relink_command field, forcing libtool to look there
|
| 117 |
# first during relinking. This will mangle the .la files installed by
|
| 118 |
# make install, but we don't care because we will be punting them anyway.
|
| 119 |
perl "${FILESDIR}/fix_relink_command.pl" . \
|
| 120 |
|| die "fix_relink_command.pl failed"
|
| 121 |
|
| 122 |
gnome2_src_install
|
| 123 |
|
| 124 |
if use ldap; then
|
| 125 |
MY_MAJORV=$(get_version_component_range 1-2)
|
| 126 |
insinto /etc/openldap/schema
|
| 127 |
doins "${FILESDIR}"/calentry.schema || die "doins failed"
|
| 128 |
dosym /usr/share/${PN}-${MY_MAJORV}/evolutionperson.schema /etc/openldap/schema/evolutionperson.schema
|
| 129 |
fi
|
| 130 |
}
|
| 131 |
|
| 132 |
src_test() {
|
| 133 |
unset DBUS_SESSION_BUS_ADDRESS
|
| 134 |
unset ORBIT_SOCKETDIR
|
| 135 |
unset SESSION_MANAGER
|
| 136 |
export XDG_DATA_HOME="${T}"
|
| 137 |
unset DISPLAY
|
| 138 |
Xemake check || die "Tests failed."
|
| 139 |
}
|
| 140 |
|
| 141 |
pkg_preinst() {
|
| 142 |
gnome2_pkg_preinst
|
| 143 |
|
| 144 |
for lib in libcamel-provider-1.2.so.14 libedata-cal-1.2.so.7 \
|
| 145 |
libgdata-1.2.so libgdata-google-1.2.so libcamel-1.2.so.14 \
|
| 146 |
libedata-book-1.2.so.2 libebook-1.2.so.9 \
|
| 147 |
libedataserver-1.2.so.13 libecal-1.2.so.7 libedataserverui-1.2.so.8
|
| 148 |
do
|
| 149 |
preserve_old_lib /usr/$(get_libdir)/$lib
|
| 150 |
done
|
| 151 |
}
|
| 152 |
|
| 153 |
pkg_postinst() {
|
| 154 |
gnome2_pkg_postinst
|
| 155 |
|
| 156 |
for lib in libcamel-provider-1.2.so.14 libedata-cal-1.2.so.7 \
|
| 157 |
libgdata-1.2.so libgdata-google-1.2.so libcamel-1.2.so.14 \
|
| 158 |
libedata-book-1.2.so.2 libebook-1.2.so.9 \
|
| 159 |
libedataserver-1.2.so.13 libecal-1.2.so.7 libedataserverui-1.2.so.8
|
| 160 |
do
|
| 161 |
preserve_old_lib_notify /usr/$(get_libdir)/$lib
|
| 162 |
done
|
| 163 |
|
| 164 |
if use ldap; then
|
| 165 |
elog ""
|
| 166 |
elog "LDAP schemas needed by evolution are installed in /etc/openldap/schema"
|
| 167 |
fi
|
| 168 |
}
|