mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
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.
This commit is contained in:
parent
6a656e70f5
commit
065cb3258f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475449
@ -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
|
||||
|
27
graphics/p5-Image-PNG-QRCode/Makefile
Normal file
27
graphics/p5-Image-PNG-QRCode/Makefile
Normal file
@ -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 <bsd.port.mk>
|
3
graphics/p5-Image-PNG-QRCode/distinfo
Normal file
3
graphics/p5-Image-PNG-QRCode/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1532703987
|
||||
SHA256 (Image-PNG-QRCode-0.09.tar.gz) = 2016646694d707687fc282e5d07b8dd0b21bb468742ea3f4d33bbcdc9ba0962b
|
||||
SIZE (Image-PNG-QRCode-0.09.tar.gz) = 68632
|
17
graphics/p5-Image-PNG-QRCode/pkg-descr
Normal file
17
graphics/p5-Image-PNG-QRCode/pkg-descr
Normal file
@ -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
|
5
graphics/p5-Image-PNG-QRCode/pkg-plist
Normal file
5
graphics/p5-Image-PNG-QRCode/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user