source: trunk/dports/security/policykit/Portfile @ 132113

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

policykit: use gobject_introspection portgroup.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 132113 2015-01-23 16:15:02Z devans@macports.org $
3
4PortSystem      1.0
5PortGroup       gobject_introspection 1.0
6
7name            policykit
8version         0.112
9revision        1
10description     PolicyKit is an application-level toolkit for defining and \
11                handling the policy that allows unprivileged processes to \
12                speak to privileged processes
13long_description \
14                ${description}
15maintainers     devans openmaintainer
16categories      security
17platforms       darwin
18license         LGPL-2+
19homepage        http://www.freedesktop.org/Software/polkit
20master_sites    http://www.freedesktop.org/software/polkit/releases/
21
22distname        polkit-${version}
23
24checksums       rmd160  0fecdcbfffe5f79dbb44f38dee9c4f060d60e7b1 \
25                sha256  d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6
26
27depends_build-append \
28                port:pkgconfig \
29                port:intltool \
30                port:gtk-doc
31
32depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
33                port:mozjs17
34
35patchfiles      patch-configure.ac.diff \
36                patch-setnetgrent-returns-void.diff \
37                patch-no-sigpoll.diff \
38                patch-no-tests.diff
39
40gobject_introspection yes
41
42pre-patch {
43    if {${os.platform} eq "darwin" && ${os.major} < 10} {
44        patchfiles-append patch-fdatasync.diff
45        reinplace "s|security/pam|pam/pam|" ${worksrcpath}/configure.ac \
46            ${worksrcpath}/src/polkitagent/polkitagenthelper-pam.c \
47            ${worksrcpath}/src/programs/pkexec.c
48    }
49}
50
51# autoreconf to reconfigure with our intltool.m4
52
53use_autoreconf  yes
54autoreconf.args -fvi
55
56configure.cflags-append -I/usr/include
57configure.ldflags-append -L/usr/lib
58
59configure.args  --with-authfw=pam \
60                --with-pam-prefix=/etc/pam.d \
61                --with-pam-module-dir=/usr/lib/pam \
62                --with-mozjs=mozjs-17.0 \
63                --enable-systemd=no \
64                --disable-silent-rules \
65                --enable-man-pages \
66                --disable-gtk-doc
67
68destroot.keepdirs \
69                ${destroot}${prefix}/etc/polkit-1/localauthority \
70                ${destroot}${prefix}/var/lib/polkit-1
71
72variant docs description {Build API docs using gtk-doc} {
73        configure.args-delete --disable-gtk-doc
74        depends_build-append  port:gtk-doc
75}
76
77add_users       polkituser group=polkituser realname=Policy\ Kit
78
79livecheck.type  regex
80livecheck.url   ${master_sites}
81livecheck.regex "polkit-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.