1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 153770 2016-10-10 16:35:11Z devans@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup gobject_introspection 1.0 |
---|
6 | |
---|
7 | name evolution-data-server |
---|
8 | version 3.22.1 |
---|
9 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
10 | description Addressbook and calender libs for GNOME. |
---|
11 | long_description Evolution Data Server provides a central location for \ |
---|
12 | addressbook and calendar in the GNOME Desktop. |
---|
13 | maintainers devans openmaintainer |
---|
14 | categories gnome |
---|
15 | license LGPL-2+ |
---|
16 | platforms darwin |
---|
17 | homepage https://wiki.gnome.org/Apps/Evolution |
---|
18 | master_sites gnome:sources/${name}/${branch}/ |
---|
19 | |
---|
20 | use_xz yes |
---|
21 | |
---|
22 | checksums rmd160 cfbf4543871d1d47e7856d94a99760a065193f19 \ |
---|
23 | sha256 5ea1a25c26c2b5587b912661fc0eadf0ef8bc89ec01be9bb23cfffdf30ab41d9 |
---|
24 | |
---|
25 | depends_build port:pkgconfig \ |
---|
26 | port:intltool \ |
---|
27 | port:gtk-doc \ |
---|
28 | port:gnome-common \ |
---|
29 | port:autoconf \ |
---|
30 | port:automake \ |
---|
31 | port:libtool |
---|
32 | |
---|
33 | depends_lib port:gtk3 \ |
---|
34 | port:libxml2 \ |
---|
35 | port:libsoup \ |
---|
36 | port:libsecret \ |
---|
37 | port:gcr \ |
---|
38 | port:libiconv \ |
---|
39 | port:nss \ |
---|
40 | port:nspr \ |
---|
41 | port:libgweather \ |
---|
42 | port:libical \ |
---|
43 | port:libgdata \ |
---|
44 | port:gnome-online-accounts \ |
---|
45 | port:sqlite3 \ |
---|
46 | port:vala \ |
---|
47 | port:db53 \ |
---|
48 | port:icu |
---|
49 | |
---|
50 | gobject_introspection yes |
---|
51 | |
---|
52 | patchfiles patch-configure.ac.diff \ |
---|
53 | patch-addressbook-libebook-contacts-e-phone-number-private.cpp.diff |
---|
54 | |
---|
55 | # reconfigure using upstream autogen.sh for intltool 0.51 compatibility |
---|
56 | |
---|
57 | post-patch { |
---|
58 | xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} |
---|
59 | } |
---|
60 | |
---|
61 | configure.cmd ./autogen.sh |
---|
62 | |
---|
63 | configure.env-append \ |
---|
64 | DB_CFLAGS="-I${prefix}/include/db53" \ |
---|
65 | DB_LIBS="-L${prefix}/lib/db53 -ldb" |
---|
66 | |
---|
67 | configure.args --enable-smime \ |
---|
68 | --enable-ipv6 \ |
---|
69 | --enable-weather \ |
---|
70 | --enable-google \ |
---|
71 | --enable-goa \ |
---|
72 | --enable-vala-bindings \ |
---|
73 | --with-nspr-includes=${prefix}/include/nspr \ |
---|
74 | --with-nspr-libs=${prefix}/lib/nspr \ |
---|
75 | --with-nss-includes=${prefix}/include/nss \ |
---|
76 | --with-nss-libs=${prefix}/lib/nss \ |
---|
77 | --with-krb5=/usr \ |
---|
78 | --disable-uoa \ |
---|
79 | --disable-silent-rules \ |
---|
80 | --disable-schemas-compile |
---|
81 | |
---|
82 | # |
---|
83 | # port nss is not universal |
---|
84 | # |
---|
85 | |
---|
86 | universal_variant no |
---|
87 | |
---|
88 | variant phonenumber description {Phone number parsing/validation using libphonenumber} { |
---|
89 | depends_lib-append port:libphonenumber-cpp |
---|
90 | configure.cxxflags-append -DI18N_PHONENUMBERS_USE_BOOST |
---|
91 | configure.args-append --with-phonenumber=${prefix}/lib |
---|
92 | } |
---|
93 | |
---|
94 | default_variants +phonenumber |
---|
95 | |
---|
96 | post-activate { |
---|
97 | system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" |
---|
98 | } |
---|
99 | |
---|
100 | platform darwin { |
---|
101 | if {${configure.cxx_stdlib} eq "libstdc++"} { |
---|
102 | # google auth requires webkitgtk-3.0 >= 2.4.9 json-glib >= 1.0.4 |
---|
103 | configure.args-append --disable-google-auth |
---|
104 | } else { |
---|
105 | depends_lib-append path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk \ |
---|
106 | port:json-glib |
---|
107 | } |
---|
108 | } |
---|
109 | |
---|
110 | livecheck.type gnome |
---|