[132871] trunk/dports
jann at macports.org
jann at macports.org
Wed Feb 11 15:48:36 PST 2015
Revision: 132871
https://trac.macports.org/changeset/132871
Author: jann at macports.org
Date: 2015-02-11 15:48:35 -0800 (Wed, 11 Feb 2015)
Log Message:
-----------
New port: gnupg21
Modified Paths:
--------------
trunk/dports/mail/gnupg/Portfile
trunk/dports/mail/gnupg2/Portfile
trunk/dports/security/dirmngr/Portfile
trunk/dports/security/gpg-agent/Portfile
Added Paths:
-----------
trunk/dports/mail/gnupg21/
trunk/dports/mail/gnupg21/Portfile
Modified: trunk/dports/mail/gnupg/Portfile
===================================================================
--- trunk/dports/mail/gnupg/Portfile 2015-02-11 23:37:26 UTC (rev 132870)
+++ trunk/dports/mail/gnupg/Portfile 2015-02-11 23:48:35 UTC (rev 132871)
@@ -18,6 +18,7 @@
homepage http://www.gnupg.org
platforms darwin freebsd sunos
master_sites gnupg
+conflicts gnupg21
use_bzip2 yes
Modified: trunk/dports/mail/gnupg2/Portfile
===================================================================
--- trunk/dports/mail/gnupg2/Portfile 2015-02-11 23:37:26 UTC (rev 132870)
+++ trunk/dports/mail/gnupg2/Portfile 2015-02-11 23:48:35 UTC (rev 132871)
@@ -22,6 +22,7 @@
use_bzip2 yes
distname gnupg-${version}
master_sites gnupg:gnupg
+conflicts gnupg21
use_bzip2 yes
@@ -83,4 +84,4 @@
livecheck.type regex
livecheck.url ftp://ftp.gnupg.org/gcrypt/gnupg/
-livecheck.regex gnupg-(\\d+\\.\\d+\\.\\d+)
+livecheck.regex gnupg-(2\\.0\\.\\d+)
Added: trunk/dports/mail/gnupg21/Portfile
===================================================================
--- trunk/dports/mail/gnupg21/Portfile (rev 0)
+++ trunk/dports/mail/gnupg21/Portfile 2015-02-11 23:48:35 UTC (rev 132871)
@@ -0,0 +1,89 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name gnupg21
+version 2.1.2
+categories mail security
+maintainers jann ionic openmaintainer
+license GPL-3+
+installs_libs no
+
+description GNU pretty-good-privacy package
+long_description GnuPG is a complete and free replacement for PGP. Because \
+ it does not use the patented IDEA algorithm, it can be used \
+ without any restrictions. GnuPG is a RFC2440 (OpenPGP) \
+ compliant application.
+homepage http://www.gnupg.org
+platforms darwin freebsd sunos
+conflicts gnupg2 gnupg gpg-agent dirmngr
+distname gnupg-${version}
+master_sites gnupg:gnupg
+
+use_bzip2 yes
+
+checksums rmd160 015c1f427702310b6cc201483a5f94159d9e9981 \
+ sha256 404f5a43d591dfe41f0ffb204b49a1533b67d77bc1fd68febd7e447575616792
+
+notes "GPG 2.1 uses a new format for its key files. Therefore you cannot\
+ use it together with any earlier version of GPG. Neither can you easily go\
+ back to an older version as the old version cannot read the new format."
+
+# Prevent opportunistic linking
+configure.args --without-adns
+
+platform darwin {
+ if {![variant_isset pinentry] && ![variant_isset pinentry_mac]} {
+ # Automatically switch between pinentry and pinentry-mac, with pinentry-mac being
+ # preferred.
+ # 10.7 and below are not supported by pinentry-mac, though, and will default to
+ # pinentry. Just like pure darwin without OS X will.
+ if {${os.subplatform} ne "macosx" ||
+ ${xcodeversion} eq "none" ||
+ [vercmp ${xcodeversion} {5.0}] < 0 ||
+ ${os.major} < 12 || ([catch {registry_active pinentry}] &&
+ ![catch {registry_active pinentry-mac}])} {
+ default_variants-append +pinentry
+ } else {
+ default_variants-append +pinentry_mac
+ }
+ }
+}
+
+# glib fails to find the right stdint.h It picks clang's internal one rather
+# than the system header
+configure.env gl_cv_absolute_stdint_h=/usr/include/stdint.h
+
+depends_lib port:libiconv \
+ port:gettext \
+ port:zlib \
+ port:bzip2 \
+ port:bison \
+ port:libassuan \
+ port:libksba \
+ port:libgcrypt \
+ port:libgpg-error \
+ port:openldap \
+ port:readline \
+ port:curl \
+ port:libusb-compat \
+ port:npth
+
+variant pinentry conflicts pinentry_mac description {Handle user input via pinentry.} {
+ depends_lib-append port:pinentry
+ configure.args-append --with-pinentry-pgm=${prefix}/bin/pinentry
+}
+
+variant pinentry_mac conflicts pinentry description {Handle user input via pinentry-mac. Only compatible with OS X 10.8+.} {
+ depends_lib-append port:pinentry-mac
+ configure.args-append --with-pinentry-pgm=${applications_dir}/pinentry-mac.app/Contents/MacOS/pinentry-mac
+}
+
+test.run yes
+test.dir ${worksrcpath}/tests
+test.target check
+
+livecheck.type regex
+livecheck.url ftp://ftp.gnupg.org/gcrypt/gnupg/
+livecheck.regex gnupg-(2\\.1\\.\\d+)
Property changes on: trunk/dports/mail/gnupg21/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Modified: trunk/dports/security/dirmngr/Portfile
===================================================================
--- trunk/dports/security/dirmngr/Portfile 2015-02-11 23:37:26 UTC (rev 132870)
+++ trunk/dports/security/dirmngr/Portfile 2015-02-11 23:48:35 UTC (rev 132871)
@@ -18,6 +18,7 @@
homepage http://www.gnupg.org
platforms darwin
master_sites gnupg
+conflicts gnupg21
use_bzip2 yes
Modified: trunk/dports/security/gpg-agent/Portfile
===================================================================
--- trunk/dports/security/gpg-agent/Portfile 2015-02-11 23:37:26 UTC (rev 132870)
+++ trunk/dports/security/gpg-agent/Portfile 2015-02-11 23:48:35 UTC (rev 132871)
@@ -20,6 +20,7 @@
distname gnupg-${version}
dist_subdir gnupg2
master_sites gnupg:gnupg
+conflicts gnupg21
use_bzip2 yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150211/dac66c9f/attachment.html>
More information about the macports-changes
mailing list