source: trunk/dports/devel/gpgme/Portfile @ 84116

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

gpgme: update to version 1.3.1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 84116 2011-09-17 21:00:38Z devans@macports.org $
3
4PortSystem          1.0
5
6name                gpgme
7version             1.3.1
8categories          devel security crypto
9license             {LGPL-2.1+ GPL-3+}
10maintainers         boeyms openmaintainer
11description         A library for easy acces to GnuPG.
12long_description \
13    GnuPG Made Easy (GPGME) is a library designed to make access \
14    to GnuPG easier for applications. It provides a High-Level \
15    Crypto API for encryption, decryption, signing, signature \
16    verification and key management. Currently it uses GnuPG \
17    as its backend but the API isn't restricted to this engine \
18    in fact we have already developed a backend for CMS (S/MIME).
19
20platforms           darwin
21
22homepage            http://www.gnupg.org/related_software/gpgme/
23master_sites        gnupg
24use_bzip2           yes
25
26checksums           md5     90afa8436ce2b2683c001c824bd22601 \
27                    sha1    7d19a95a2239da13764dad7f97541be884ec5a37 \
28                    rmd160  95354069b515ef9aa80e9722645e908b10ea6dca
29
30depends_lib         port:gnupg port:pth port:libgpg-error \
31                    port:libassuan
32
33use_parallel_build  no
34
35post-patch {
36    reinplace "s|thread_modules=\"\"|thread_modules=\"pthread\"|" ${worksrcpath}/src/gpgme-config.in
37}
38
39configure.args      --with-gpg=${prefix}/bin/gpg --enable-static
40
41post-configure {
42    reinplace "s|CC -dynamiclib|CC -dynamiclib [get_canonical_archflags]|g" ${worksrcpath}/libtool
43}
44
45test.run    yes
46test.target check
47
48post-destroot {
49    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
50    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.LESSER \
51        ChangeLog INSTALL NEWS README THANKS TODO \
52        ${destroot}${prefix}/share/doc/${name}
53}
54
55# S/MIME needs gpgsm which comes with gnupg2 only; so use all gnupg2 here
56variant smime description {Enable S/MIME support} {
57    depends_lib-append      port:gnupg2
58    depends_lib-delete      port:gnupg
59    configure.args-append   --with-gpg=${prefix}/bin/gpg2
60}
61
62livecheck.type  regex
63livecheck.url   ftp://ftp.gnupg.org/gcrypt/gpgme/
64livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.