View | Details | Raw Unified | Return to bug 191103 | Differences between
and this patch

Collapse All | Expand All

(-)stltools/Makefile (-32 / +20 lines)
Lines 1-56 Link Here
1
# Created by: Roland Smith <rsmith@xs4all.nl>
1
# Created by: R.F. Smith <rsmith@xs4all.nl>
2
# $FreeBSD: head/graphics/py-stl/Makefile 347760 2014-03-10 14:49:26Z bapt $
2
# $FreeBSD$
3
3
4
PORTNAME=		stl
4
PORTNAME=		stltools
5
PORTVERSION=		3.1
5
PORTVERSION=		3.2
6
CATEGORIES=		graphics python
6
CATEGORIES=		graphics python
7
MASTER_SITES=		http://rsmith.home.xs4all.nl/software/
7
MASTER_SITES=		http://rsmith.home.xs4all.nl/files/
8
PKGNAMEPREFIX=		${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=		${PYTHON_PKGNAMEPREFIX}
9
DISTNAME=		py-${PORTNAME}-${PORTVERSION}
10
9
11
MAINTAINER=		rsmith@xs4all.nl
10
MAINTAINER=		rsmith@xs4all.nl
12
COMMENT=		Converts STL models to POV-Ray meshes or PostScript/PDF images
11
COMMENT=		Converts STL models to POV-Ray meshes or PostScript/PDF images
13
12
14
LICENSE=		BSD
13
LICENSE=		BSD2CLAUSE
15
14
16
# bypass infrastructure bug
15
RUN_DEPENDS=		${PYNUMPY}
17
OPTIONSFILE=		${PORT_DBDIR}/py-${PORTNAME}/options
18
16
19
USES=		zip
17
USES=			zip
20
USE_PYTHON=		yes
18
USE_PYTHON=		YES
19
PYTHON_VERSION=		python2.7
21
USE_PYDISTUTILS=	YES
20
USE_PYDISTUTILS=	YES
22
PYDISTUTILS_EGGINFO=	py_stl-${PORTVERSION}-py${PYTHON_VER}.egg-info
23
21
24
CONFLICTS=		stl2pov-[0-9]*
22
DOCS=			README.txt
25
23
EXAMPLES=		test/cube.stl test/cube_bin.stl
26
MAN1=			stl2ps.1 stlinfo.1 stl2pov.1
27
24
28
OPTIONS_DEFINE=		PYCAIRO
25
OPTIONS_DEFINE=		PYCAIRO
29
PYCAIRO_DESC=		Use (py)Cairo to enable stl2pdf
26
PYCAIRO_DESC=		Use (py)Cairo to enable stl2pdf to function.
30
27
31
NO_STAGE=	yes
32
.include <bsd.port.options.mk>
28
.include <bsd.port.options.mk>
33
29
34
STL_SCRIPTS=		stl2pov stl2ps stlinfo
35
36
.if ${PORT_OPTIONS:MPYCAIRO}
30
.if ${PORT_OPTIONS:MPYCAIRO}
37
RUN_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}cairo>1.8:${PORTSDIR}/graphics/py-cairo
31
RUN_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}cairo>1.8:${PORTSDIR}/graphics/py-cairo
38
MAN1+=			stl2pdf.1
39
PLIST_SUB=		STL2PDF=""
40
STL_SCRIPTS+=		stl2pdf
41
.else
42
PLIST_SUB=		STL2PDF="@comment "
43
.endif
32
.endif
44
33
45
NO_BUILD=		YES
46
47
post-install:
34
post-install:
48
.if empty(PORT_OPTIONS:MPYCAIRO)
35
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
49
	@${RM} -f ${PREFIX}/bin/stl2pdf.py
36
.for i in ${DOCS}
50
.endif
37
	@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
51
.for s in ${STL_SCRIPTS}
38
.endfor
52
	${INSTALL_MAN} ${WRKSRC}/${s}.1 ${MANPREFIX}/man/man1
39
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
53
	@${MV} ${PREFIX}/bin/${s}.py  ${PREFIX}/bin/${s}
40
.for i in ${EXAMPLES}
41
	@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR}
