Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Evolution database backend server" |
| 2 | HOMEPAGE = "http://www.gnome.org/projects/evolution/" |
| 3 | BUGTRACKER = "https://bugzilla.gnome.org/" |
| 4 | |
| 5 | LICENSE = "LGPLv2 & LGPLv2+" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=6a6e689d19255cf0557f3fe7d7068212 \ |
| 7 | file://src/camel/camel.h;endline=24;md5=342fc5e9357254bc30c24e43ae47d9a1 \ |
| 8 | file://src/libedataserver/e-data-server-util.h;endline=20;md5=8f21a9c80ea82a4fb80b5f959f672543 \ |
| 9 | file://src/calendar/libecal/e-cal.h;endline=24;md5=e699ec3866f73f129f7a4ffffdcfc196" |
| 10 | |
| 11 | DEPENDS = " \ |
| 12 | intltool-native gperf-native \ |
| 13 | glib-2.0 gtk+3 gconf libgnome-keyring libgdata \ |
| 14 | dbus db virtual/libiconv zlib libsoup-2.4 libical nss libsecret \ |
| 15 | " |
| 16 | |
| 17 | inherit distro_features_check gnomebase cmake gtk-doc gettext gobject-introspection perlnative pythonnative |
| 18 | |
| 19 | REQUIRED_DISTRO_FEATURES = "x11" |
| 20 | |
| 21 | SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \ |
| 22 | file://0001-CMakeLists.txt-Remove-TRY_RUN-for-iconv.patch \ |
| 23 | file://0002-CMakeLists.txt-remove-CHECK_C_SOURCE_RUNS-check.patch \ |
| 24 | file://0003-contact-Replace-the-Novell-sample-contact-with-somet.patch \ |
| 25 | file://iconv-detect.h \ |
| 26 | file://0004-Use-recommended-way-to-handle-the-icu-namespace.patch \ |
| 27 | " |
| 28 | SRC_URI[archive.md5sum] = "ae7bbf543b2c3ff79af27e0edea5d472" |
| 29 | SRC_URI[archive.sha256sum] = "e43aa1847ddc02965f560261ef88d18fb8704eddaa55555bf96b884a33e510ec" |
| 30 | |
| 31 | LKSTRFTIME = "HAVE_LKSTRFTIME=ON" |
| 32 | LKSTRFTIME_libc-musl = "HAVE_LKSTRFTIME=OFF" |
| 33 | |
| 34 | EXTRA_OECMAKE = " \ |
| 35 | -DWITH_KRB5=OFF \ |
| 36 | -DENABLE_GOA=OFF \ |
| 37 | -DENABLE_UOA=OFF \ |
| 38 | -DENABLE_GOOGLE_AUTH=OFF \ |
| 39 | -DENABLE_WEATHER=OFF \ |
| 40 | -D${LKSTRFTIME} \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 41 | -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 42 | " |
| 43 | |
| 44 | PACKAGECONFIG ??= "" |
| 45 | PACKAGECONFIG[openldap] = "-DWITH_OPENLDAP=ON,-DWITH_OPENLDAP=OFF,openldap" |
| 46 | |
| 47 | EXTRA_OECONF = "--with-libdb=${STAGING_DIR_HOST}${prefix} \ |
| 48 | --disable-nntp --disable-gtk-doc" |
| 49 | |
| 50 | # -ldb needs this on some platforms |
| 51 | LDFLAGS += "-lpthread -lgmodule-2.0 -lgthread-2.0" |
| 52 | |
| 53 | do_configure_append () { |
| 54 | cp ${WORKDIR}/iconv-detect.h ${S}/src |
| 55 | |
| 56 | # fix native perl shebang |
| 57 | sed -i 's:${STAGING_BINDIR_NATIVE}/perl-native:${bindir}:' ${B}/src/tools/addressbook-export/csv2vcard |
| 58 | } |
| 59 | |
| 60 | do_compile_prepend() { |
| 61 | export GIR_EXTRA_LIBS_PATH="${B}/camel/.libs:${B}/libedataserver/.libs" |
| 62 | } |
| 63 | |
| 64 | |
| 65 | PACKAGES =+ "libcamel libcamel-dev libebook libebook-dev libecal libecal-dev \ |
| 66 | libedata-book libedata-book-dev libedata-cal libedata-cal-dev \ |
| 67 | libedataserver libedataserver-dev \ |
| 68 | libedataserverui libedataserverui-dev" |
| 69 | |
| 70 | FILES_${PN} =+ "${systemd_user_unitdir} \ |
| 71 | ${datadir}/dbus-1 \ |
| 72 | ${datadir}/evolution-data-server-*/ui/" |
| 73 | RDEPENDS_${PN} += "perl" |
| 74 | |
| 75 | FILES_${PN}-dev =+ "${libdir}/pkgconfig/evolution-data-server-*.pc" |
| 76 | FILES_${PN}-dbg =+ "${libdir}/evolution-data-server*/camel-providers/.debug \ |
| 77 | ${libdir}/evolution-data-server*/calendar-backends/.debug \ |
| 78 | ${libdir}/evolution-data-server*/addressbook-backends/.debug \ |
| 79 | ${libdir}/evolution-data-server*/extensions/.debug/" |
| 80 | |
| 81 | RRECOMMENDS_${PN}-dev += "libecal-dev libebook-dev" |
| 82 | |
| 83 | FILES_libcamel = "${libdir}/libcamel-*.so.* \ |
| 84 | ${libdir}/libcamel-provider-*.so.* \ |
| 85 | ${libdir}/evolution-data-server*/camel-providers/*.so \ |
| 86 | ${libdir}/evolution-data-server*/camel-providers/*.urls" |
| 87 | FILES_libcamel-dev = "${libdir}/libcamel-*.so ${libdir}/libcamel-provider-*.so \ |
| 88 | ${libdir}/pkgconfig/camel*pc \ |
| 89 | ${libdir}/evolution-data-server*/camel-providers/*.la \ |
| 90 | ${includedir}/evolution-data-server*/camel" |
| 91 | |
| 92 | FILES_libebook = "${libdir}/libebook-*.so.*" |
| 93 | FILES_libebook-dev = "${libdir}/libebook-1.2.so \ |
| 94 | ${libdir}/pkgconfig/libebook-*.pc \ |
| 95 | ${includedir}/evolution-data-server*/libebook/*.h" |
| 96 | RRECOMMENDS_libebook = "libedata-book" |
| 97 | |
| 98 | FILES_libecal = "${libdir}/libecal-*.so.* \ |
| 99 | ${datadir}/evolution-data-server-1.4/zoneinfo" |
| 100 | FILES_libecal-dev = "${libdir}/libecal-*.so ${libdir}/pkgconfig/libecal-*.pc \ |
| 101 | ${includedir}/evolution-data-server*/libecal/*.h \ |
| 102 | ${includedir}/evolution-data-server*/libical/*.h" |
| 103 | RRECOMMENDS_libecal = "libedata-cal tzdata" |
| 104 | |
| 105 | FILES_libedata-book = "${libexecdir}/e-addressbook-factory \ |
| 106 | ${datadir}/dbus-1/services/*.AddressBook.service \ |
| 107 | ${libdir}/libedata-book-*.so.* \ |
| 108 | ${libdir}/evolution-data-server-*/extensions/libebook*.so \ |
| 109 | ${datadir}/evolution-data-server-1.4/weather/Locations.xml" |
| 110 | FILES_libedata-book-dev = "${libdir}/libedata-book-*.so \ |
| 111 | ${libdir}/pkgconfig/libedata-book-*.pc \ |
| 112 | ${libdir}/evolution-data-server-*/extensions/libebook*.la \ |
| 113 | ${includedir}/evolution-data-server-*/libedata-book" |
| 114 | |
| 115 | FILES_libedata-cal = "${libexecdir}/e-calendar-factory \ |
| 116 | ${datadir}/dbus-1/services/*.Calendar.service \ |
| 117 | ${libdir}/libedata-cal-*.so.* \ |
| 118 | ${libdir}/evolution-data-server-*/extensions/libecal*.so" |
| 119 | FILES_libedata-cal-dev = "${libdir}/libedata-cal-*.so \ |
| 120 | ${libdir}/pkgconfig/libedata-cal-*.pc \ |
| 121 | ${includedir}/evolution-data-server-*/libedata-cal \ |
| 122 | ${libdir}/evolution-data-server-*/extensions/libecal*.la" |
| 123 | |
| 124 | FILES_libedataserver = "${libdir}/libedataserver-*.so.*" |
| 125 | FILES_libedataserver-dev = "${libdir}/libedataserver-*.so \ |
| 126 | ${libdir}/pkgconfig/libedataserver-*.pc \ |
| 127 | ${includedir}/evolution-data-server-*/libedataserver/*.h" |
| 128 | |
| 129 | FILES_libedataserverui = "${libdir}/libedataserverui-*.so.* ${datadir}/evolution-data-server-1.4/glade/*.glade" |
| 130 | FILES_libedataserverui-dev = "${libdir}/libedataserverui-*.so \ |
| 131 | ${libdir}/pkgconfig/libedataserverui-*.pc \ |
| 132 | ${includedir}/evolution-data-server-*/libedataserverui/*.h" |