pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

(cad/py-picture-to-gds) New package, converting img to gdsii



Module Name:	pkgsrc-wip
Committed By:	Makoto Fujiwara (CF-SX2) <makoto%ki.nu@localhost>
Pushed By:	mef
Date:		Mon Mar 19 23:24:17 2018 +0900
Changeset:	719b023a268ccf0ed72a9b303f5c67e5247f4f76

Added Files:
	py-picture-to-gds/DESCR
	py-picture-to-gds/Makefile
	py-picture-to-gds/PLIST
	py-picture-to-gds/distinfo

Log Message:
(cad/py-picture-to-gds) New package, converting img to gdsii

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=719b023a268ccf0ed72a9b303f5c67e5247f4f76

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-picture-to-gds/DESCR    |  6 ++++++
 py-picture-to-gds/Makefile | 38 ++++++++++++++++++++++++++++++++++++++
 py-picture-to-gds/PLIST    |  4 ++++
 py-picture-to-gds/distinfo |  6 ++++++
 4 files changed, 54 insertions(+)

diffs:
diff --git a/py-picture-to-gds/DESCR b/py-picture-to-gds/DESCR
new file mode 100644
index 0000000000..5fe4cc7bbf
--- /dev/null
+++ b/py-picture-to-gds/DESCR
@@ -0,0 +1,6 @@
+This is a simple script for generating GDSII layout files from image
+files. The input image files should have the extensions jpeg, jpg, png,
+pbm, pgm, or bmp. By specifying an image file, size of the unit-cell
+(minimum width and space of the layout), and layer number of the GDSII
+file, you can get a binary image file (image.bmp) and a GDSII layout file
+(image.gds).
diff --git a/py-picture-to-gds/Makefile b/py-picture-to-gds/Makefile
new file mode 100644
index 0000000000..99d76083f6
--- /dev/null
+++ b/py-picture-to-gds/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+
+DISTNAME=	master
+PKGNAME=	${PYPKGPREFIX}-picture-to-gds-0.1
+CATEGORIES=	cad python
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ourfool/picture-to-gds/archive/}
+
+EXTRACT_SUFX=	.zip
+DIST_SUBDIR=	${PKGNAME_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.com@localhost
+HOMEPAGE=	https://github.com/ourfool/picture-to-gds/
+COMMENT=	Python script to convert image files to GDSII files
+LICENSE=	gnu-gpl-v3
+
+DEPENDS+=	py*-gdsCAD-[0-9]*:../../cad/py-gdscad
+DEPENDS+=	opencv-[0-9]*:../../graphics/opencv
+
+NO_BUILD=	yes
+WRKSRC=		${WRKDIR}/picture-to-gds-${DISTNAME}
+INSTALL_DIR=	${PREFIX}/bin
+SHARE_DIR=	${PREFIX}/picture-to-gds/share
+
+USE_LANGUAGES=	# empty
+
+do-install:
+	( cd ${WRKSRC};\
+	${MKDIR}                   ${DESTDIR}${INSTALL_DIR};\
+	${MKDIR}                   ${DESTDIR}${SHARE_DIR};\
+	${INSTALL} picToGDS.py     ${DESTDIR}${INSTALL_DIR};\
+	${INSTALL} LICENSE         ${DESTDIR}${SHARE_DIR};\
+	${INSTALL} README.md       ${DESTDIR}${SHARE_DIR};\
+	)
+
+.include "../../math/py-numpy/buildlink3.mk"
+.include "../../lang/python/pyversion.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-picture-to-gds/PLIST b/py-picture-to-gds/PLIST
new file mode 100644
index 0000000000..21fb4c1a41
--- /dev/null
+++ b/py-picture-to-gds/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/picToGDS.py
+picture-to-gds/share/LICENSE
+picture-to-gds/share/README.md
diff --git a/py-picture-to-gds/distinfo b/py-picture-to-gds/distinfo
new file mode 100644
index 0000000000..76a76f64c1
--- /dev/null
+++ b/py-picture-to-gds/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (py27-picture-to-gds-0.1/master.zip) = 2facdbd7dae38f3dbaf81ba7978a883e37aa907f
+RMD160 (py27-picture-to-gds-0.1/master.zip) = c9d0120532fece1a6f543c02b848b3ad2b5a2800
+SHA512 (py27-picture-to-gds-0.1/master.zip) = c853c95f167c99d383588edbdd87d1bd83735e376c8f0a566ee52b9cdccb83893d64073bbe5ba5750a9c45994e79f246a3280387fb8a40a28d7c147c948ac0cb
+Size (py27-picture-to-gds-0.1/master.zip) = 14199 bytes


Home | Main Index | Thread Index | Old Index