svn commit: r475449 - in head/graphics: . p5-Image-PNG-QRCode

Dan Langille dvl at FreeBSD.org
Fri Jul 27 17:47:37 UTC 2018


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 at 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 <bsd.port.mk>

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 "<img src='$u'>\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


More information about the svn-ports-all mailing list