Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2019 07:13:53 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r505547 - branches/2019Q2/print/dot2tex
Message-ID:  <201907010713.x617DrPu064285@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Mon Jul  1 07:13:53 2019
New Revision: 505547
URL: https://svnweb.freebsd.org/changeset/ports/505547

Log:
  MFH: r505544 print/dot2tex: Fix incorrect Python version spec
  
  dot2tex supports Python 2 and 3. This change removes the unecessary version
  spec restriction to 2.7.
  
  While I'm here:
  
    - Add PKGNAMEPREFIX (unique package names per flavor)
    - Enable USE_PYTHON=concurrent, each package flavor installs scripts in
      common locations
    - Add TEST_DEPENDS/test target
    - Add python to CATEGORIES
    - Pet portlint (Make file sort/group order)
  
  PR:		237984
  Approved by:	portmgr (maintainer timeout: 1 month)
  
  Approved by:	ports-secteam (blanket(s): ports (& python) compliance)

Modified:
  branches/2019Q2/print/dot2tex/Makefile
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/print/dot2tex/Makefile
==============================================================================
--- branches/2019Q2/print/dot2tex/Makefile	Mon Jul  1 07:08:36 2019	(r505546)
+++ branches/2019Q2/print/dot2tex/Makefile	Mon Jul  1 07:13:53 2019	(r505547)
@@ -3,7 +3,9 @@
 
 PORTNAME=	dot2tex
 PORTVERSION=	2.9.0
-CATEGORIES=	print
+PORTREVISION=	1
+CATEGORIES=	print python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	tota@FreeBSD.org
 COMMENT=	Graphviz to LaTeX converter
@@ -13,11 +15,21 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyparsing>=1.4.8:devel/py-pyparsing@${PY_FLAVOR} \
 		dot:graphics/graphviz
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
 
-NO_ARCH=	yes
-USES=	python:2.7
-USE_PYTHON=	distutils autoplist
+USES=		python
 USE_GITHUB=	yes
+USE_PYTHON=	distutils autoplist concurrent
+
+# Enable this before running test target
+# bsd.tex.mk doesnt support :test (only) depends
+#USE_TEX=	latex
+
 GH_ACCOUNT=	kjellmf
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} -m nose
 
 .include <bsd.port.mk>



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