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 153963 2016-10-17 02:02:19Z devans@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup gobject_introspection 1.0 |
---|
6 | |
---|
7 | name gnome-online-accounts |
---|
8 | |
---|
9 | # version 3.16.0+ requires webkit2gtk-4.0 |
---|
10 | version 3.22.1 |
---|
11 | |
---|
12 | license LGPL-2 |
---|
13 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
14 | description Single sign-on framework for GNOME |
---|
15 | long_description ${description} |
---|
16 | maintainers devans openmaintainer |
---|
17 | categories gnome |
---|
18 | platforms darwin |
---|
19 | homepage https://wiki.gnome.org/Projects/GnomeOnlineAccounts |
---|
20 | master_sites gnome:sources/${name}/${branch}/ |
---|
21 | |
---|
22 | use_xz yes |
---|
23 | |
---|
24 | checksums rmd160 1f95e7fce322ba86f63ec722e9507e7b1e7fd251 \ |
---|
25 | sha256 83c2b707c0a7908c6fe93db1c415fa45bffb2b1d9fb4648badc749ce69cda50e |
---|
26 | |
---|
27 | depends_build port:pkgconfig \ |
---|
28 | port:intltool \ |
---|
29 | port:gnome-common \ |
---|
30 | port:autoconf \ |
---|
31 | port:automake \ |
---|
32 | port:libtool \ |
---|
33 | port:gtk-doc |
---|
34 | |
---|
35 | depends_lib port:gtk3 \ |
---|
36 | port:libsoup \ |
---|
37 | port:json-glib \ |
---|
38 | port:rest \ |
---|
39 | port:libsecret \ |
---|
40 | port:libxml2 \ |
---|
41 | port:gcr \ |
---|
42 | port:telepathy-glib |
---|
43 | |
---|
44 | gobject_introspection yes |
---|
45 | |
---|
46 | configure.args --enable-ubuntu-online-accounts=no \ |
---|
47 | --enable-compile-warnings=no \ |
---|
48 | --disable-exchange \ |
---|
49 | --disable-media-server \ |
---|
50 | --enable-inspector \ |
---|
51 | --enable-flickr \ |
---|
52 | --enable-foursquare \ |
---|
53 | --enable-google \ |
---|
54 | --enable-imap-smtp \ |
---|
55 | --enable-owncloud \ |
---|
56 | --enable-yahoo \ |
---|
57 | --enable-facebook \ |
---|
58 | --enable-windows-live \ |
---|
59 | --enable-telepathy \ |
---|
60 | --enable-pocket \ |
---|
61 | --enable-lastfm \ |
---|
62 | --disable-kerberos \ |
---|
63 | --disable-maintainer-mode \ |
---|
64 | --disable-silent-rules |
---|
65 | |
---|
66 | platform darwin { |
---|
67 | if {${configure.cxx_stdlib} eq "libstdc++"} { |
---|
68 | version 3.8.5 |
---|
69 | revision 2 |
---|
70 | checksums rmd160 21889d886fa262e536929ecb6905cfcd3f50a462 \ |
---|
71 | sha256 34d6fbc33bda4c7bba8aa52343ebe1eb8afe1033097c10a2d9979c0a99593e5d |
---|
72 | depends_lib-delete \ |
---|
73 | port:telepathy-glib |
---|
74 | depends_lib-append \ |
---|
75 | path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3-2.0 |
---|
76 | patchfiles-append \ |
---|
77 | patch-alarm.diff |
---|
78 | post-patch { |
---|
79 | xinstall -m 755 ${filespath}/autogen.sh-${version} ${worksrcpath}/autogen.sh |
---|
80 | } |
---|
81 | configure.cmd ./autogen.sh |
---|
82 | configure.cflags-append \ |
---|
83 | -Wno-format-nonliteral |
---|
84 | configure.args-delete \ |
---|
85 | --disable-media-server \ |
---|
86 | --enable-inspector \ |
---|
87 | --enable-foursquare \ |
---|
88 | --enable-ubuntu-online-accounts=no \ |
---|
89 | --enable-yahoo \ |
---|
90 | --enable-telepathy \ |
---|
91 | --enable-pocket \ |
---|
92 | --enable-lastfm |
---|
93 | # Version 3.8.5 is the last version that will build on platforms supporting libstdc++ |
---|
94 | livecheck.type none |
---|
95 | } else { |
---|
96 | # reconfigure using upstream autogen.sh for intltool 0.51 compatibility |
---|
97 | # delete m4/glib-gettext.m4 to force replacement with current version |
---|
98 | post-patch { |
---|
99 | xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} |
---|
100 | delete ${worksrcpath}/m4/glib-gettext.m4 |
---|
101 | } |
---|
102 | configure.cmd ./autogen.sh |
---|
103 | depends_lib-append path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk |
---|
104 | livecheck.type gnome |
---|
105 | } |
---|
106 | } |
---|