source: trunk/dports/devel/gpgme/Portfile

Last change on this file was 153990, checked in by devans@…, 9 months ago

gpgme, p11-kit: add schenkel.net:leonardo as principal co-maintainer with his agreement, thanks leonardo!

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153990 2016-10-17 16:57:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gpgme
7version             1.7.0
8categories          devel security crypto
9license             {LGPL-2.1+ GPL-3+}
10maintainers         schenkel.net:leonardo devans openmaintainer
11description         A library for easy acces to GnuPG.
12long_description    GnuPG Made Easy (GPGME) is a library designed to make access \
13                    to GnuPG easier for applications. It provides a High-Level \
14                    Crypto API for encryption, decryption, signing, signature \
15                    verification and key management. Currently it uses GnuPG \
16                    as its backend but the API isn't restricted to this engine \
17                    in fact we have already developed a backend for CMS (S/MIME).
18
19platforms           darwin
20
21homepage            http://www.gnupg.org/related_software/gpgme/
22master_sites        gnupg
23use_bzip2           yes
24
25checksums           rmd160  3159142bd912fe482566a78f48d19fe6a4d3221e \
26                    sha256  71f55fed0f2b3eaf7a606e59772aa645ce3ffff322d361ce359951b3f755cc48
27
28# either gnupg2 (the default) or gnupg21 is needed for running the unit tests
29# and at runtime but does not link directly with gpgme
30depends_build       port:pkgconfig \
31                    path:bin/gpg2:gnupg2
32
33depends_lib         port:pth \
34                    port:libgpg-error \
35                    port:libassuan
36
37depends_run         path:bin/gpg2:gnupg2
38
39use_parallel_build  no
40
41patchfiles          patch-configure.ac.diff \
42                    patch-tests-gpg-Makefile.am.diff
43
44post-patch {
45    reinplace "s|thread_modules=\"\"|thread_modules=\"pthread\"|" ${worksrcpath}/src/gpgme-config.in
46    reinplace "s|@GPG@|${prefix}/bin/gpg2|" ${worksrcpath}/src/gpgme-config.in
47    reinplace "s|@GPGSM@|${prefix}/bin/gpgsm|" ${worksrcpath}/src/gpgme-config.in
48}
49
50use_autoreconf      yes
51autoreconf.args     -fvi
52
53# enable cl cpp language bindings for now to avoid opportunistic failures (#52341)
54# TODO: add bindings for python and qt
55
56lappend languages cl
57
58# cpp bindings require libc++
59
60platform darwin {
61    if {${configure.cxx_stdlib} eq "libc++"} {
62        lappend languages cpp
63    }
64}
65
66configure.args      --enable-languages="${languages}" \
67                    --enable-static
68
69post-configure {
70    reinplace "s|CC -dynamiclib|CC -dynamiclib [get_canonical_archflags]|g" ${worksrcpath}/libtool
71}
72
73test.run            yes
74test.target         check
75
76post-destroot {
77    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
78    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.LESSER \
79        ChangeLog INSTALL NEWS README THANKS TODO \
80        ${destroot}${prefix}/share/doc/${name}
81}
82
83# deactivate kdepimlibs4 earlier than 4.14.3_4 to avoid
84# activation conflict on ${prefix}/include/gpgme++/*
85
86pre-activate {
87    if {![catch {set installed [lindex [registry_active kdepimlibs4] 0]}]} {
88        set _version [lindex $installed 1]
89        set _revision [lindex $installed 2]
90        if {[vercmp $_version 4.14.3] < 0 || ([vercmp $_version 4.14.3] == 0 && $_revision < 4)} {
91            registry_deactivate_composite kdepimlibs4 "" [list ports_nodepcheck 1]
92        }
93    }
94}
95
96livecheck.type      regex
97livecheck.url       ftp://ftp.gnupg.org/gcrypt/gpgme/
98livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.