summaryrefslogtreecommitdiff
path: root/graphics/go-imaging
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2018-11-18 08:32:54 +0000
committerryoon <ryoon@pkgsrc.org>2018-11-18 08:32:54 +0000
commit03608b5e0aaca25d929ff4cd583adb65e9233377 (patch)
tree22e8115e95fc1c8f910568525a29266b47bfb907 /graphics/go-imaging
parent81527a6ee9d78a0ee40136123912a00b65d75589 (diff)
downloadpkgsrc-03608b5e0aaca25d929ff4cd583adb65e9233377.tar.gz
graphics/go-imaging: import go-imaging-1.5.0
Package imaging provides basic image processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.). All the image processing functions provided by the package accept any image type that implements image.Image interface as an input, and return a new image of *image.NRGBA type (32bit RGBA colors, not premultiplied by alpha).
Diffstat (limited to 'graphics/go-imaging')
-rw-r--r--graphics/go-imaging/DESCR7
-rw-r--r--graphics/go-imaging/Makefile20
-rw-r--r--graphics/go-imaging/PLIST54
-rw-r--r--graphics/go-imaging/buildlink3.mk16
-rw-r--r--graphics/go-imaging/distinfo6
5 files changed, 103 insertions, 0 deletions
diff --git a/graphics/go-imaging/DESCR b/graphics/go-imaging/DESCR
new file mode 100644
index 00000000000..6613a32a716
--- /dev/null
+++ b/graphics/go-imaging/DESCR
@@ -0,0 +1,7 @@
+Package imaging provides basic image processing functions (resize,
+rotate, crop, brightness/contrast adjustments, etc.).
+
+All the image processing functions provided by the package accept
+any image type that implements image.Image interface as an input,
+and return a new image of *image.NRGBA type (32bit RGBA colors,
+not premultiplied by alpha).
diff --git a/graphics/go-imaging/Makefile b/graphics/go-imaging/Makefile
new file mode 100644
index 00000000000..9b508c88490
--- /dev/null
+++ b/graphics/go-imaging/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2018/11/18 08:32:54 ryoon Exp $
+
+DISTNAME= imaging-1.5.0
+PKGNAME= go-${DISTNAME}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=disintegration/}
+CATEGORIES= graphics
+GITHUB_PROJECT= imaging
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/disintegration/imaging
+COMMENT= Simple image processing package for Go
+LICENSE= mit
+
+GO_DIST_BASE= ${DISTNAME}
+GO_SRCPATH= github.com/disintegration/imaging
+
+.include "../../graphics/go-image/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/go-imaging/PLIST b/graphics/go-imaging/PLIST
new file mode 100644
index 00000000000..adb90afd5f7
--- /dev/null
+++ b/graphics/go-imaging/PLIST
@@ -0,0 +1,54 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/18 08:32:54 ryoon Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/disintegration/imaging.a
+gopkg/src/github.com/disintegration/imaging/LICENSE
+gopkg/src/github.com/disintegration/imaging/README.md
+gopkg/src/github.com/disintegration/imaging/adjust.go
+gopkg/src/github.com/disintegration/imaging/adjust_test.go
+gopkg/src/github.com/disintegration/imaging/convolution.go
+gopkg/src/github.com/disintegration/imaging/convolution_test.go
+gopkg/src/github.com/disintegration/imaging/doc.go
+gopkg/src/github.com/disintegration/imaging/effects.go
+gopkg/src/github.com/disintegration/imaging/effects_test.go
+gopkg/src/github.com/disintegration/imaging/example_test.go
+gopkg/src/github.com/disintegration/imaging/histogram.go
+gopkg/src/github.com/disintegration/imaging/histogram_test.go
+gopkg/src/github.com/disintegration/imaging/io.go
+gopkg/src/github.com/disintegration/imaging/io_test.go
+gopkg/src/github.com/disintegration/imaging/resize.go
+gopkg/src/github.com/disintegration/imaging/resize_test.go
+gopkg/src/github.com/disintegration/imaging/scanner.go
+gopkg/src/github.com/disintegration/imaging/scanner_test.go
+gopkg/src/github.com/disintegration/imaging/testdata/branches.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/branches.png
+gopkg/src/github.com/disintegration/imaging/testdata/flowers.png
+gopkg/src/github.com/disintegration/imaging/testdata/flowers_small.png
+gopkg/src/github.com/disintegration/imaging/testdata/orientation_0.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/orientation_1.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/orientation_2.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/orientation_3.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/orientation_4.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/orientation_5.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/orientation_6.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/orientation_7.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/orientation_8.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/out_blur_0.5.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_blur_1.5.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_brightness_m10.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_brightness_p10.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_contrast_m15.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_contrast_p15.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_example.jpg
+gopkg/src/github.com/disintegration/imaging/testdata/out_gamma_0.75.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_gamma_1.25.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_resize_catrom.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_resize_lanczos.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_resize_linear.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_resize_nearest.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_sharpen_0.5.png
+gopkg/src/github.com/disintegration/imaging/testdata/out_sharpen_1.5.png
+gopkg/src/github.com/disintegration/imaging/tools.go
+gopkg/src/github.com/disintegration/imaging/tools_test.go
+gopkg/src/github.com/disintegration/imaging/transform.go
+gopkg/src/github.com/disintegration/imaging/transform_test.go
+gopkg/src/github.com/disintegration/imaging/utils.go
+gopkg/src/github.com/disintegration/imaging/utils_test.go
diff --git a/graphics/go-imaging/buildlink3.mk b/graphics/go-imaging/buildlink3.mk
new file mode 100644
index 00000000000..3364d3e4cce
--- /dev/null
+++ b/graphics/go-imaging/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/11/18 08:32:54 ryoon Exp $
+
+BUILDLINK_TREE+= go-imaging
+
+.if !defined(GO_IMAGING_BUILDLINK3_MK)
+GO_IMAGING_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-imaging= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-imaging?= build
+
+BUILDLINK_API_DEPENDS.go-imaging+= go-imaging>=1.5.0
+BUILDLINK_PKGSRCDIR.go-imaging?= ../../graphics/go-imaging
+
+.endif # GO_IMAGING_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-imaging
diff --git a/graphics/go-imaging/distinfo b/graphics/go-imaging/distinfo
new file mode 100644
index 00000000000..f9709e8bf48
--- /dev/null
+++ b/graphics/go-imaging/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/11/18 08:32:54 ryoon Exp $
+
+SHA1 (imaging-1.5.0.tar.gz) = ee12dc5777e1d097df037291f5cfef4a384239a2
+RMD160 (imaging-1.5.0.tar.gz) = 3ae213e221c4d46d005f6423eb83ef1424f5b74e
+SHA512 (imaging-1.5.0.tar.gz) = 8fdc5ec93ee16cd15ff4c569116d3ccfe0cb7ea0b6c30d07701386fc0feada49795f2be23ff336fa74b481892f53e0e88b4c1b4f6fe78998b67f49d31b802fee
+Size (imaging-1.5.0.tar.gz) = 1886547 bytes