Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2020 07:30:31 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r556956 - head/graphics/partio
Message-ID:  <202012040730.0B47UVTh049360@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Fri Dec  4 07:30:31 2020
New Revision: 556956
URL: https://svnweb.freebsd.org/changeset/ports/556956

Log:
  - Update `graphics/partio' to version 0.13.2
  - Fix one of the PyQt-based auxiliary tools
  
  Reported by:	portscout

Modified:
  head/graphics/partio/Makefile
  head/graphics/partio/distinfo

Modified: head/graphics/partio/Makefile
==============================================================================
--- head/graphics/partio/Makefile	Fri Dec  4 07:22:11 2020	(r556955)
+++ head/graphics/partio/Makefile	Fri Dec  4 07:30:31 2020	(r556956)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	partio
-PORTVERSION=	1.13.0
+PORTVERSION=	1.13.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	graphics math
 
@@ -23,8 +23,12 @@ USE_XORG=	xi xmu
 USE_GITHUB=	yes
 GH_ACCOUNT=	wdas
 
-OPTIONS_DEFINE=		DOCS DOXYGEN EXAMPLES
+PORTDOCS=	*
+PORTEXAMPLES=	*
 
+OPTIONS_DEFINE=		DOCS DOXYGEN EXAMPLES PYQT
+PYQT_DESC=		Install PyQt-based auxiliary tools
+
 # DOCS must be selected for PORTDOCS to work
 DOXYGEN_IMPLIES=	DOCS
 DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen
@@ -32,12 +36,16 @@ DOXYGEN_ALL_TARGET=	all doc
 
 DOCS_BUILD_DEPENDS=	doxygen:devel/doxygen
 
-PORTDOCS=	*
-PORTEXAMPLES=	*
+PYQT_USES=		pyqt:5 python
+PYQT_USE=		PYQT=core,gui,widgets
+PYQT_PLIST_FILES=	bin/partinspect
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,OpenGL::OpenGL,$${OPENGL_LIBRARIES},' \
 		${WRKSRC}/src/tools/CMakeLists.txt
+	@${REINPLACE_CMD} -e 's,^from Qt,from PyQt5,' \
+		${WRKSRC}/src/tools/partinspect.py
+	@${REINPLACE_CMD} -e '/^install/d' ${WRKSRC}/src/tests/CMakeLists.txt
 
 post-patch-DOCS-off:
 	@${REINPLACE_CMD} -e '/add_subdirectory(src\/doc)/d' \
@@ -45,7 +53,7 @@ post-patch-DOCS-off:
 
 # Remove those files that don't yet work
 post-install:
-	${RM} ${STAGEDIR}${PREFIX}/bin/partedit ${STAGEDIR}${PREFIX}/bin/partinspect
+	${RM} ${STAGEDIR}${PREFIX}/bin/partedit
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
@@ -54,5 +62,8 @@ post-install-DOCS-on:
 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}
 
 .include <bsd.port.mk>

Modified: head/graphics/partio/distinfo
==============================================================================
--- head/graphics/partio/distinfo	Fri Dec  4 07:22:11 2020	(r556955)
+++ head/graphics/partio/distinfo	Fri Dec  4 07:30:31 2020	(r556956)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1598285132
-SHA256 (wdas-partio-v1.13.0_GH0.tar.gz) = a894f2edee2f6c5b186c7563e2f96bb778c71346667c78e0f67583233cd7f3d6
-SIZE (wdas-partio-v1.13.0_GH0.tar.gz) = 333259
+TIMESTAMP = 1600362217
+SHA256 (wdas-partio-v1.13.2_GH0.tar.gz) = c03cd4880eb9562d655b47fe2cf525856babafab884897c9b78f1817edfcca35
+SIZE (wdas-partio-v1.13.2_GH0.tar.gz) = 335102



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012040730.0B47UVTh049360>