| 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-3.4.4.ebuild,v 1.6 2012/11/25 19:33:56 ulm Exp $ |
| 4 |
|
| 5 |
EAPI="4" |
| 6 |
GCONF_DEBUG="no" |
| 7 |
GNOME2_LA_PUNT="yes" |
| 8 |
VALA_MIN_API_VERSION="0.14" |
| 9 |
VALA_USE_DEPEND="vapigen" |
| 10 |
|
| 11 |
inherit db-use eutils flag-o-matic gnome2 vala versionator virtualx |
| 12 |
|
| 13 |
DESCRIPTION="Evolution groupware backend" |
| 14 |
HOMEPAGE="http://projects.gnome.org/evolution/" |
| 15 |
|
| 16 |
# Note: explicitly "|| ( LGPL-2 LGPL-3 )", not "LGPL-2+". |
| 17 |
LICENSE="|| ( LGPL-2 LGPL-3 ) BSD Sleepycat" |
| 18 |
SLOT="0" |
| 19 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-solaris" |
| 20 |
IUSE="+gnome-online-accounts +introspection ipv6 ldap kerberos vala +weather" |
| 21 |
|
| 22 |
RDEPEND=">=dev-libs/glib-2.31:2 |
| 23 |
>=x11-libs/gtk+-3.2:3 |
| 24 |
>=gnome-base/gconf-2 |
| 25 |
>=dev-db/sqlite-3.5 |
| 26 |
>=dev-libs/libgdata-0.10 |
| 27 |
>=gnome-base/gnome-keyring-2.20.1 |
| 28 |
>=dev-libs/dbus-glib-0.6 |
| 29 |
>=dev-libs/libical-0.43 |
| 30 |
>=net-libs/libsoup-2.31.2:2.4 |
| 31 |
>=dev-libs/libxml2-2 |
| 32 |
>=sys-libs/db-4 |
| 33 |
>=dev-libs/nspr-4.4 |
| 34 |
>=dev-libs/nss-3.9 |
| 35 |
|
| 36 |
sys-libs/zlib |
| 37 |
virtual/libiconv |
| 38 |
|
| 39 |
gnome-online-accounts? ( |
| 40 |
>=net-libs/gnome-online-accounts-3.1.1 |
| 41 |
>=net-libs/liboauth-0.9.4 ) |
| 42 |
introspection? ( >=dev-libs/gobject-introspection-0.9.12 ) |
| 43 |
kerberos? ( virtual/krb5 ) |
| 44 |
ldap? ( >=net-nds/openldap-2 ) |
| 45 |
weather? ( >=dev-libs/libgweather-2.90.0:2 ) |
| 46 |
" |
| 47 |
DEPEND="${RDEPEND} |
| 48 |
dev-util/fix-la-relink-command |
| 49 |
dev-util/gperf |
| 50 |
>=dev-util/intltool-0.35.5 |
| 51 |
sys-devel/bison |
| 52 |
>=gnome-base/gnome-common-2 |
| 53 |
>=dev-util/gtk-doc-am-1.9 |
| 54 |
>=sys-devel/gettext-0.17 |
| 55 |
virtual/pkgconfig |
| 56 |
vala? ( $(vala_depend) )" |
| 57 |
# eautoreconf needs: |
| 58 |
# >=gnome-base/gnome-common-2 |
| 59 |
|
| 60 |
REQUIRED_USE="vala? ( introspection )" |
| 61 |
|
| 62 |
# FIXME |
| 63 |
RESTRICT="test" |
| 64 |
|
| 65 |
pkg_setup() { |
| 66 |
DOCS="ChangeLog MAINTAINERS NEWS TODO" |
| 67 |
# Uh, what to do about dbus-call-timeout ? |
| 68 |
G2CONF="${G2CONF} |
| 69 |
--disable-schemas-compile |
| 70 |
$(use_enable gnome-online-accounts goa) |
| 71 |
$(use_enable introspection) |
| 72 |
$(use_enable ipv6) |
| 73 |
$(use_with kerberos krb5 ${EPREFIX}/usr) |
| 74 |
$(use_with ldap openldap) |
| 75 |
$(use_enable vala vala-bindings) |
| 76 |
$(use_enable weather) |
| 77 |
--enable-nntp |
| 78 |
--enable-largefile |
| 79 |
--enable-smime |
| 80 |
--with-libdb=${EPREFIX}/usr" |
| 81 |
} |
| 82 |
|
| 83 |
src_prepare() { |
| 84 |
gnome2_src_prepare |
| 85 |
use vala && vala_src_prepare |
| 86 |
|
| 87 |
# GNOME bug 611353 (skips failing test atm) |
| 88 |
# XXX: uncomment when there's a proper fix |
| 89 |
#epatch "${FILESDIR}/e-d-s-camel-skip-failing-test.patch" |
| 90 |
|
| 91 |
# GNOME bug 621763 (skip failing test-ebook-stress-factory--fifo) |
| 92 |
#sed -e 's/\(SUBDIRS =.*\)ebook/\1/' \ |
| 93 |
# -i addressbook/tests/Makefile.{am,in} \ |
| 94 |
# || die "failing test sed 1 failed" |
| 95 |
|
| 96 |
# /usr/include/db.h is always db-1 on FreeBSD |
| 97 |
# so include the right dir in CPPFLAGS |
| 98 |
append-cppflags "-I$(db_includedir)" |
| 99 |
|
| 100 |
# FIXME: Fix compilation flags crazyness |
| 101 |
# Touch configure.ac if doing eautoreconf |
| 102 |
sed 's/^\(AM_CPPFLAGS="\)$WARNING_FLAGS/\1/' \ |
| 103 |
-i configure || die "sed failed" |
| 104 |
} |
| 105 |
|
| 106 |
src_install() { |
| 107 |
# Prevent this evolution-data-server from linking to libs in the installed |
| 108 |
# evolution-data-server libraries by adding -L arguments for build dirs to |
| 109 |
# every .la file's relink_command field, forcing libtool to look there |
| 110 |
# first during relinking. This will mangle the .la files installed by |
| 111 |
# make install, but we don't care because we will be punting them anyway. |
| 112 |
fix-la-relink-command . || die "fix-la-relink-command failed" |
| 113 |
gnome2_src_install |
| 114 |
|
| 115 |
if use ldap; then |
| 116 |
MY_MAJORV=$(get_version_component_range 1-2) |
| 117 |
insinto /etc/openldap/schema |
| 118 |
doins "${FILESDIR}"/calentry.schema || die "doins failed" |
| 119 |
dosym /usr/share/${PN}-${MY_MAJORV}/evolutionperson.schema /etc/openldap/schema/evolutionperson.schema |
| 120 |
fi |
| 121 |
} |
| 122 |
|
| 123 |
src_test() { |
| 124 |
unset DBUS_SESSION_BUS_ADDRESS |
| 125 |
unset ORBIT_SOCKETDIR |
| 126 |
unset SESSION_MANAGER |
| 127 |
export XDG_DATA_HOME="${T}" |
| 128 |
unset DISPLAY |
| 129 |
Xemake check || die "Tests failed." |
| 130 |
} |
| 131 |
|
| 132 |
pkg_postinst() { |
| 133 |
gnome2_pkg_postinst |
| 134 |
|
| 135 |
if use ldap; then |
| 136 |
elog "" |
| 137 |
elog "LDAP schemas needed by evolution are installed in /etc/openldap/schema" |
| 138 |
fi |
| 139 |
} |