From nobody Mon Aug 28 16:53:25 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RZGpY5D97z4rl44; Mon, 28 Aug 2023 16:53:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZGpY1gzPz3KZj; Mon, 28 Aug 2023 16:53:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693241605; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CCD9YAwd+b8qyxE5KCHB0zdCvMbRXOBN+5CIChwii6k=; b=fpuv1ds2SxpvLdStirrl9HyaJrYRysx4itn+yLfm1t9KZNGJl7hl7hqie0UaclpSGktyQg 1NrcGjqciRw3srzu4lEhhg2o9hr6J+yHSaiICw5s9G9Z7H35RWefLS7MXQd8FogdighEYE FP0UsuyxTwxuM5S2Yf7a7iHOpYIq8dM6S9HclFEqpgFvEmv9Czs4CRVd9n41V6sffV+Jth kijXxsxM3RUjYToPmD8C8rUPMBWEPGKpdGgaEkTRgMUD0vlltaWZWnoFXGf65u6kTqjICZ s2o1ZEKDvDCbVzW5SDCz78jqdlxed43JAUXtPKYQjFb+hdXpUoFWMa/y8qgRpA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693241605; a=rsa-sha256; cv=none; b=JQ8mP94/xEaD8SnWMPm+RUiq+31zM895V8DblcxIrfI55ZbmfXb8xQeZK1+to321qNbc8R iZWdOwS09Mr6JsKozzZ8WqtCqvIRGaHEyz4BCkLhE1vaeiAq9lEQ15pz2ree93Q7cVaUge BF6Dwi90UMclNftuX6TnI+Yc+Rxw5+MB4JkJgJgyQ6tKgq/zX3o2R8zc7jcmGyhrlN6mlo 4Pv05BeFQRbGEDGNMl/6TzmPZk1S2vcLSc3nQZNqK1gTMDUIImKrFzKAJOdsxW5eld5rH5 RKW5hjp+lbrdxZMGpVq/FvacSVVoIBEN/F21eTHmuUP9sOfd8wJoLGHdtqN0KA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693241605; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CCD9YAwd+b8qyxE5KCHB0zdCvMbRXOBN+5CIChwii6k=; b=IoAVDCDp9w8ahWMsajHertU/yeVhqwsIwqSoSm/sb8BOK/K7UTXQiQvkiYRLHmAhytarev ZKeerQqgrUnbSx7dxXyjFSrRuvjBmhD1jV4LR5BOHRe3Id/4NyqgCXM8ILdOINxoj7EGli ZH7CTkMxEHP6l4e/Sk5hvO3/m1mobqhzhhlRTa/1u/RjdytiABDK6+PeO7Yu6CU0lhtXvh 5x7s6FAs8pACQbcQRFEsDI08oXE/qiE9sPyj58hSpaS/z3ZqLHGJPs8GVhm1+XuYfTmfyj 6tDehV4X+6/1pGabh9gFgYKDOnDy89053K46JRykvNEaSh1izw5Sx1gAJWCnwQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RZGpY0mRwz255; Mon, 28 Aug 2023 16:53:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37SGrPDn010901; Mon, 28 Aug 2023 16:53:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37SGrPrJ010898; Mon, 28 Aug 2023 16:53:25 GMT (envelope-from git) Date: Mon, 28 Aug 2023 16:53:25 GMT Message-Id: <202308281653.37SGrPrJ010898@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 8784bcc9751d - main - cad/py-gdstk: New port: Library for creation and manipulation of GDSII and OASIS files List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8784bcc9751df4e9d5439d9c2612adc5c2548196 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8784bcc9751df4e9d5439d9c2612adc5c2548196 commit 8784bcc9751df4e9d5439d9c2612adc5c2548196 Author: Yuri Victorovich AuthorDate: 2023-08-28 15:27:55 +0000 Commit: Yuri Victorovich CommitDate: 2023-08-28 16:53:22 +0000 cad/py-gdstk: New port: Library for creation and manipulation of GDSII and OASIS files --- cad/Makefile | 1 + cad/py-gdstk/Makefile | 25 +++++++++++++++++++++++++ cad/py-gdstk/distinfo | 3 +++ cad/py-gdstk/files/patch-pyproject.toml | 9 +++++++++ cad/py-gdstk/pkg-descr | 11 +++++++++++ 5 files changed, 49 insertions(+) diff --git a/cad/Makefile b/cad/Makefile index d0f48e1d9673..62b2e6edda2c 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -111,6 +111,7 @@ SUBDIR += py-edalize SUBDIR += py-ezdxf SUBDIR += py-gdspy + SUBDIR += py-gdstk SUBDIR += py-gmsh SUBDIR += py-lcapy SUBDIR += py-ocp diff --git a/cad/py-gdstk/Makefile b/cad/py-gdstk/Makefile new file mode 100644 index 000000000000..9aed69397199 --- /dev/null +++ b/cad/py-gdstk/Makefile @@ -0,0 +1,25 @@ +PORTNAME= gdstk +DISTVERSION= 0.9.42 +CATEGORIES= cad +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for creation and manipulation of GDSII and OASIS files +WWW= https://heitzmann.github.io/gdstk/ + +LICENSE= BSL +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= cmake:devel/cmake-core \ + ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ + ${PYNUMPY} + +USES= compiler:c++11-lang python +USE_PYTHON= pep517 autoplist + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gdstk${PYTHON_EXT_SUFFIX}.so + +.include diff --git a/cad/py-gdstk/distinfo b/cad/py-gdstk/distinfo new file mode 100644 index 000000000000..60456b065423 --- /dev/null +++ b/cad/py-gdstk/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1693240074 +SHA256 (gdstk-0.9.42.tar.gz) = bd7ab2f72e50df3ca396e94b82c202a4dfbef1e1206ab6d371d961ab12edfa97 +SIZE (gdstk-0.9.42.tar.gz) = 513544 diff --git a/cad/py-gdstk/files/patch-pyproject.toml b/cad/py-gdstk/files/patch-pyproject.toml new file mode 100644 index 000000000000..9c5fa81d18bb --- /dev/null +++ b/cad/py-gdstk/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +--- pyproject.toml.orig 2023-08-28 16:28:32 UTC ++++ pyproject.toml +@@ -38,5 +38,5 @@ requires = [ + "setuptools>=42", + "wheel", + "numpy; platform_system=='Darwin'", +- "oldest-supported-numpy; platform_system!='Darwin'", ++ "numpy; platform_system!='Darwin'", + ] diff --git a/cad/py-gdstk/pkg-descr b/cad/py-gdstk/pkg-descr new file mode 100644 index 000000000000..1300c7e4f921 --- /dev/null +++ b/cad/py-gdstk/pkg-descr @@ -0,0 +1,11 @@ +Gdstk (GDSII Tool Kit) is a C++ library for creation and manipulation +of GDSII and OASIS files. It is also available as a Python module +meant to be a successor to Gdspy. + +Key features for the creation of complex CAD layouts are included: +* Boolean operations on polygons (AND, OR, NOT, XOR) based on clipping algorithm +* Polygon offset (inward and outward rescaling of polygons) +* Efficient point-in-polygon solutions for large array sets + +Typical applications of Gdstk are in the fields of electronic chip design, +planar lightwave circuit design, and mechanical engineering.