svn commit: r440084 - head/math/asymptote

Tobias C. Berner tcberner at FreeBSD.org
Thu May 4 05:20:32 UTC 2017


Author: tcberner
Date: Thu May  4 05:20:31 2017
New Revision: 440084
URL: https://svnweb.freebsd.org/changeset/ports/440084

Log:
  Fix shebangs
  
  Reviewed by:		mat
  Approved by:		mat
  Differential Revision:	https://reviews.freebsd.org/D10527

Modified:
  head/math/asymptote/Makefile

Modified: head/math/asymptote/Makefile
==============================================================================
--- head/math/asymptote/Makefile	Thu May  4 05:19:56 2017	(r440083)
+++ head/math/asymptote/Makefile	Thu May  4 05:20:31 2017	(r440084)
@@ -3,7 +3,7 @@
 
 PORTNAME=	asymptote
 PORTVERSION=	2.37
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	math
 MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}
 DISTNAME=	${PORTNAME}-${PORTVERSION}.src
@@ -35,11 +35,14 @@ MAKE_JOBS_UNSAFE=	yes
 
 ONLY_FOR_ARCHS=	i386 amd64
 
-USES=		gettext-runtime ghostscript gmake ncurses perl5 python tar:tgz
+USES=		gettext-runtime ghostscript gmake ncurses perl5 python \
+		shebangfix tar:tgz
 USE_GL=	glut
 USE_PERL5=	build
 USE_TEX=	dvipsk formats
 
+SHEBANG_FILES=	GUI/*.py
+
 WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
 # Options
@@ -84,6 +87,8 @@ post-patch:
 	@${REINPLACE_CMD} 's/-lgc/-lgc-threaded/' ${WRKSRC}/configure
 	@${REINPLACE_CMD} 's,/usr/lib/libgs.so,${LOCALBASE}/lib/libgs.so,' \
 		${WRKSRC}/settings.cc
+# Fix the python interpreter in the generated file share/asymptote/GUI/xasyVersion.py:
+	@${REINPLACE_CMD} 's,/usr/bin/env python,${PYTHON_CMD},' ${WRKSRC}/Makefile.in
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/asy


More information about the svn-ports-all mailing list