Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2014 16:09:01 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361692 - in head: . graphics/py-stl graphics/py-stltools
Message-ID:  <201407131609.s6DG915f049945@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sun Jul 13 16:09:00 2014
New Revision: 361692
URL: http://svnweb.freebsd.org/changeset/ports/361692
QAT: https://qat.redports.org/buildarchive/r361692/

Log:
  - Move graphics/py-stl to graphics/py-stltools (project has been renamed)
  - Update to upstream version 3.2
  - Stagify
  - Makefile cleanup / Pet portlint
  
  PR:		191103
  Submitted by:	Roland Smith <rsmith@xs4all.nl> (maintainer)
  Approved by:	mentors (implicit)

Added:
  head/graphics/py-stltools/
     - copied from r361658, head/graphics/py-stl/
Deleted:
  head/graphics/py-stl/
Modified:
  head/MOVED
  head/graphics/py-stltools/Makefile
  head/graphics/py-stltools/distinfo
  head/graphics/py-stltools/pkg-descr
  head/graphics/py-stltools/pkg-plist

Modified: head/MOVED
==============================================================================
--- head/MOVED	Sun Jul 13 15:58:45 2014	(r361691)
+++ head/MOVED	Sun Jul 13 16:09:00 2014	(r361692)
@@ -6250,3 +6250,4 @@ textproc/stardict-OxfordCollocation||201
 textproc/stardict-longman||2014-07-10|Removed due to possible copyright infringement
 textproc/stardict-oald||2014-07-10|Removed due to possible copyright infringement
 editors/nxml||2014-07-13|Needs recently removed emacs21 or emacs22
+graphics/py-stl|graphics/py-stltools|2014-07-13|Upstream project has been renamed

Modified: head/graphics/py-stltools/Makefile
==============================================================================
--- head/graphics/py-stl/Makefile	Sun Jul 13 07:46:31 2014	(r361658)
+++ head/graphics/py-stltools/Makefile	Sun Jul 13 16:09:00 2014	(r361692)
@@ -1,56 +1,44 @@
-# Created by: Roland Smith <rsmith@xs4all.nl>
+# Created by: R.F. Smith <rsmith@xs4all.nl>
 # $FreeBSD$
 
-PORTNAME=		stl
-PORTVERSION=		3.1
+PORTNAME=		stltools
+PORTVERSION=		3.2
 CATEGORIES=		graphics python
-MASTER_SITES=		http://rsmith.home.xs4all.nl/software/
+MASTER_SITES=		http://rsmith.home.xs4all.nl/files/
 PKGNAMEPREFIX=		${PYTHON_PKGNAMEPREFIX}
-DISTNAME=		py-${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=		rsmith@xs4all.nl
 COMMENT=		Converts STL models to POV-Ray meshes or PostScript/PDF images
 
-LICENSE=		BSD
+LICENSE=		BSD2CLAUSE
 
-# bypass infrastructure bug
-OPTIONSFILE=		${PORT_DBDIR}/py-${PORTNAME}/options
+RUN_DEPENDS=		${PYNUMPY}
 
-USES=		zip
-USE_PYTHON=		yes
+USES=			zip
+USE_PYTHON=		YES
+PYTHON_VERSION=		python2.7
 USE_PYDISTUTILS=	YES
-PYDISTUTILS_EGGINFO=	py_stl-${PORTVERSION}-py${PYTHON_VER}.egg-info
 
-CONFLICTS=		stl2pov-[0-9]*
-
-MAN1=			stl2ps.1 stlinfo.1 stl2pov.1
+DOCS=			README.txt
+EXAMPLES=		test/cube.stl test/cube_bin.stl
 
 OPTIONS_DEFINE=		PYCAIRO
-PYCAIRO_DESC=		Use (py)Cairo to enable stl2pdf
+PYCAIRO_DESC=		Use (py)Cairo to enable stl2pdf to function.
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
-STL_SCRIPTS=		stl2pov stl2ps stlinfo
-
 .if ${PORT_OPTIONS:MPYCAIRO}
 RUN_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}cairo>1.8:${PORTSDIR}/graphics/py-cairo
-MAN1+=			stl2pdf.1
-PLIST_SUB=		STL2PDF=""
-STL_SCRIPTS+=		stl2pdf
-.else
-PLIST_SUB=		STL2PDF="@comment "
 .endif
 
-NO_BUILD=		YES
-
 post-install:
-.if empty(PORT_OPTIONS:MPYCAIRO)
-	@${RM} -f ${PREFIX}/bin/stl2pdf.py
-.endif
-.for s in ${STL_SCRIPTS}
-	${INSTALL_MAN} ${WRKSRC}/${s}.1 ${MANPREFIX}/man/man1
-	@${MV} ${PREFIX}/bin/${s}.py  ${PREFIX}/bin/${s}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for i in ${DOCS}
+	@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
+.endfor
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+.for i in ${EXAMPLES}
+	@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR}
 .endfor
 
 .include <bsd.port.mk>

