From df4defb79e52c1dabf5565c7a821081f879fea38 Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Mon, 3 Sep 2018 19:07:52 +0000 Subject: [PATCH] New port: graphics/p5-Algorithm-Line-Bresenham Bresenham is one of the canonical line drawing algorithms for pixellated grids. Given a start and an end-point, Bresenham calculates which points on the grid need to be filled to generate the line between them. WWW: https://metacpan.org/release/Algorithm-Line-Bresenham PR: 230968 Submitted by: Tomohiro Hosaka --- graphics/Makefile | 1 + graphics/p5-Algorithm-Line-Bresenham/Makefile | 20 +++++++++++++++++++ graphics/p5-Algorithm-Line-Bresenham/distinfo | 3 +++ .../p5-Algorithm-Line-Bresenham/pkg-descr | 6 ++++++ .../p5-Algorithm-Line-Bresenham/pkg-plist | 2 ++ 5 files changed, 32 insertions(+) create mode 100644 graphics/p5-Algorithm-Line-Bresenham/Makefile create mode 100644 graphics/p5-Algorithm-Line-Bresenham/distinfo create mode 100644 graphics/p5-Algorithm-Line-Bresenham/pkg-descr create mode 100644 graphics/p5-Algorithm-Line-Bresenham/pkg-plist diff --git a/graphics/Makefile b/graphics/Makefile index 59eb404a200e..fb03fade79e1 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -691,6 +691,7 @@ SUBDIR += osgearth SUBDIR += oyranos SUBDIR += p5-Acme-Steganography-Image-Png + SUBDIR += p5-Algorithm-Line-Bresenham SUBDIR += p5-Alien-Gimp SUBDIR += p5-Barcode-ZBar SUBDIR += p5-CAD-Drawing diff --git a/graphics/p5-Algorithm-Line-Bresenham/Makefile b/graphics/p5-Algorithm-Line-Bresenham/Makefile new file mode 100644 index 000000000000..0f28a33d2336 --- /dev/null +++ b/graphics/p5-Algorithm-Line-Bresenham/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ + +PORTNAME= Algorithm-Line-Bresenham +PORTVERSION= 0.11 +CATEGORIES= graphics perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR=CPAN:OSFAMERON +PKGNAMEPREFIX= p5- + +MAINTAINER= bokutin@bokut.in +COMMENT= Simple pixellated line-drawing algorithm + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +NO_ARCH= yes +USES= perl5 +USE_PERL5= modbuild + +.include diff --git a/graphics/p5-Algorithm-Line-Bresenham/distinfo b/graphics/p5-Algorithm-Line-Bresenham/distinfo new file mode 100644 index 000000000000..a58230145ddc --- /dev/null +++ b/graphics/p5-Algorithm-Line-Bresenham/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1532978101 +SHA256 (Algorithm-Line-Bresenham-0.11.tar.gz) = bf7247458f8d810ed2ca0b61b69896e8af9b31bc4fe69766c2a53c44797b3aee +SIZE (Algorithm-Line-Bresenham-0.11.tar.gz) = 2914 diff --git a/graphics/p5-Algorithm-Line-Bresenham/pkg-descr b/graphics/p5-Algorithm-Line-Bresenham/pkg-descr new file mode 100644 index 000000000000..b50d0007a60b --- /dev/null +++ b/graphics/p5-Algorithm-Line-Bresenham/pkg-descr @@ -0,0 +1,6 @@ +Bresenham is one of the canonical line drawing algorithms for +pixellated grids. Given a start and an end-point, Bresenham +calculates which points on the grid need to be filled to generate +the line between them. + +WWW: https://metacpan.org/release/Algorithm-Line-Bresenham diff --git a/graphics/p5-Algorithm-Line-Bresenham/pkg-plist b/graphics/p5-Algorithm-Line-Bresenham/pkg-plist new file mode 100644 index 000000000000..6897413eabbf --- /dev/null +++ b/graphics/p5-Algorithm-Line-Bresenham/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Algorithm/Line/Bresenham.pm +%%PERL5_MAN3%%/Algorithm::Line::Bresenham.3.gz