/
Portfile
85 lines (66 loc) · 3.07 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- 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
PortSystem 1.0
PortGroup cxx11 1.1
name gpgme
version 1.13.1
categories devel security crypto
license {LGPL-2.1+ GPL-3+}
maintainers {lbschenkel @lbschenkel} {devans @dbevans} openmaintainer
description A library for easy acces to GnuPG.
long_description GnuPG Made Easy (GPGME) is a library designed to make access \
to GnuPG easier for applications. It provides a High-Level \
Crypto API for encryption, decryption, signing, signature \
verification and key management. Currently it uses GnuPG \
as its backend but the API isn't restricted to this engine \
in fact we have already developed a backend for CMS (S/MIME).
platforms darwin
homepage https://www.gnupg.org/related_software/gpgme/
master_sites gnupg
use_bzip2 yes
checksums rmd160 ae7e13e30d5602fa5301f3179e213eefaac1b183 \
sha256 c4e30b227682374c23cddc7fdb9324a99694d907e79242a25a4deeedb393be46 \
size 1759616
depends_build port:pkgconfig
depends_lib port:pth \
port:libgpg-error \
port:libassuan \
path:bin/gpg2:gnupg2
patchfiles patch-configure.ac.diff \
patch-tests-gpg-Makefile.am.diff
post-patch {
reinplace "s|@GPG@|${prefix}/bin/gpg2|" ${worksrcpath}/src/gpgme-config.in
reinplace "s|thread_modules=\"\"|thread_modules=\"pthread\"|" ${worksrcpath}/src/gpgme-config.in
reinplace "s|@GPGSM@|${prefix}/bin/gpgsm|" ${worksrcpath}/src/gpgme-config.in
}
use_autoreconf yes
autoreconf.args -fvi
# enable cl cpp language bindings for now to avoid opportunistic failures (#52341)
# TODO: add bindings for python
# Due to the requirement to support multiple Qt versions,
# gpgme Qt5 bindings will be handled in separate port
# see https://trac.macports.org/ticket/53122
lappend languages cl
# cpp bindings require libc++
platform darwin {
if {${configure.cxx_stdlib} eq "libc++"} {
lappend languages cpp
}
}
# gpg regression tests run during build repeatedly fail with error
# gpg: can't connect to the agent: File name too long
# disable for now to avoid build error
configure.args --enable-languages="${languages}" \
--enable-static \
--disable-gpg-test
post-configure {
reinplace "s|CC -dynamiclib|CC -dynamiclib [get_canonical_archflags]|g" ${worksrcpath}/libtool
}
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.LESSER \
ChangeLog INSTALL NEWS README THANKS TODO \
${destroot}${prefix}/share/doc/${name}
}
livecheck.type regex
livecheck.url https://gnupg.org/ftp/gcrypt/gpgme/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"