Modified: head/graphics/py-stltools/distinfo
==============================================================================
--- head/graphics/py-stl/distinfo	Sun Jul 13 07:46:31 2014	(r361658)
+++ head/graphics/py-stltools/distinfo	Sun Jul 13 16:09:00 2014	(r361692)
@@ -1,2 +1,2 @@
-SHA256 (py-stl-3.1.zip) = d5a2eccbd627d05b28d3b6d619202d3a55b4d94dbf21a63b68109688ebc8e929
-SIZE (py-stl-3.1.zip) = 115488
+SHA256 (stltools-3.2.zip) = 535322dd2b48f7d21c149f230aa8fffecbd15707958b0ee67438737dd73c0105
+SIZE (stltools-3.2.zip) = 24266

Modified: head/graphics/py-stltools/pkg-descr
==============================================================================
--- head/graphics/py-stl/pkg-descr	Sun Jul 13 07:46:31 2014	(r361658)
+++ head/graphics/py-stltools/pkg-descr	Sun Jul 13 16:09:00 2014	(r361692)
@@ -1,11 +1,11 @@
-The python modules stl.py and xform.py are for reading, creating and
-transforming STL (STereoLithography) files. These modules are used by the
-following scripts:
+The modules in the stltools package can read and write STL files, perform 3D
+coordinate transforms and projections. These modules are used by the following
+provided scripts;
 
 stl2pov: Converts the STL model to a mesh usable with the POV-ray raytracer.
 stl2ps:  Creates a view of the STL model in scalable PostScript.
-stl2pdf: Creates a view of the STL model as a PDF. Requires graphics/py-cairo
-sltinfo: Either displays some information about a STL file or prints it in
-text format.
+stl2pdf: Creates a view of the STL model as a PDF. Requires graphics/py-cairo.
+stlinfo: Either displays some information about a STL file or prints it in
+         text format.
 
 WWW: http://rsmith.home.xs4all.nl/software/py-stl-stl2pov.html

Modified: head/graphics/py-stltools/pkg-plist
==============================================================================
--- head/graphics/py-stl/pkg-plist	Sun Jul 13 07:46:31 2014	(r361658)
+++ head/graphics/py-stltools/pkg-plist	Sun Jul 13 16:09:00 2014	(r361692)
@@ -1,10 +1,33 @@
-%%PYTHON_SITELIBDIR%%/stl.py
-%%PYTHON_SITELIBDIR%%/stl.pyc
-%%PYTHON_SITELIBDIR%%/stl.pyo
-%%PYTHON_SITELIBDIR%%/xform.py
-%%PYTHON_SITELIBDIR%%/xform.pyc
-%%PYTHON_SITELIBDIR%%/xform.pyo
-%%STL2PDF%%bin/stl2pdf
+bin/stl2pdf
 bin/stl2pov
 bin/stl2ps
 bin/stlinfo
+%%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info/PKG-INFO
+%%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info/top_level.txt
+%%PYTHON_SITELIBDIR%%/stltools/__init__.py
+%%PYTHON_SITELIBDIR%%/stltools/__init__.pyc
+%%PYTHON_SITELIBDIR%%/stltools/__init__.pyo
+%%PYTHON_SITELIBDIR%%/stltools/bbox.py
+%%PYTHON_SITELIBDIR%%/stltools/bbox.pyc
+%%PYTHON_SITELIBDIR%%/stltools/bbox.pyo
+%%PYTHON_SITELIBDIR%%/stltools/matrix.py
+%%PYTHON_SITELIBDIR%%/stltools/matrix.pyc
+%%PYTHON_SITELIBDIR%%/stltools/matrix.pyo
+%%PYTHON_SITELIBDIR%%/stltools/stl.py
+%%PYTHON_SITELIBDIR%%/stltools/stl.pyc
+%%PYTHON_SITELIBDIR%%/stltools/stl.pyo
+%%PYTHON_SITELIBDIR%%/stltools/utils.py
+%%PYTHON_SITELIBDIR%%/stltools/utils.pyc
+%%PYTHON_SITELIBDIR%%/stltools/utils.pyo
+%%PYTHON_SITELIBDIR%%/stltools/vecops.py
+%%PYTHON_SITELIBDIR%%/stltools/vecops.pyc
+%%PYTHON_SITELIBDIR%%/stltools/vecops.pyo
+%%PORTDOCS%%%%DOCSDIR%%/README.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cube.stl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cube_bin.stl
+@dirrm %%PYTHON_SITELIBDIR%%/stltools
+@dirrm %%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%



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