From nobody Mon Jan 16 21:07:29 2023 X-Original-To: dev-commits-ports-main@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 4Nwl355hvbz2p9LM; Mon, 16 Jan 2023 21:07:29 +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 4Nwl355C61z41Sq; Mon, 16 Jan 2023 21:07:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673903249; 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=cEJgV0r/uq1iaJphLohq+SNuVcYUH+2kxKx4Cq+Pbgk=; b=WspaHr/1280AtDV5VwMfIl8/GJG/JShw2PBvVu087tFxOAHD8GUoP7hEp67urxN4j3NKIW zGIZTxEn/nSBtu2fSAzKni0oVcbcQZJuICszHaZqiAAlp3WRfU+HWkIeKdr9jF2xSyxS1z 6vAIR0rFjvzYpZPvw6VBehHFG93oC9TTob65cyOp5h2WdguMkOkdJrfFM3GuEd/s6g1z15 ZS4iWqoMSf1KJ51YtB+cChUA2brkqSW9DUHYAmhuU8jU2udpDlrHCGMjoebW70b5ZhzzPg 4ibNdQ7IF6277cSVX3PRxJnxH/opDHijks5DD9k853BEdFqno7L+uFm43sHcZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673903249; 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=cEJgV0r/uq1iaJphLohq+SNuVcYUH+2kxKx4Cq+Pbgk=; b=tV/XcccsFxUT8dsg456JjOTSWmLTKCGyRFwpjnGObv4vpdHNXRpD0Kvz0xTepmzi4G4sZ6 on1ylIrejH3mM1Mh6NGfvqRchetsOvZ9QxlIzQYk/5vwp3u6CQqyu+qvSfkpjll5FbE1N9 bweUTmdwm9sYM5PI4/yGDjN3Q58ryX1XJNemblf4UUZMWZzNDkHNqk6Nwq8JFyQvABn/bv ZvZTaL/iHaShus7uFohviUN5Vevj2hewbexssoHy+K78qtOU/0OryMj2JincdCiJB30nRt C4dzctTP1xkQsfKuEOn6It4ZeLY7Ya6Mnj+zg1lMSiy6/XkRnRGvxQ2jeqiLDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673903249; a=rsa-sha256; cv=none; b=v9py9FGOSE3I4xAegKa8xZXZOcyTQSVkM1osJRVcoQKVozxnp8daZSzIDbg1wOt8jEcd5V /T8qlCy4Puse+B7pvfpJ0P8roBrzCICOGp/YDf3exdd5csqwKxBndjBYgSMPz33+xiGXKA ipkYDGwWDyOukS6Ci+c70ZXSSeHFMZiZh0/sQ4ziNvEr2lh3K9Dqs1C0euQ+roqBIV/oG6 aB4CfnF8xII8m98ZvGTUtFhMtJDaoSNEbVuwKUtnsaczVIK5rnLKK26xyqM3HdIopHVWJV y/5QC5nV+Cm3jaUi5Zjz6/iG+i0FW3ly+ZCaDpLXXWQE0SRhNLxKZ6pvFPXiCA== 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 4Nwl354H0wz1LZK; Mon, 16 Jan 2023 21:07:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30GL7TuA009492; Mon, 16 Jan 2023 21:07:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30GL7T8g009491; Mon, 16 Jan 2023 21:07:29 GMT (envelope-from git) Date: Mon, 16 Jan 2023 21:07:29 GMT Message-Id: <202301162107.30GL7T8g009491@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: cdfc8f759d7f - main - cad/antimony: New port: CAD from a parallel universe List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: cdfc8f759d7f08e89c95d802ba11575d7eb0317f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=cdfc8f759d7f08e89c95d802ba11575d7eb0317f commit cdfc8f759d7f08e89c95d802ba11575d7eb0317f Author: Yuri Victorovich AuthorDate: 2023-01-16 20:50:37 +0000 Commit: Yuri Victorovich CommitDate: 2023-01-16 21:07:26 +0000 cad/antimony: New port: CAD from a parallel universe --- cad/Makefile | 1 + cad/antimony/Makefile | 25 ++++++++ cad/antimony/distinfo | 3 + cad/antimony/files/patch-app_app_app.cpp | 13 +++++ cad/antimony/files/patch-app_app_main.cpp | 20 +++++++ cad/antimony/pkg-descr | 2 + cad/antimony/pkg-plist | 96 +++++++++++++++++++++++++++++++ 7 files changed, 160 insertions(+) diff --git a/cad/Makefile b/cad/Makefile index 2248b9d2b435..fa412f520987 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -6,6 +6,7 @@ SUBDIR += admesh SUBDIR += adms SUBDIR += alliance + SUBDIR += antimony SUBDIR += appcsxcad SUBDIR += archimedes SUBDIR += astk-client diff --git a/cad/antimony/Makefile b/cad/antimony/Makefile new file mode 100644 index 000000000000..4d932e8b9217 --- /dev/null +++ b/cad/antimony/Makefile @@ -0,0 +1,25 @@ +PORTNAME= antimony +DISTVERSION= 0.9.3b-37 +DISTVERSIONSUFFIX= -g8b805c67 +CATEGORIES= cad +PKGNAMESUFFIX= -cad + +MAINTAINER= yuri@FreeBSD.org +COMMENT= CAD from a parallel universe +WWW= https://www.mattkeeter.com/projects/antimony/3/ + +LICENSE= MIT + +BUILD_DEPENDS= lemon:devel/lemon +LIB_DEPENDS= ${PY_BOOST} \ + libpng16.so:graphics/png + +USES= cmake python qt:5 +USE_QT= concurrent core gui network opengl widgets buildtools:build qmake:build + +USE_GITHUB= yes +GH_ACCOUNT= mkeeter + +CMAKE_ARGS= -DPython_EXECUTABLE=${PYTHON_CMD} + +.include diff --git a/cad/antimony/distinfo b/cad/antimony/distinfo new file mode 100644 index 000000000000..21410ba8409c --- /dev/null +++ b/cad/antimony/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1673898074 +SHA256 (mkeeter-antimony-0.9.3b-37-g8b805c67_GH0.tar.gz) = d51dee5240c0adf08db367b4ece2d760420a9aee28af7efe72f1241468112c9f +SIZE (mkeeter-antimony-0.9.3b-37-g8b805c67_GH0.tar.gz) = 1030558 diff --git a/cad/antimony/files/patch-app_app_app.cpp b/cad/antimony/files/patch-app_app_app.cpp new file mode 100644 index 000000000000..9c8b86e03c9b --- /dev/null +++ b/cad/antimony/files/patch-app_app_app.cpp @@ -0,0 +1,13 @@ +--- app/app/app.cpp.orig 2023-01-16 19:49:55 UTC ++++ app/app/app.cpp +@@ -63,6 +63,10 @@ QStringList App::nodePaths() const + // If we're running Antimony from the build folder, use sb/nodes + paths << applicationDirPath() + "/sb/nodes"; + paths << applicationDirPath() + "/../share/antimony/nodes"; ++#elif defined Q_OS_FREEBSD ++ // If we're running Antimony from the build folder, use sb/nodes ++ paths << applicationDirPath() + "/sb/nodes"; ++ paths << applicationDirPath() + "/../share/antimony/nodes"; + #elif defined Q_OS_WIN32 + // Windows only supports running from the build directory + paths << applicationDirPath() + "/sb/nodes"; diff --git a/cad/antimony/files/patch-app_app_main.cpp b/cad/antimony/files/patch-app_app_main.cpp new file mode 100644 index 000000000000..07bb69e6cf33 --- /dev/null +++ b/cad/antimony/files/patch-app_app_main.cpp @@ -0,0 +1,20 @@ +--- app/app/main.cpp.orig 2023-01-16 19:52:05 UTC ++++ app/app/main.cpp +@@ -69,6 +69,17 @@ int main(int argc, char *argv[]) + fab_paths.push_back(p.toStdString()); + } + fab::postInit(fab_paths); ++#elif defined Q_OS_FREEBSD ++ auto dir = QCoreApplication::applicationDirPath(); ++ std::vector fab_paths = ++ {(dir + "/sb").toStdString(), ++ (dir + "/../share/antimony/").toStdString()}; ++ for (auto p : QStandardPaths::standardLocations( ++ QStandardPaths::AppDataLocation)) ++ { ++ fab_paths.push_back(p.toStdString()); ++ } ++ fab::postInit(fab_paths); + #elif defined Q_OS_WIN32 + auto dir = QCoreApplication::applicationDirPath(); + fab::postInit({(dir + "/sb").toStdString()}); diff --git a/cad/antimony/pkg-descr b/cad/antimony/pkg-descr new file mode 100644 index 000000000000..ecd91d6f10bf --- /dev/null +++ b/cad/antimony/pkg-descr @@ -0,0 +1,2 @@ +Antimony is a computer-aided design (CAD) tool from a parallel universe in which +CAD software evolved from Lisp machines rather than drafting tables. diff --git a/cad/antimony/pkg-plist b/cad/antimony/pkg-plist new file mode 100644 index 000000000000..1c622283384e --- /dev/null +++ b/cad/antimony/pkg-plist @@ -0,0 +1,96 @@ +bin/antimony +%%DATADIR%%/fab/__init__.py +%%DATADIR%%/fab/shapes.py +%%DATADIR%%/fab/types.py +%%DATADIR%%/nodes/2D → 3D/Revolve/revolve_xy_x.node +%%DATADIR%%/nodes/2D → 3D/Revolve/revolve_xy_y.node +%%DATADIR%%/nodes/2D → 3D/extrude.node +%%DATADIR%%/nodes/2D → 3D/loft.node +%%DATADIR%%/nodes/2D/Circles/circle_center.node +%%DATADIR%%/nodes/2D/Circles/circle_edge.node +%%DATADIR%%/nodes/2D/Rectangles/rectangle_center.node +%%DATADIR%%/nodes/2D/Rectangles/rectangle_center_rounded.node +%%DATADIR%%/nodes/2D/Rectangles/rectangle_corner.node +%%DATADIR%%/nodes/2D/Rectangles/rectangle_corner_rounded.node +%%DATADIR%%/nodes/2D/Triangles/triangle.node +%%DATADIR%%/nodes/2D/Triangles/triangle_right.node +%%DATADIR%%/nodes/2D/point.node +%%DATADIR%%/nodes/2D/polygon.node +%%DATADIR%%/nodes/2D/text.node +%%DATADIR%%/nodes/3D → 2D/slice_xy.node +%%DATADIR%%/nodes/3D → 2D/slice_xz.node +%%DATADIR%%/nodes/3D → 2D/slice_yz.node +%%DATADIR%%/nodes/3D/Cones/cone.node +%%DATADIR%%/nodes/3D/Cones/cone_edge.node +%%DATADIR%%/nodes/3D/Cones/cone_height.node +%%DATADIR%%/nodes/3D/Cubes/cube_center.node +%%DATADIR%%/nodes/3D/Cubes/cube_center_rounded.node +%%DATADIR%%/nodes/3D/Cubes/cube_corner.node +%%DATADIR%%/nodes/3D/Cubes/cube_corner_rounded.node +%%DATADIR%%/nodes/3D/Cylinders/cylinder_x.node +%%DATADIR%%/nodes/3D/Cylinders/cylinder_y.node +%%DATADIR%%/nodes/3D/Cylinders/cylinder_z.node +%%DATADIR%%/nodes/3D/Pyramids/pyramid_center.node +%%DATADIR%%/nodes/3D/Pyramids/pyramid_edge.node +%%DATADIR%%/nodes/3D/Spheres/sphere_center.node +%%DATADIR%%/nodes/3D/Spheres/sphere_edge.node +%%DATADIR%%/nodes/3D/Toruses/torus_x.node +%%DATADIR%%/nodes/3D/Toruses/torus_y.node +%%DATADIR%%/nodes/3D/Toruses/torus_z.node +%%DATADIR%%/nodes/3D/Volumes/gyroid.node +%%DATADIR%%/nodes/3D/Volumes/schwarz_d.node +%%DATADIR%%/nodes/3D/Volumes/schwarz_p.node +%%DATADIR%%/nodes/3D/point.node +%%DATADIR%%/nodes/Array/array_2d.node +%%DATADIR%%/nodes/Array/array_3d.node +%%DATADIR%%/nodes/Array/array_polar.node +%%DATADIR%%/nodes/CSG/blend.node +%%DATADIR%%/nodes/CSG/clearance.node +%%DATADIR%%/nodes/CSG/copy.node +%%DATADIR%%/nodes/CSG/difference.node +%%DATADIR%%/nodes/CSG/hide.node +%%DATADIR%%/nodes/CSG/intersection.node +%%DATADIR%%/nodes/CSG/invert.node +%%DATADIR%%/nodes/CSG/morph.node +%%DATADIR%%/nodes/CSG/offset.node +%%DATADIR%%/nodes/CSG/shell.node +%%DATADIR%%/nodes/CSG/union.node +%%DATADIR%%/nodes/Color/set_color.node +%%DATADIR%%/nodes/Color/set_color_hsb.node +%%DATADIR%%/nodes/Deform/Shear/shear_cos_x_y.node +%%DATADIR%%/nodes/Deform/Shear/shear_cos_xy_z.node +%%DATADIR%%/nodes/Deform/Shear/shear_x_y.node +%%DATADIR%%/nodes/Deform/Shear/shear_xy_z.node +%%DATADIR%%/nodes/Deform/attract.node +%%DATADIR%%/nodes/Deform/cylinderwrap.node +%%DATADIR%%/nodes/Deform/repel.node +%%DATADIR%%/nodes/Deform/twist.node +%%DATADIR%%/nodes/Export/export_heightmap.node +%%DATADIR%%/nodes/Export/export_stl.node +%%DATADIR%%/nodes/Math/function_xy.node +%%DATADIR%%/nodes/Math/function_xyz.node +%%DATADIR%%/nodes/Math/map_xyz.node +%%DATADIR%%/nodes/Math/show_math_string.node +%%DATADIR%%/nodes/Reflect/reflect_x.node +%%DATADIR%%/nodes/Reflect/reflect_xy.node +%%DATADIR%%/nodes/Reflect/reflect_xz.node +%%DATADIR%%/nodes/Reflect/reflect_y.node +%%DATADIR%%/nodes/Reflect/reflect_yz.node +%%DATADIR%%/nodes/Reflect/reflect_z.node +%%DATADIR%%/nodes/Rotate/rotate_x.node +%%DATADIR%%/nodes/Rotate/rotate_y.node +%%DATADIR%%/nodes/Rotate/rotate_z.node +%%DATADIR%%/nodes/Scale/Taper/taper_x_y.node +%%DATADIR%%/nodes/Scale/Taper/taper_xy_z.node +%%DATADIR%%/nodes/Scale/scale_cos_x_y.node +%%DATADIR%%/nodes/Scale/scale_cos_xy_z.node +%%DATADIR%%/nodes/Scale/scale_x.node +%%DATADIR%%/nodes/Scale/scale_xy.node +%%DATADIR%%/nodes/Scale/scale_xyz.node +%%DATADIR%%/nodes/Scale/scale_y.node +%%DATADIR%%/nodes/Scale/scale_z.node +%%DATADIR%%/nodes/Scale/scale_z_r.node +%%DATADIR%%/nodes/Translate/origin_xy.node +%%DATADIR%%/nodes/Translate/origin_xyz.node +%%DATADIR%%/nodes/Translate/recenter.node +%%DATADIR%%/nodes/Translate/translate.node