From owner-svn-ports-all@freebsd.org Fri Jul 27 17:47:37 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E1571051E70; Fri, 27 Jul 2018 17:47:37 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 42A577F99E; Fri, 27 Jul 2018 17:47:37 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1F6631B0DC; Fri, 27 Jul 2018 17:47:37 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6RHlaEj093163; Fri, 27 Jul 2018 17:47:36 GMT (envelope-from dvl@FreeBSD.org) Received: (from dvl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6RHlaKK093157; Fri, 27 Jul 2018 17:47:36 GMT (envelope-from dvl@FreeBSD.org) Message-Id: <201807271747.w6RHlaKK093157@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dvl set sender to dvl@FreeBSD.org using -f From: Dan Langille Date: Fri, 27 Jul 2018 17:47:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475449 - in head/graphics: . p5-Image-PNG-QRCode X-SVN-Group: ports-head X-SVN-Commit-Author: dvl X-SVN-Commit-Paths: in head/graphics: . p5-Image-PNG-QRCode X-SVN-Commit-Revision: 475449 X-SVN-Commit-Repository: ports 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.27 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, 27 Jul 2018 17:47:37 -0000 Author: dvl Date: Fri Jul 27 17:47:35 2018 New Revision: 475449 URL: https://svnweb.freebsd.org/changeset/ports/475449 Log: New port: graphics/p5-Image-PNG-QRCode make a PNG image containing a QR code from text This module converts input text to a PNG image of a QR code containing the text. The PNG image can either be stored to a file or it can be a scalar. Image::PNG::Libpng requires "libpng" to be installed. "libpng" should already be installed on most Linux and Windows systems. Added: head/graphics/p5-Image-PNG-QRCode/ head/graphics/p5-Image-PNG-QRCode/Makefile (contents, props changed) head/graphics/p5-Image-PNG-QRCode/distinfo (contents, props changed) head/graphics/p5-Image-PNG-QRCode/pkg-descr (contents, props changed) head/graphics/p5-Image-PNG-QRCode/pkg-plist (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Fri Jul 27 17:16:15 2018 (r475448) +++ head/graphics/Makefile Fri Jul 27 17:47:35 2018 (r475449) @@ -759,6 +759,7 @@ SUBDIR += p5-Image-ObjectDetect SUBDIR += p5-Image-PBMlib SUBDIR += p5-Image-PNG-Libpng + SUBDIR += p5-Image-PNG-QRCode SUBDIR += p5-Image-Pngslimmer SUBDIR += p5-Image-Sane SUBDIR += p5-Image-Scale Added: head/graphics/p5-Image-PNG-QRCode/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/p5-Image-PNG-QRCode/Makefile Fri Jul 27 17:47:35 2018 (r475449) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= Image-PNG-QRCode +DISTVERSION= 0.09 +CATEGORIES= graphics perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Make a PNG image containing a QR code from text + +LICENSE= GPLv3 + +LIB_DEPENDS= libpng.so:graphics/png + +RUN_DEPENDS+= p5-Carp>0:devel/p5-Carp +RUN_DEPENDS+= p5-Exporter>0:devel/p5-Exporter +RUN_DEPENDS+= p5-XSLoader>0:devel/p5-XSLoader + +USES= perl5 +USE_PERL5= configure + +post-patch: + ${REINPLACE_CMD} -e 's|INC => $$vars->{inc}|INC => "-I${LOCALBASE}/include"|g' \ + ${WRKSRC}/Makefile.PL + +.include Added: head/graphics/p5-Image-PNG-QRCode/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/p5-Image-PNG-QRCode/distinfo Fri Jul 27 17:47:35 2018 (r475449) @@ -0,0 +1,3 @@ +TIMESTAMP = 1532703987 +SHA256 (Image-PNG-QRCode-0.09.tar.gz) = 2016646694d707687fc282e5d07b8dd0b21bb468742ea3f4d33bbcdc9ba0962b +SIZE (Image-PNG-QRCode-0.09.tar.gz) = 68632 Added: head/graphics/p5-Image-PNG-QRCode/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/p5-Image-PNG-QRCode/pkg-descr Fri Jul 27 17:47:35 2018 (r475449) @@ -0,0 +1,17 @@ +This module converts input text to a PNG image of a QR code containing the +text. The PNG image can either be stored to a file or it can be a scalar. + +Image::PNG::Libpng requires "libpng" to be installed. "libpng" should +already be installed on most Linux and Windows systems. + +This example makes a data URL QR code: + +use Image::PNG::QRCode 'qrpng'; +use URI; +my $data = 'abcdefghijklmnopqrstuvwxyz'; +my $u = URI->new ('data:'); +$u->media_type ('image/png'); +$u->data (qrpng (text => $data)); +print "\n"; + +WWW: https://metacpan.org/pod/Image::PNG::QRCode Added: head/graphics/p5-Image-PNG-QRCode/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/p5-Image-PNG-QRCode/pkg-plist Fri Jul 27 17:47:35 2018 (r475449) @@ -0,0 +1,5 @@ +bin/qrpng +%%SITE_ARCH%%/Image/PNG/QRCode.pm +%%SITE_ARCH%%/Image/PNG/QRCode.pod +%%SITE_ARCH%%/auto/Image/PNG/QRCode/QRCode.so +%%PERL5_MAN3%%/Image::PNG::QRCode.3.gz