Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Dec 2013 16:17:47 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336552 - head/misc/cuecat
Message-ID:  <201312151617.rBFGHlRE080208@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Sun Dec 15 16:17:46 2013
New Revision: 336552
URL: http://svnweb.freebsd.org/changeset/ports/336552

Log:
  misc/cuecat: fix python usage
  
  Reported by:	exp-run (PR 184591)
  Approved by:	portmgr (blanket)

Modified:
  head/misc/cuecat/Makefile

Modified: head/misc/cuecat/Makefile
==============================================================================
--- head/misc/cuecat/Makefile	Sun Dec 15 16:13:46 2013	(r336551)
+++ head/misc/cuecat/Makefile	Sun Dec 15 16:17:46 2013	(r336552)
@@ -26,18 +26,18 @@ WRKSRC=		${WRKDIR}/cuecat
 NO_STAGE=	yes
 pre-install:
 	@${MV} ${WRKSRC}/cuecat.py ${WRKSRC}/cuecat.py-orig
-	@${SED} 's;/usr/opt;${PREFIX};' ${WRKSRC}/cuecat.py-orig >${WRKSRC}/cuecat.py
+	@${SED} 's;/usr/opt/bin/python;${PYTHON_CMD};' ${WRKSRC}/cuecat.py-orig >${WRKSRC}/cuecat.py
 	@${MV} ${WRKSRC}/barcode.py ${WRKSRC}/barcode.py-orig
-	@${SED} 's;/usr/opt;${PREFIX};' ${WRKSRC}/barcode.py-orig >${WRKSRC}/barcode.py
+	@${SED} 's;/usr/opt/bin/python;${PYTHON_CMD};' ${WRKSRC}/barcode.py-orig >${WRKSRC}/barcode.py
 .if !defined(WITHOUT_X11)
 	@${MV} ${WRKSRC}/xcuecat.py ${WRKSRC}/xcuecat.py-orig
-	@${SED} 's;/usr/opt;${PREFIX};' ${WRKSRC}/xcuecat.py-orig >${WRKSRC}/xcuecat.py
+	@${SED} 's;/usr/opt/bin/python;${PYTHON_CMD};' ${WRKSRC}/xcuecat.py-orig >${WRKSRC}/xcuecat.py
 .endif
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/cuecat.py ${PYTHON_SITELIBDIR}
 	${INSTALL_SCRIPT} ${WRKSRC}/barcode.py ${PYTHON_SITELIBDIR}
-	python -O -c "import barcode, cuecat"
+	${PYTHON_CMD} -O -c "import barcode, cuecat"
 	${LN} -sf ${PYTHON_SITELIBDIR}/cuecat.py ${PREFIX}/bin/cuecat
 	${INSTALL_MAN} ${WRKSRC}/cuecat.1 ${PREFIX}/man/man1
 .if !defined(WITHOUT_X11)



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