# -*- 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 # $Id: Portfile 82572 2011-08-15 20:44:02Z ryandesign@macports.org $ PortSystem 1.0 name gpgme version 1.3.0 categories devel security crypto license {LGPL-2.1+ GPL-3+} maintainers boeyms 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 http://www.gnupg.org/related_software/gpgme/ master_sites gnupg use_bzip2 yes checksums md5 4784e3c6086c9c25e9a1b4d9f7c5aa96 \ sha1 0db69082abfbbbaf86c3ab0906f5137de900da73 \ rmd160 9699ba5cb991459e41af46112914cac221a9b69d depends_lib port:gnupg port:pth port:libgpg-error \ port:libassuan use_parallel_build no post-patch { reinplace "s|thread_modules=\"\"|thread_modules=\"pthread\"|" ${worksrcpath}/src/gpgme-config.in } configure.args --with-gpg=${prefix}/bin/gpg --enable-static post-configure { reinplace "s|CC -dynamiclib|CC -dynamiclib [get_canonical_archflags]|g" ${worksrcpath}/libtool } test.run yes test.target check 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} } # S/MIME needs gpgsm which comes with gnupg2 only; so use all gnupg2 here variant smime description {Enable S/MIME support} { depends_lib-append port:gnupg2 depends_lib-delete port:gnupg configure.args-append --with-gpg=${prefix}/bin/gpg2 } livecheck.type regex livecheck.url ftp://ftp.gnupg.org/gcrypt/gpgme/ livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"