[152331] trunk/dports/devel/gpgme

devans at macports.org devans at macports.org
Sat Sep 3 19:28:50 PDT 2016


Revision: 152331
          https://trac.macports.org/changeset/152331
Author:   devans at macports.org
Date:     2016-09-03 19:28:50 -0700 (Sat, 03 Sep 2016)
Log Message:
-----------
gpgme: fix unit tests and adjust dependencies, gnupg2 is required for testing during build and at runtime but does not link directly with gpgme (#52166).

Modified Paths:
--------------
    trunk/dports/devel/gpgme/Portfile

Added Paths:
-----------
    trunk/dports/devel/gpgme/files/patch-tests-gpg-Makefile.am.diff

Removed Paths:
-------------
    trunk/dports/devel/gpgme/files/patch-tests-gpg-Makefile.in.diff

Modified: trunk/dports/devel/gpgme/Portfile
===================================================================
--- trunk/dports/devel/gpgme/Portfile	2016-09-04 01:50:40 UTC (rev 152330)
+++ trunk/dports/devel/gpgme/Portfile	2016-09-04 02:28:50 UTC (rev 152331)
@@ -5,7 +5,7 @@
 
 name                gpgme
 version             1.6.0
-revision            1
+revision            2
 categories          devel security crypto
 license             {LGPL-2.1+ GPL-3+}
 maintainers         devans openmaintainer
@@ -26,15 +26,20 @@
 checksums           rmd160  0ce3451911bba6dcce7b120f9c8387cd41e3f514 \
                     sha256  b09de4197ac280b102080e09eaec6211d081efff1963bf7821cf8f4f9916099d
 
-depends_lib         port:gnupg2 \
-                    port:pth \
+# gnupg2 is needed for running the unit tests
+# and at runtime but does not link directly with gpgme
+depends_build       port:gnupg2
+
+depends_lib         port:pth \
                     port:libgpg-error \
                     port:libassuan
 
+depends_run         port:gnupg2
+
 use_parallel_build  no
 
 patchfiles          patch-configure.ac.diff \
-                    patch-tests-gpg-Makefile.in.diff
+                    patch-tests-gpg-Makefile.am.diff
 
 post-patch {
     reinplace "s|thread_modules=\"\"|thread_modules=\"pthread\"|" ${worksrcpath}/src/gpgme-config.in

Added: trunk/dports/devel/gpgme/files/patch-tests-gpg-Makefile.am.diff
===================================================================
--- trunk/dports/devel/gpgme/files/patch-tests-gpg-Makefile.am.diff	                        (rev 0)
+++ trunk/dports/devel/gpgme/files/patch-tests-gpg-Makefile.am.diff	2016-09-04 02:28:50 UTC (rev 152331)
@@ -0,0 +1,11 @@
+--- tests/gpg/Makefile.am.orig	2015-06-08 05:54:24.000000000 -0700
++++ tests/gpg/Makefile.am	2016-09-03 13:39:03.000000000 -0700
+@@ -19,7 +19,7 @@
+ 
+ ## Process this file with automake to produce Makefile.in
+ 
+-GPG = gpg
++GPG = gpg2
+ GPG_AGENT = gpg-agent
+ 
+ TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) LC_ALL=C GPG_AGENT_INFO= \

Deleted: trunk/dports/devel/gpgme/files/patch-tests-gpg-Makefile.in.diff
===================================================================
--- trunk/dports/devel/gpgme/files/patch-tests-gpg-Makefile.in.diff	2016-09-04 01:50:40 UTC (rev 152330)
+++ trunk/dports/devel/gpgme/files/patch-tests-gpg-Makefile.in.diff	2016-09-04 02:28:50 UTC (rev 152331)
@@ -1,11 +0,0 @@
---- tests/gpg/Makefile.in.orig	2015-06-08 06:03:50.000000000 -0700
-+++ tests/gpg/Makefile.in	2015-06-09 09:11:19.000000000 -0700
-@@ -470,7 +470,7 @@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--GPG = gpg
-+GPG = gpg2
- GPG_AGENT = gpg-agent
- TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) LC_ALL=C GPG_AGENT_INFO= \
-                     top_srcdir=$(top_srcdir)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160903/153e7b55/attachment.html>


More information about the macports-changes mailing list