svn commit: r321387 - head/science/mayavi

Boris Samorodov bsam at FreeBSD.org
Thu Jun 20 14:05:25 UTC 2013


Author: bsam
Date: Thu Jun 20 14:05:24 2013
New Revision: 321387
URL: http://svnweb.freebsd.org/changeset/ports/321387

Log:
  . NOPORTDOCS -> PORT_OPTIONS:MDOCS;
  . use PORTDOCS and PORTEXAMPLES at Makefile (trim pkg-plist);
  . introduce option EXAMPLES;
  . mute mkdir command;
  . remove an article from COMMENT.

Modified:
  head/science/mayavi/Makefile
  head/science/mayavi/pkg-plist

Modified: head/science/mayavi/Makefile
==============================================================================
--- head/science/mayavi/Makefile	Thu Jun 20 13:59:24 2013	(r321386)
+++ head/science/mayavi/Makefile	Thu Jun 20 14:05:24 2013	(r321387)
@@ -9,7 +9,7 @@ MASTER_SITES=	SF
 DISTNAME=	MayaVi-${PORTVERSION}
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A scientific data visualizer
+COMMENT=	Scientific data visualizer
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
 RUN_DEPENDS=	${PYTHON_SITELIBDIR}/vtk.pth:${PORTSDIR}/math/vtk-python \
@@ -20,10 +20,19 @@ USE_PYDISTUTILS=	yes
 PYDISTUTILS_PKGNAME=	MayaVi
 CPIO_ARGS=	--quiet -pdum -R
 
+PORTDOCS=	*
+PORTEXAMPLES=	*
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
+
 post-install:
-	${MKDIR} ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/*.* ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
+.endif
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	(cd ${WRKSRC}/doc && ${FIND} * | ${CPIO} ${CPIO_ARGS} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR})
 .endif

Modified: head/science/mayavi/pkg-plist
==============================================================================
--- head/science/mayavi/pkg-plist	Thu Jun 20 13:59:24 2013	(r321386)
+++ head/science/mayavi/pkg-plist	Thu Jun 20 14:05:24 2013	(r321387)
@@ -243,42 +243,6 @@ bin/vtk_doc.py
 %%PYTHON_SITELIBDIR%%/vtkPipeline/vtkPipeline.py
 %%PYTHON_SITELIBDIR%%/vtkPipeline/vtkPipeline.pyc
 %%PYTHON_SITELIBDIR%%/vtkPipeline/vtkPipeline.pyo
-%%PORTDOCS%%%%DOCSDIR%%/CREDITS.txt
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
-%%PORTDOCS%%%%DOCSDIR%%/NEWS.txt
-%%PORTDOCS%%%%DOCSDIR%%/README.txt
-%%PORTDOCS%%%%DOCSDIR%%/TODO.txt
-%%PORTDOCS%%%%DOCSDIR%%/guide/figures/basic_anot.jpg
-%%PORTDOCS%%%%DOCSDIR%%/guide/figures/cmd_line_sc_shot.jpg
-%%PORTDOCS%%%%DOCSDIR%%/guide/figures/control_panel_anot.jpg
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch01.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch02.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch02s02.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch02s03.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch03.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch03s02.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch03s03.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch03s04.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch03s05.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch03s06.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch03s07.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch03s08.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch03s09.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch04.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch04s02.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch05.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/ch05s02.html
-%%PORTDOCS%%%%DOCSDIR%%/guide/index.html
-%%PORTDOCS%%%%DOCSDIR%%/install.html
-%%PORTDOCS%%%%DOCSDIR%%/test_vtk.py
-%%PORTDOCS%%%%DOCSDIR%%/vtk_doc.py
-%%EXAMPLESDIR%%/custom16.lut
-%%EXAMPLESDIR%%/heart.mv
-%%EXAMPLESDIR%%/heart.vtk
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/guide/figures
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/guide
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
- at dirrm %%EXAMPLESDIR%%
 @dirrm %%PYTHON_SITELIBDIR%%/vtkPipeline/Icons
 @dirrm %%PYTHON_SITELIBDIR%%/vtkPipeline
 @dirrm %%PYTHON_SITELIBDIR%%/mayavi/tools


More information about the svn-ports-all mailing list