diff --git a/cad/Makefile b/cad/Makefile index d0f48e1d9673..62b2e6edda2c 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -1,162 +1,163 @@ COMMENT = CAD tools SUBDIR += PrusaSlicer SUBDIR += abc SUBDIR += admesh SUBDIR += adms SUBDIR += alliance SUBDIR += antimony SUBDIR += appcsxcad SUBDIR += archimedes SUBDIR += astk-client SUBDIR += astk-serveur SUBDIR += atlc SUBDIR += brlcad SUBDIR += calculix SUBDIR += calculix-ccx SUBDIR += camotics SUBDIR += caneda SUBDIR += cascade SUBDIR += cascade-compiler SUBDIR += chipvault SUBDIR += csxcad SUBDIR += cura SUBDIR += cura-engine SUBDIR += cvc SUBDIR += digital SUBDIR += dinotrace SUBDIR += ecpprog SUBDIR += electric SUBDIR += electric-ng SUBDIR += fasm SUBDIR += fdm_materials SUBDIR += feappv SUBDIR += fidocadj SUBDIR += freecad SUBDIR += freehdl SUBDIR += fritzing SUBDIR += gds3d SUBDIR += gdscpp SUBDIR += gdsreader SUBDIR += gdstk SUBDIR += gdt SUBDIR += geda SUBDIR += gerbv SUBDIR += ghdl SUBDIR += gmsh SUBDIR += gnucap SUBDIR += gplcver SUBDIR += graywolf SUBDIR += gspiceui SUBDIR += gtkwave SUBDIR += horizon-eda SUBDIR += hs-verismith SUBDIR += ifcopenshell SUBDIR += impact SUBDIR += irsim SUBDIR += iverilog SUBDIR += jspice3 SUBDIR += k40-whisperer SUBDIR += kicad SUBDIR += kicad-devel SUBDIR += kicad-doc SUBDIR += kicad-library-footprints SUBDIR += kicad-library-footprints-devel SUBDIR += kicad-library-packages3d SUBDIR += kicad-library-packages3d-devel SUBDIR += kicad-library-symbols SUBDIR += kicad-library-symbols-devel SUBDIR += kicad-library-templates SUBDIR += kicad-library-templates-devel SUBDIR += klayout SUBDIR += ktechlab SUBDIR += ldraw SUBDIR += ldview SUBDIR += leocad SUBDIR += lepton-eda SUBDIR += libgdsii SUBDIR += libopencad SUBDIR += librecad SUBDIR += libredwg SUBDIR += librepcb SUBDIR += librnd SUBDIR += logisim SUBDIR += magic SUBDIR += meshdev SUBDIR += meshlab SUBDIR += netgen SUBDIR += netgen-lvs SUBDIR += ngspice_rework SUBDIR += nvc SUBDIR += opencascade SUBDIR += opencascade740 SUBDIR += openctm SUBDIR += openfpgaloader SUBDIR += openroad SUBDIR += openscad SUBDIR += openscad-devel SUBDIR += opentimer SUBDIR += openvsp SUBDIR += oregano SUBDIR += p5-GDS2 SUBDIR += p5-Verilog-Perl SUBDIR += padring SUBDIR += pcb SUBDIR += pcb-rnd SUBDIR += pdnmesh SUBDIR += py-amaranth SUBDIR += py-cadquery SUBDIR += py-cocotb SUBDIR += py-cq-editor SUBDIR += py-edalize SUBDIR += py-ezdxf SUBDIR += py-gdspy + SUBDIR += py-gdstk SUBDIR += py-gmsh SUBDIR += py-lcapy SUBDIR += py-ocp SUBDIR += py-phidl SUBDIR += py-pyfda SUBDIR += py-pygmsh SUBDIR += py-pymtl SUBDIR += py-pyvcd SUBDIR += py-vunit-hdl SUBDIR += python-gdsii SUBDIR += qcad SUBDIR += qcsxcad SUBDIR += qelectrotech SUBDIR += qflow SUBDIR += qmls SUBDIR += qrouter SUBDIR += qspeakers SUBDIR += qucs-s SUBDIR += qucsator SUBDIR += repsnapper SUBDIR += rubygem-gdsii SUBDIR += scotch SUBDIR += silice SUBDIR += solvespace SUBDIR += sp2sp SUBDIR += spice SUBDIR += stepcode SUBDIR += stm32flash SUBDIR += sumo SUBDIR += surelog SUBDIR += svlint SUBDIR += svls SUBDIR += sweethome3d SUBDIR += tkgate SUBDIR += tochnog SUBDIR += uhdm SUBDIR += uranium SUBDIR += verilator SUBDIR += verilog-mode.el SUBDIR += veroroute SUBDIR += veryl SUBDIR += xcircuit SUBDIR += xyce SUBDIR += yosys SUBDIR += yosys-systemverilog SUBDIR += z88 SUBDIR += zcad .include 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.