On 11/06/17 14:16, Alexander Bluhm wrote:
> On Mon, Nov 06, 2017 at 12:56:54PM +0100, Giovanni Bechis wrote:
>> Captcha::reCAPTCHA::V2 is a Perl implementation of reCAPTCHA API version 2,
>> it let you integrate reCAPTCHA version 2 into your web application.
>> Comments ? Ok ?
> 
> We already have graphics/p5-Captcha-reCAPTCHA 0.97.  Upstream has
> updated in 2016 to version 2, your new module is from 2015.
> 
> 0.98    2016-07-14
>         Implemented Version 2 of the new API along side existing one
> 
> So it might be a good idea to just update p5-Captcha-reCAPTCHA to 0.99.
> 
> If you still need Captcha::reCAPTCHA::V2, feel free to import it.
> But please move it to graphics so that the new and the old module
> are in the same catagory.
> 
I think I will adapt my code to Captcha::reCAPTCHA, it's not worth to add 
another port
Port updated to 0.99 but I do not like the camel case dance, any hints ?
 Cheers & Thanks
   Giovanni

> port looks good, OK bluhm@
> 

Index: Makefile
===================================================================
RCS file: /var/cvs/ports/graphics/p5-Captcha-reCAPTCHA/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile	20 Mar 2016 19:56:43 -0000	1.8
+++ Makefile	6 Nov 2017 15:15:07 -0000
@@ -4,13 +4,19 @@ COMMENT =	Perl implementation of the reC
 
 MODULES =	cpan
 PKG_ARCH =	*
-DISTNAME =	Captcha-reCAPTCHA-0.97
+V =		0.99
+NAME =		Captcha
+DISTNAME =	${NAME}-re${NAME}-$V
+PKGNAME =	p5-${NAME}-re${NAME:U}-$V
 CATEGORIES =	graphics security
 
 # Perl
 PERMIT_PACKAGE_CDROM =		Yes
 
-CPAN_AUTHOR =	PHRED
+CPAN_AUTHOR =			SUNNYP
+MODCPAN_EXAMPLES =		Yes
+
+WRKDIST =	${WRKDIR}/${NAME}-re${NAME}
 
 RUN_DEPENDS =	www/p5-HTML-Tiny \
 		www/p5-libwww
Index: distinfo
===================================================================
RCS file: /var/cvs/ports/graphics/p5-Captcha-reCAPTCHA/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo	28 Dec 2014 09:06:54 -0000	1.3
+++ distinfo	6 Nov 2017 13:35:44 -0000
@@ -1,2 +1,2 @@
-SHA256 (Captcha-reCAPTCHA-0.97.tar.gz) = mIsQse+JBF8VPxL8zQspj7aiOaVMdpynrSZKlRD0wok=
-SIZE (Captcha-reCAPTCHA-0.97.tar.gz) = 9311
+SHA256 (Captcha-reCaptcha-0.99.tar.gz) = uJI1dmARZu3j9/Ly/1X/bjw7znDmnzZaUe076MykQ5I=
+SIZE (Captcha-reCaptcha-0.99.tar.gz) = 12169
Index: pkg/PLIST
===================================================================
RCS file: /var/cvs/ports/graphics/p5-Captcha-reCAPTCHA/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST	5 Feb 2009 22:05:07 -0000	1.1.1.1
+++ pkg/PLIST	6 Nov 2017 13:54:20 -0000
@@ -2,3 +2,5 @@
 ${P5SITE}/Captcha/
 ${P5SITE}/Captcha/reCAPTCHA.pm
 @man man/man3p/Captcha::reCAPTCHA.3p
+share/examples/p5-Captcha-reCaptcha/
+share/examples/p5-Captcha-reCaptcha/captcha.pl

Reply via email to