source: trunk/dports/gnome/gnome-keyring/Portfile

Last change on this file was 147378, checked in by devans@…, 20 months ago

gnome-keyring: update to version 3.20.0, remove outdated patch file.

  • 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 147378 2016-04-02 21:31:22Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compiler_blacklist_versions 1.0
6
7name                gnome-keyring
8epoch               1
9version             3.20.0
10set branch          [join [lrange [split ${version} .] 0 1] .]
11maintainers         devans openmaintainer
12categories          gnome
13platforms           darwin
14license             GPL-2+ LGPL-2
15description         GNOME program for storing passwords.
16
17long_description    gnome-keyring is a program that keep passwords and other secrets for \
18                    users. It is run as a daemon in the session, similar to ssh-agent, and \
19                    other applications locate it via an environment variable or a dbus.
20
21homepage            https://wiki.gnome.org/Projects/GnomeKeyring
22master_sites        gnome:sources/${name}/${branch}/
23
24use_xz              yes
25
26checksums           rmd160  fd59722dde7aeb3ab96b7a0e8aeb335a3ea96349 \
27                    sha256  bc17cecd748a0e46e302171d11c3ae3d76bba5258c441fabec3786f418e7ec99
28
29depends_build       port:pkgconfig \
30                    port:intltool \
31                    port:gnome-common \
32                    port:gtk-doc \
33                    port:autoconf \
34                    port:automake \
35                    port:libtool
36
37depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
38                    port:dbus \
39                    port:gcr \
40                    port:libgcrypt
41
42# blacklist compilers that do not support C11 (redefinition of typedef 'GckSession' in daemon/login/gkd-login.h)
43compiler.blacklist  *gcc* {clang < 300}
44
45patchfiles          patch-egg-egg-asn1x.h.diff \
46                    patch-egg-egg-armor.c.diff \
47                    patch-pkcs11-wrap-layer-mock-secret-store.c.diff
48
49# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
50
51post-patch {
52    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
53}
54
55configure.cmd       ./autogen.sh
56
57configure.args      --without-libcap-ng \
58                    --disable-pam \
59                    --disable-p11-tests \
60                    --disable-silent-rules \
61                    --disable-strict \
62                    --disable-schemas-compile
63
64platform darwin {
65# On darwin 15 (El Capitan), System Integrity Protection (SIP)
66# blocks, by default, any attempt by non-AppStore applications
67# to install content in system locations.  This causes
68# activation of PAM modules in /usr/lib/pam by MacPorts to fail.
69# Disabling optional PAM support on this platform.
70    if {${os.major} > 9 && ${os.major} < 15} {
71        configure.args-delete --disable-pam
72        configure.args-append --with-pam-dir=/usr/lib/pam
73        # installs PAM modules into /usr/lib/pam
74        destroot.violate_mtree yes
75        post-destroot {
76            file delete ${destroot}/usr/lib/pam/pam_gnome_keyring.la
77        }
78    }
79}
80
81post-activate {
82    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
83}
84
85livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.