pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/p5-GnuPG-Interface Allow selecting gnupg vers...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a290b20370dd
branches:  trunk
changeset: 363352:a290b20370dd
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jun 06 20:40:56 2017 +0000

description:
Allow selecting gnupg version. Switch default to gnupg2.
Bump PKGREVISION.

diffstat:

 security/p5-GnuPG-Interface/Makefile   |   7 ++++---
 security/p5-GnuPG-Interface/options.mk |  16 ++++++++++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)

diffs (49 lines):

diff -r 277c3616d798 -r a290b20370dd security/p5-GnuPG-Interface/Makefile
--- a/security/p5-GnuPG-Interface/Makefile      Tue Jun 06 20:37:24 2017 +0000
+++ b/security/p5-GnuPG-Interface/Makefile      Tue Jun 06 20:40:56 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.27 2017/06/05 14:24:33 ryoon Exp $
+# $NetBSD: Makefile,v 1.28 2017/06/06 20:40:56 wiz Exp $
 
 DISTNAME=              GnuPG-Interface-0.52
 PKGNAME=               p5-${DISTNAME}
-PKGREVISION=           3
+PKGREVISION=           4
 CATEGORIES=            security perl5
 MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=GnuPG/}
 
@@ -12,12 +12,13 @@
 COMMENT=               Perl interface to GnuPG
 LICENSE=               ${PERL5_LICENSE}
 
-DEPENDS+=              gnupg>=1.2.3:../../security/gnupg
 DEPENDS+=              p5-Moo-[0-9]*:../../devel/p5-Moo
 DEPENDS+=              p5-MooX-late-[0-9]*:../../devel/p5-MooX-late
 DEPENDS+=              p5-MooX-HandlesVia-[0-9]*:../../devel/p5-MooX-HandlesVia
 
 PERL5_PACKLIST=                auto/GnuPG/Interface/.packlist
 
+.include "options.mk"
+
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 277c3616d798 -r a290b20370dd security/p5-GnuPG-Interface/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/p5-GnuPG-Interface/options.mk    Tue Jun 06 20:40:56 2017 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2017/06/06 20:40:56 wiz Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.p5_GnuPG_Interface
+PKG_OPTIONS_REQUIRED_GROUPS=   gnupg
+PKG_OPTIONS_GROUP.gnupg=       gnupg1 gnupg2 gnupg21
+PKG_SUGGESTED_OPTIONS=         gnupg2
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgnupg21)
+DEPENDS+=              gnupg21>=2.1:../../security/gnupg21
+.elif !empty(PKG_OPTIONS:Mgnupg2)
+DEPENDS+=              gnupg2>=2.0<2.1:../../security/gnupg2
+.else
+DEPENDS+=              gnupg>=1.4.2:../../security/gnupg
+.endif



Home | Main Index | Thread Index | Old Index