Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2014 22:08:01 +0000 (UTC)
From:      Koop Mast <kwm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r351368 - head/graphics/py3-cairo
Message-ID:  <201404152208.s3FM81JN059170@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kwm
Date: Tue Apr 15 22:08:01 2014
New Revision: 351368
URL: http://svnweb.freebsd.org/changeset/ports/351368
QAT: https://qat.redports.org/buildarchive/r351368/

Log:
  Don't hardcode python version.
  
  Submitted by:	makc@

Modified:
  head/graphics/py3-cairo/Makefile
  head/graphics/py3-cairo/pkg-plist

Modified: head/graphics/py3-cairo/Makefile
==============================================================================
--- head/graphics/py3-cairo/Makefile	Tue Apr 15 22:01:11 2014	(r351367)
+++ head/graphics/py3-cairo/Makefile	Tue Apr 15 22:08:01 2014	(r351368)
@@ -23,6 +23,8 @@ python_OLD_CMD?=	/usr/bin/env python
 python_CMD?=		${LOCALBASE}/bin/python${PYTHON_VER}
 SHEBANG_FILES=		examples/*.py examples/*/*.py test/*.py
 
+PLIST_SUB+=	PYTVER=${PYTHON_VER:S/.//}
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|python %s|${PYTHON_CMD} %s|g' \
 		${WRKSRC}/test/examples_test.py

Modified: head/graphics/py3-cairo/pkg-plist
==============================================================================
--- head/graphics/py3-cairo/pkg-plist	Tue Apr 15 22:01:11 2014	(r351367)
+++ head/graphics/py3-cairo/pkg-plist	Tue Apr 15 22:08:01 2014	(r351368)
@@ -1,6 +1,6 @@
 include/pycairo/py3cairo.h
-%%PYTHON_SITELIBDIR%%/cairo/__pycache__/__init__.cpython-33.pyc
-%%PYTHON_SITELIBDIR%%/cairo/__pycache__/__init__.cpython-33.pyo
+%%PYTHON_SITELIBDIR%%/cairo/__pycache__/__init__.cpython-%%PYTVER%%.pyc
+%%PYTHON_SITELIBDIR%%/cairo/__pycache__/__init__.cpython-%%PYTVER%%.pyo
 %%PYTHON_SITELIBDIR%%/cairo/__init__.py
 %%PYTHON_SITELIBDIR%%/cairo/_cairo.so
 libdata/pkgconfig/py3cairo.pc



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