summaryrefslogtreecommitdiff
path: root/graphics/go-smartcrop
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-07-19 12:36:17 +0000
committerminskim <minskim@pkgsrc.org>2018-07-19 12:36:17 +0000
commit37e37d47b1cfb5a9c1f795e9343ecb7ad6d279b4 (patch)
treeb09ced6a8695947d91b31a93395867b3ad650956 /graphics/go-smartcrop
parent0305a76c63b3830b1789f873a7185c01f411e1a0 (diff)
downloadpkgsrc-37e37d47b1cfb5a9c1f795e9343ecb7ad6d279b4.tar.gz
graphics/go-smartcrop: Import version 0.2.0.20180227
smartcrop finds good image crops for arbitrary sizes. It is a pure Go implementation, based on Jonas Wagner's smartcrop.js.
Diffstat (limited to 'graphics/go-smartcrop')
-rw-r--r--graphics/go-smartcrop/DESCR2
-rw-r--r--graphics/go-smartcrop/Makefile21
-rw-r--r--graphics/go-smartcrop/PLIST13
-rw-r--r--graphics/go-smartcrop/buildlink3.mk18
-rw-r--r--graphics/go-smartcrop/distinfo6
5 files changed, 60 insertions, 0 deletions
diff --git a/graphics/go-smartcrop/DESCR b/graphics/go-smartcrop/DESCR
new file mode 100644
index 00000000000..75e38aa0f1a
--- /dev/null
+++ b/graphics/go-smartcrop/DESCR
@@ -0,0 +1,2 @@
+smartcrop finds good image crops for arbitrary sizes. It is a pure Go
+implementation, based on Jonas Wagner's smartcrop.js.
diff --git a/graphics/go-smartcrop/Makefile b/graphics/go-smartcrop/Makefile
new file mode 100644
index 00000000000..44d28a5b57a
--- /dev/null
+++ b/graphics/go-smartcrop/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2018/07/19 12:36:17 minskim Exp $
+
+DISTNAME= smartcrop-0.2.0.20180227
+PKGNAME= go-${DISTNAME}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=muesli/}
+CATEGORIES= graphics
+GITHUB_PROJECT= ${PKGBASE:S/^go-//}
+GITHUB_TAG= f6ebaa786a12a0fdb2d7c6dee72808e68c296464
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= https://github.com/muesli/smartcrop
+COMMENT= Tool to find good image crops for arbitrary crop sizes
+LICENSE= mit
+
+GO_DIST_BASE= ${PKGBASE:S/go-//}-${GITHUB_TAG}
+GO_SRCPATH= ${HOMEPAGE:S,https://,,}
+
+.include "../../graphics/go-image/buildlink3.mk"
+.include "../../graphics/go-resize/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/go-smartcrop/PLIST b/graphics/go-smartcrop/PLIST
new file mode 100644
index 00000000000..9361755189b
--- /dev/null
+++ b/graphics/go-smartcrop/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2018/07/19 12:36:17 minskim Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/muesli/smartcrop.a
+gopkg/pkg/${GO_PLATFORM}/github.com/muesli/smartcrop/nfnt.a
+gopkg/pkg/${GO_PLATFORM}/github.com/muesli/smartcrop/options.a
+gopkg/src/github.com/muesli/smartcrop/LICENSE
+gopkg/src/github.com/muesli/smartcrop/README.md
+gopkg/src/github.com/muesli/smartcrop/debug.go
+gopkg/src/github.com/muesli/smartcrop/examples/goodtimes.jpg
+gopkg/src/github.com/muesli/smartcrop/examples/gopher.jpg
+gopkg/src/github.com/muesli/smartcrop/nfnt/resizer.go
+gopkg/src/github.com/muesli/smartcrop/options/resizer.go
+gopkg/src/github.com/muesli/smartcrop/smartcrop.go
+gopkg/src/github.com/muesli/smartcrop/smartcrop_test.go
diff --git a/graphics/go-smartcrop/buildlink3.mk b/graphics/go-smartcrop/buildlink3.mk
new file mode 100644
index 00000000000..199b7580560
--- /dev/null
+++ b/graphics/go-smartcrop/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/07/19 12:36:17 minskim Exp $
+
+BUILDLINK_TREE+= go-smartcrop
+
+.if !defined(GO_SMARTCROP_BUILDLINK3_MK)
+GO_SMARTCROP_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-smartcrop= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-smartcrop?= build
+
+BUILDLINK_API_DEPENDS.go-smartcrop+= go-smartcrop>=0.2.0.20180227
+BUILDLINK_PKGSRCDIR.go-smartcrop?= ../../graphics/go-smartcrop
+
+.include "../../graphics/go-image/buildlink3.mk"
+.include "../../graphics/go-resize/buildlink3.mk"
+.endif # GO_SMARTCROP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-smartcrop
diff --git a/graphics/go-smartcrop/distinfo b/graphics/go-smartcrop/distinfo
new file mode 100644
index 00000000000..0ac4fad83cf
--- /dev/null
+++ b/graphics/go-smartcrop/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/07/19 12:36:17 minskim Exp $
+
+SHA1 (smartcrop-0.2.0.20180227-f6ebaa786a12a0fdb2d7c6dee72808e68c296464.tar.gz) = 7d57d0be97d6ed679bb2a1fa39d6cda1ce45377f
+RMD160 (smartcrop-0.2.0.20180227-f6ebaa786a12a0fdb2d7c6dee72808e68c296464.tar.gz) = f5fe79464d63a8299ae1de43dfc7ee2a97ef921f
+SHA512 (smartcrop-0.2.0.20180227-f6ebaa786a12a0fdb2d7c6dee72808e68c296464.tar.gz) = 04b38117087f540a03f9da9070a16010d7ef4cb6c321c94df3d3dc95faf57dc3a44f5e36055ce0a6a1c3d924ba01d8bdee40b0c1b457e6f03c650f91663c91cb
+Size (smartcrop-0.2.0.20180227-f6ebaa786a12a0fdb2d7c6dee72808e68c296464.tar.gz) = 448097 bytes