From owner-svn-ports-all@FreeBSD.ORG Wed Sep 19 21:31:29 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A2061065677; Wed, 19 Sep 2012 21:31:29 +0000 (UTC) (envelope-from nivit@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7AED28FC0A; Wed, 19 Sep 2012 21:31:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8JLVTI8074775; Wed, 19 Sep 2012 21:31:29 GMT (envelope-from nivit@svn.freebsd.org) Received: (from nivit@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8JLVTC7074770; Wed, 19 Sep 2012 21:31:29 GMT (envelope-from nivit@svn.freebsd.org) Message-Id: <201209192131.q8JLVTC7074770@svn.freebsd.org> From: Nicola Vitale Date: Wed, 19 Sep 2012 21:31:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304548 - head/graphics/py-stl X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2012 21:31:29 -0000 Author: nivit Date: Wed Sep 19 21:31:28 2012 New Revision: 304548 URL: http://svn.freebsd.org/changeset/ports/304548 Log: - Update to 3.1 - Adopt new Makefile header - Add LICENSE (BSD) - Use PYDISTUTILS_EGGINFO - Add option PYCAIRO (default off) - Remove unnecessary whitespaces, fix a typo and update text in pkg-descr BuildLog: http://goo.gl/Z1ymo PR: ports/168683 Submitted by: Roland Smith (maintainer) Modified: head/graphics/py-stl/Makefile (contents, props changed) head/graphics/py-stl/distinfo (contents, props changed) head/graphics/py-stl/pkg-descr (contents, props changed) head/graphics/py-stl/pkg-plist (contents, props changed) Modified: head/graphics/py-stl/Makefile ============================================================================== --- head/graphics/py-stl/Makefile Wed Sep 19 20:56:28 2012 (r304547) +++ head/graphics/py-stl/Makefile Wed Sep 19 21:31:28 2012 (r304548) @@ -1,41 +1,55 @@ -# New ports collection makefile for: py-stl -# Date created: 28 Dec 2011 -# Whom: rsmith@xs4all.nl -# +# Created by: Roland Smith # $FreeBSD$ PORTNAME= stl -PORTVERSION= 3.0 +PORTVERSION= 3.1 CATEGORIES= graphics python MASTER_SITES= http://rsmith.home.xs4all.nl/software/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= py-${PORTNAME}-${GITVER} +DISTNAME= py-${PORTNAME}-${PORTVERSION} MAINTAINER= rsmith@xs4all.nl COMMENT= Converts STL models to POV-Ray meshes or PostScript/PDF images -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}reportlab2>2:${PORTSDIR}/print/py-reportlab2 +LICENSE= BSD -GITVER= 31a5b12 +# bypass infrastructure bug +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options USE_ZIP= YES USE_PYTHON= 2.5+ USE_PYDISTUTILS= YES +PYDISTUTILS_EGGINFO= py_stl-${PORTVERSION}-py${PYTHON_VER}.egg-info CONFLICTS= stl2pov-[0-9]* -MAN1= stl2ps.1 stlinfo.1 stl2pdf.1 +MAN1= stl2ps.1 stlinfo.1 stl2pov.1 + +OPTIONS_DEFINE= PYCAIRO +PYCAIRO_DESC= Use (py)Cairo to enable stl2pdf + +.include + +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: - @${INSTALL_MAN} ${WRKSRC}/stl2ps.1 ${MANPREFIX}/man/man1 - @${INSTALL_MAN} ${WRKSRC}/stlinfo.1 ${MANPREFIX}/man/man1 - @${INSTALL_MAN} ${WRKSRC}/stl2pdf.1 ${MANPREFIX}/man/man1 - @${MV} ${PREFIX}/bin/stl2ps.py ${PREFIX}/bin/stl2ps - @${MV} ${PREFIX}/bin/stl2pov.py ${PREFIX}/bin/stl2pov - @${MV} ${PREFIX}/bin/stlinfo.py ${PREFIX}/bin/stlinfo - @${MV} ${PREFIX}/bin/stl2pdf.py ${PREFIX}/bin/stl2pdf - @${MV} ${PYTHON_SITELIBDIR}/py_stl-${GITVER}-py${PYTHON_VER}.egg-info ${PYTHON_SITELIBDIR}/${PYDISTUTILS_EGGINFO} +.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} +.endfor .include Modified: head/graphics/py-stl/distinfo ============================================================================== --- head/graphics/py-stl/distinfo Wed Sep 19 20:56:28 2012 (r304547) +++ head/graphics/py-stl/distinfo Wed Sep 19 21:31:28 2012 (r304548) @@ -1,2 +1,2 @@ -SHA256 (py-stl-31a5b12.zip) = 117bd90aeea8aea6febe8b154b5ee9590cf0cec9a129023db31c122d7f595269 -SIZE (py-stl-31a5b12.zip) = 93478 +SHA256 (py-stl-3.1.zip) = d5a2eccbd627d05b28d3b6d619202d3a55b4d94dbf21a63b68109688ebc8e929 +SIZE (py-stl-3.1.zip) = 115488 Modified: head/graphics/py-stl/pkg-descr ============================================================================== --- head/graphics/py-stl/pkg-descr Wed Sep 19 20:56:28 2012 (r304547) +++ head/graphics/py-stl/pkg-descr Wed Sep 19 21:31:28 2012 (r304548) @@ -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; +following 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 print/py-reportlab2 +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. +text format. WWW: http://rsmith.home.xs4all.nl/software/index.html Modified: head/graphics/py-stl/pkg-plist ============================================================================== --- head/graphics/py-stl/pkg-plist Wed Sep 19 20:56:28 2012 (r304547) +++ head/graphics/py-stl/pkg-plist Wed Sep 19 21:31:28 2012 (r304548) @@ -4,7 +4,7 @@ %%PYTHON_SITELIBDIR%%/xform.py %%PYTHON_SITELIBDIR%%/xform.pyc %%PYTHON_SITELIBDIR%%/xform.pyo -bin/stl2pdf +%%STL2PDF%%bin/stl2pdf bin/stl2pov bin/stl2ps bin/stlinfo