From owner-svn-ports-all@FreeBSD.ORG Fri Nov 23 15:55:31 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 38C7B50D; Fri, 23 Nov 2012 15:55:31 +0000 (UTC) (envelope-from jase@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 030988FC14; Fri, 23 Nov 2012 15:55:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qANFtUGO044999; Fri, 23 Nov 2012 15:55:30 GMT (envelope-from jase@svn.freebsd.org) Received: (from jase@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qANFtU07044998; Fri, 23 Nov 2012 15:55:30 GMT (envelope-from jase@svn.freebsd.org) Message-Id: <201211231555.qANFtU07044998@svn.freebsd.org> From: Jase Thew Date: Fri, 23 Nov 2012 15:55:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307682 - head/security/p5-Module-Signature X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2012 15:55:31 -0000 Author: jase Date: Fri Nov 23 15:55:30 2012 New Revision: 307682 URL: http://svnweb.freebsd.org/changeset/ports/307682 Log: - Remove hardcoded dependency on security/gpg. Instead, add OPTIONS to allow choice of GnuPG version. PR: ports/172323 Approved by: jadawin (perl@) Feature safe: yes Modified: head/security/p5-Module-Signature/Makefile (contents, props changed) Modified: head/security/p5-Module-Signature/Makefile ============================================================================== --- head/security/p5-Module-Signature/Makefile Fri Nov 23 15:10:16 2012 (r307681) +++ head/security/p5-Module-Signature/Makefile Fri Nov 23 15:55:30 2012 (r307682) @@ -3,6 +3,7 @@ PORTNAME= Module-Signature PORTVERSION= 0.69 +PORTREVISION= 1 CATEGORIES= security perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -11,8 +12,7 @@ MAINTAINER= perl@FreeBSD.org COMMENT= Module signature file manipulation BUILD_DEPENDS= p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run \ - p5-PAR-Dist>=0:${PORTSDIR}/devel/p5-PAR-Dist \ - ${LOCALBASE}/bin/gpg:${PORTSDIR}/security/gnupg1 + p5-PAR-Dist>=0:${PORTSDIR}/devel/p5-PAR-Dist RUN_DEPENDS:= ${BUILD_DEPENDS} CONFIGURE_ENV= PERL_MM_USE_DEFAULT="yes" @@ -21,8 +21,24 @@ PERL_CONFIGURE= yes MAN1= cpansign.1 MAN3= Module::Signature.3 +OPTIONS_DEFAULT= GPG2 +OPTIONS_MULTI= GPG +OPTIONS_MULTI_GPG= GPG1 GPG2 +GPG1_DESC= Use GnuPG version 1 +GPG2_DESC= Use GnuPG version 2 + .include +.if ${PORT_OPTIONS:MGPG1} +BUILD_DEPENDS+= ${LOCALBASE}/bin/gpgv:${PORTSDIR}/security/gnupg1 +RUN_DEPENDS+= ${LOCALBASE}/bin/gpgv:${PORTSDIR}/security/gnupg1 +.endif + +.if ${PORT_OPTIONS:MGPG2} +BUILD_DEPENDS+= ${LOCALBASE}/bin/gpgv2:${PORTSDIR}/security/gnupg +RUN_DEPENDS+= ${LOCALBASE}/bin/gpgv2:${PORTSDIR}/security/gnupg +.endif + .if ${PERL_LEVEL} < 501000 BUILD_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA