Allow selecting gnupg version. Switch default to gnupg2.
Bump PKGREVISION.
This commit is contained in:
parent
40f5ac4395
commit
b73a640ec0
2 changed files with 20 additions and 3 deletions
|
@ -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 @@ HOMEPAGE= http://search.cpan.org/dist/GnuPG-Interface/
|
|||
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"
|
||||
|
|
16
security/p5-GnuPG-Interface/options.mk
Normal file
16
security/p5-GnuPG-Interface/options.mk
Normal file
|
@ -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
|
Loading…
Reference in a new issue