54
.endfor
42
.endfor
55
43
56
.include <bsd.port.mk>
44
.include <bsd.port.mk>
(-)stltools/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (py-stl-3.1.zip) = d5a2eccbd627d05b28d3b6d619202d3a55b4d94dbf21a63b68109688ebc8e929
1
SHA256 (stltools-3.2.zip) = 535322dd2b48f7d21c149f230aa8fffecbd15707958b0ee67438737dd73c0105
2
SIZE (py-stl-3.1.zip) = 115488
2
SIZE (stltools-3.2.zip) = 24266
(-)stltools/pkg-descr (-6 / +6 lines)
Lines 1-11 Link Here
1
The python modules stl.py and xform.py are for reading, creating and
1
The modules in the stltools package can read and write STL files, perform 3D
2
transforming STL (STereoLithography) files. These modules are used by the
2
coordinate transforms and projections. These modules are used by the following
3
following scripts:
3
provided scripts;
4
4
5
stl2pov: Converts the STL model to a mesh usable with the POV-ray raytracer.
5
stl2pov: Converts the STL model to a mesh usable with the POV-ray raytracer.
6
stl2ps:  Creates a view of the STL model in scalable PostScript.
6
stl2ps:  Creates a view of the STL model in scalable PostScript.
7
stl2pdf: Creates a view of the STL model as a PDF. Requires graphics/py-cairo
7
stl2pdf: Creates a view of the STL model as a PDF. Requires graphics/py-cairo.
8
sltinfo: Either displays some information about a STL file or prints it in
8
stlinfo: Either displays some information about a STL file or prints it in
9
text format.
9
         text format.
10
10
11
WWW: http://rsmith.home.xs4all.nl/software/py-stl-stl2pov.html
11
WWW: http://rsmith.home.xs4all.nl/software/py-stl-stl2pov.html
(-)stltools/pkg-plist (-7 / +30 lines)
Lines 1-10 Link Here
1
%%PYTHON_SITELIBDIR%%/stl.py
1
bin/stl2pdf
2
%%PYTHON_SITELIBDIR%%/stl.pyc
3
%%PYTHON_SITELIBDIR%%/stl.pyo
4
%%PYTHON_SITELIBDIR%%/xform.py
5
%%PYTHON_SITELIBDIR%%/xform.pyc
6
%%PYTHON_SITELIBDIR%%/xform.pyo
7
%%STL2PDF%%bin/stl2pdf
8
bin/stl2pov
2
bin/stl2pov
9
bin/stl2ps
3
bin/stl2ps
10
bin/stlinfo
4
bin/stlinfo
5
%%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info/PKG-INFO
6
%%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info/SOURCES.txt
7
%%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info/dependency_links.txt
8
%%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info/top_level.txt
9
%%PYTHON_SITELIBDIR%%/stltools/__init__.py
10
%%PYTHON_SITELIBDIR%%/stltools/__init__.pyc
11
%%PYTHON_SITELIBDIR%%/stltools/__init__.pyo
12
%%PYTHON_SITELIBDIR%%/stltools/bbox.py
13
%%PYTHON_SITELIBDIR%%/stltools/bbox.pyc
14
%%PYTHON_SITELIBDIR%%/stltools/bbox.pyo
15
%%PYTHON_SITELIBDIR%%/stltools/matrix.py
16
%%PYTHON_SITELIBDIR%%/stltools/matrix.pyc
17
%%PYTHON_SITELIBDIR%%/stltools/matrix.pyo
18
%%PYTHON_SITELIBDIR%%/stltools/stl.py
19
%%PYTHON_SITELIBDIR%%/stltools/stl.pyc
20
%%PYTHON_SITELIBDIR%%/stltools/stl.pyo
21
%%PYTHON_SITELIBDIR%%/stltools/utils.py
22
%%PYTHON_SITELIBDIR%%/stltools/utils.pyc
23
%%PYTHON_SITELIBDIR%%/stltools/utils.pyo
24
%%PYTHON_SITELIBDIR%%/stltools/vecops.py
25
%%PYTHON_SITELIBDIR%%/stltools/vecops.pyc
26
%%PYTHON_SITELIBDIR%%/stltools/vecops.pyo
27
%%PORTDOCS%%%%DOCSDIR%%/README.txt
28
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cube.stl
29
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cube_bin.stl
30
@dirrmtry %%PYTHON_SITELIBDIR%%/stltools
31
@dirrmtry %%PYTHON_SITELIBDIR%%/stltools-3.2-py2.7.egg-info
32
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
33
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%

Return to bug 191103