source: trunk/dports/gnome/epiphany/Portfile @ 115137

Last change on this file since 115137 was 115137, checked in by jeremyhu@…, 5 years ago

misc: Rename cxx_stdlib to cxxstdlib to not conflict with the possible setting in macports.conf

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
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 115137 2013-12-26 02:12:09Z jeremyhu@macports.org $
3
4PortSystem      1.0
5
6name            epiphany
7version         3.8.2
8revision        1
9license         GPL-2+
10set branch      [join [lrange [split ${version} .] 0 1] .]
11description     A GNOME Web browser.
12long_description \
13                A web browser is more than an application, it is a \
14                way of thinking, it is a way of seeing the world. \
15                Epiphany's principles are simplicity and standards \
16                compliance.
17maintainers     devans openmaintainer
18categories      gnome www
19platforms       darwin
20homepage        https://wiki.gnome.org/Apps/Web
21master_sites    gnome:sources/${name}/${branch}/
22
23use_xz          yes
24
25checksums       rmd160  2aacd8b02f456e345b9f23ff6114d341bbf0013a \
26                sha256  ae89d6902ed243304d2cbf2fa361f6dd0cb3401fdaf726e6fdd4acc09197d50a
27
28depends_build   port:pkgconfig \
29                port:intltool
30
31depends_lib     port:desktop-file-utils \
32                port:gnome-icon-theme \
33                port:gnome-icon-theme-symbolic \
34                port:gtk3 \
35                path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3 \
36                port:gnome-desktop \
37                port:libxslt\
38                port:libsoup \
39                port:libsecret \
40                port:port:libnotify \
41                port:libwnck3 \
42                port:gsettings-desktop-schemas \
43                port:nss \
44                port:sqlite3 \
45                port:gcr \
46                port:avahi \
47                port:xorg-libX11 \
48                port:iso-codes
49
50depends_run     port:gnome-settings-daemon
51
52# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released
53platform darwin {
54    set cxxstdlib {}
55
56    if {[info exists configure.cxx_stdlib] &&
57        ${configure.cxx_stdlib} ne {} &&
58        [string match *clang* ${configure.cxx}]} {
59        set cxxstdlib ${configure.cxx_stdlib}
60    } elseif {[string match *clang* ${configure.cxx}] &&
61              ${os.major} >= 13} {
62        set cxxstdlib libc++
63    } else {
64        set cxxstdlib libstdc++
65    }
66
67    if {${cxxstdlib} eq "libstdc++"} {
68       depends_lib-delete path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3
69       depends_lib-append path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3-2.0
70    }
71}
72
73patchfiles      patch-configure.diff
74
75configure.cflags-append -Wno-format-nonliteral
76
77configure.args  --with-distributor-name=MacPorts \
78                --disable-schemas-compile \
79                --disable-tests
80
81pre-configure {
82    reinplace "s|--rpath=|-rpath |g" ${worksrcpath}/configure
83}
84
85post-activate {
86    system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications"
87    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
88}
89
90#
91# nss is not universal
92#
93
94if {[variant_isset universal]} {
95    configure.args-append --disable-nss
96    depends_lib-delete port:nss
97}
98
99livecheck.type  gnome
Note: See TracBrowser for help on using the repository browser.