diff --git a/graphics/partio/Makefile b/graphics/partio/Makefile index ed1f0548b1e4..f6a57ab8ed62 100644 --- a/graphics/partio/Makefile +++ b/graphics/partio/Makefile @@ -1,74 +1,78 @@ PORTNAME= partio -PORTVERSION= 1.19.0 +PORTVERSION= 1.19.2 DISTVERSIONPREFIX= v CATEGORIES= graphics math +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES= 73b02b28bf19b69756349441a24b97530cd9f06b.patch:-p1 \ + 47c81dbdc37e8dccedad9fd68c0edfc2dc8a73ab.patch:-p1 + MAINTAINER= danfe@FreeBSD.org COMMENT= C++ library for particle I/O and manipulation WWW= http://partio.us/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= swig:devel/swig USES= cmake compiler:c++14-lang gl python:run,test shebangfix xorg SHEBANG_FILES= src/tools/partedit.py src/tools/partinspect.py \ src/tools/partjson.py USE_GL= gl glu glut USE_LDCONFIG= yes USE_XORG= xi xmu USE_GITHUB= yes GH_ACCOUNT= wdas PORTDOCS= * PORTEXAMPLES= * OPTIONS_DEFINE= DOCS DOXYGEN EXAMPLES PYQT TEST PYQT_DESC= Install PyQt-based auxiliary tools # DOCS must be selected for PORTDOCS to work DOXYGEN_IMPLIES= DOCS DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_ALL_TARGET= all doc DOCS_BUILD_DEPENDS= doxygen:devel/doxygen PYQT_USES= pyqt:5 PYQT_USE= PYQT=pyqt5 PYQT_PLIST_FILES= bin/partedit bin/partinspect TEST_LIB_DEPENDS= libgtest.so:devel/googletest TEST_TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} TEST_CMAKE_ON= -DPARTIO_GTEST_ENABLED:BOOL=ON TEST_VARS= SHEBANG_FILES+="src/tests/testpartio.py \ src/tests/testpartjson.py" post-patch: @${REINPLACE_CMD} -e \ '/^project/s,${PORTNAME},& VERSION ${PORTVERSION}, ; \ s,/usr,${LOCALBASE},' ${WRKSRC}/CMakeLists.txt @${REINPLACE_CMD} -e 's,^from Qt,from PyQt5,' \ ${WRKSRC}/src/tools/partedit.py \ ${WRKSRC}/src/tools/partinspect.py post-patch-DOCS-off: @${REINPLACE_CMD} -e '/add_subdirectory(src\/doc)/d' \ ${WRKSRC}/CMakeLists.txt post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/src/doc && ${INSTALL_DATA} tutorial.txt partio.tex ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/src/data && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR} post-install-PYQT-off: cd ${STAGEDIR}${PREFIX} && ${RM} ${PYQT_PLIST_FILES} do-test-TEST-on: @cd ${TEST_WRKSRC} && ctest -C ${CMAKE_BUILD_TYPE} ${_MAKE_JOBS} .include diff --git a/graphics/partio/distinfo b/graphics/partio/distinfo index 643b18537308..5688814fa516 100644 --- a/graphics/partio/distinfo +++ b/graphics/partio/distinfo @@ -1,3 +1,7 @@ -TIMESTAMP = 1738104248 -SHA256 (wdas-partio-v1.19.0_GH0.tar.gz) = 128913266a88a0939aaa4bc951ae4d4da1c380408bcc0ea9e7f526556afeaad0 -SIZE (wdas-partio-v1.19.0_GH0.tar.gz) = 338754 +TIMESTAMP = 1740174738 +SHA256 (wdas-partio-v1.19.2_GH0.tar.gz) = b59fbc8e64561368f0e2f94ae2f3f2083babfc32ff7ae97e833ab15df4588ade +SIZE (wdas-partio-v1.19.2_GH0.tar.gz) = 338761 +SHA256 (73b02b28bf19b69756349441a24b97530cd9f06b.patch) = 7bd098f37c5d959c62455e5238f62655d9297e98ce55764f3273f164f2eb3bf5 +SIZE (73b02b28bf19b69756349441a24b97530cd9f06b.patch) = 1320 +SHA256 (47c81dbdc37e8dccedad9fd68c0edfc2dc8a73ab.patch) = f452b778f69d8834fd871d16ec38a93bff2039d87abb5db2e37074f693095c82 +SIZE (47c81dbdc37e8dccedad9fd68c0edfc2dc8a73ab.patch) = 2658 diff --git a/graphics/partio/files/patch-src_py_partio.i b/graphics/partio/files/patch-src_py_partio.i deleted file mode 100644 index d26257b1b007..000000000000 --- a/graphics/partio/files/patch-src_py_partio.i +++ /dev/null @@ -1,13 +0,0 @@ ---- src/py/partio.i.orig 2025-01-28 22:44:08 UTC -+++ src/py/partio.i -@@ -638,7 +638,9 @@ ParticlesDataMutable* cloneSchema(const ParticlesData& - - %feature("autodoc"); - %feature("docstring","Clone a particle set"); --ParticlesDataMutable* clone(const ParticlesData& other, bool particles, const std::map* attrNameMap=nullptr); -+ParticlesDataMutable* clone(const ParticlesData& other, bool particles=true, const std::map* attrNameMap=nullptr); -+ -+%typedef std::map _dummy; /* https://github.com/wdas/partio/issues/114 */ - - %feature("autodoc"); - %feature("docstring","Return string name of given attribute type"); diff --git a/graphics/partio/files/patch-src_tools_partedit.py b/graphics/partio/files/patch-src_tools_partedit.py deleted file mode 100644 index b4839ac8f8e8..000000000000 --- a/graphics/partio/files/patch-src_tools_partedit.py +++ /dev/null @@ -1,11 +0,0 @@ ---- src/tools/partedit.py.orig 2025-01-28 22:44:08 UTC -+++ src/tools/partedit.py -@@ -1080,7 +1080,7 @@ class PartEdit(QMainWindow): - def dataDirtiedSlot(self, dirty): - """ Sets the window title with or without "*" for dirty state """ - -- title = self.data.filename -+ title = self.data.filename or '' - if dirty: - title += '*' - self.setWindowTitle(title) diff --git a/graphics/partio/pkg-plist b/graphics/partio/pkg-plist index 426cd163c345..d83f0ddecb92 100644 --- a/graphics/partio/pkg-plist +++ b/graphics/partio/pkg-plist @@ -1,18 +1,18 @@ bin/partattr bin/partconvert bin/partinfo bin/partjson bin/partview include/Partio.h include/PartioAttribute.h include/PartioIterator.h include/PartioVec3.h lib/libpartio.so lib/libpartio.so.1 -lib/libpartio.so.1.19.0 +lib/libpartio.so.1.19.2 %%PYTHON_SITELIBDIR%%/_partio.so %%PYTHON_SITELIBDIR%%/partedit.py %%PYTHON_SITELIBDIR%%/partinspect.py %%PYTHON_SITELIBDIR%%/partio.py %%PYTHON_SITELIBDIR%%/partjson.py share/swig/partio.i