diff options
author | Andrej Zverev <az@FreeBSD.org> | 2013-07-26 07:33:41 +0000 |
---|---|---|
committer | Andrej Zverev <az@FreeBSD.org> | 2013-07-26 07:33:41 +0000 |
commit | 19ae251b54b068aae1520c17885ecae948e723bc (patch) | |
tree | e2c71147def7c03ff268350288657b4e7692d180 /math | |
parent | Fix build with linker that does not copy the dt_need from libraries it links (diff) |
- switch simple inline replacement from perl to sed
and remove where is no need in this anymore.
- trim Makefile header
Approved by: bapt@ (portmrg@)
Notes
Notes:
svn path=/head/; revision=323702
Diffstat (limited to 'math')
-rw-r--r-- | math/algotutor/Makefile | 10 | ||||
-rw-r--r-- | math/naturalmath/Makefile | 11 | ||||
-rw-r--r-- | math/p5-Set-Window/Makefile | 8 |
3 files changed, 11 insertions, 18 deletions
diff --git a/math/algotutor/Makefile b/math/algotutor/Makefile index e304a089cb2e..0466d1d3ce3a 100644 --- a/math/algotutor/Makefile +++ b/math/algotutor/Makefile @@ -23,11 +23,13 @@ LIBFILES= BST.pm Board.pm Collection.pm Configurable.pm DCEdge.pm \ RecCanvas.pm RecDialog.pm TreeNode.pm Vector.pm Vector2.pm \ Vector3.pm Vertex.pm basic.pl utilalgo +USES= shebangfix +SHEBANG_FILES= algotutor + post-patch: - ${REINPLACE_CMD} -e 's,#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/algotutor - ${PERL} -pi -e "s'!!PREFIX!!'${PREFIX}'g" ${WRKSRC}/algotutor - ${REINPLACE_CMD} -e 's,!!SITE_PERL!!,${SITE_PERL},' \ - ${WRKSRC}/algotutor + @${REINPLACE_CMD} -e 's,!!SITE_PERL!!,${SITE_PERL},' \ + -e 's|!!PREFIX!!|${PREFIX}|g' \ + ${WRKSRC}/algotutor do-install: ${MKDIR} ${SITE_PERL}/algotutor diff --git a/math/naturalmath/Makefile b/math/naturalmath/Makefile index 7215f21162f7..58d0c5e14b91 100644 --- a/math/naturalmath/Makefile +++ b/math/naturalmath/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: naturalmath -# Date created: 1 November 2001 -# Whom: Stephen Montgomery-Smith -# +# Created by: Stephen Montgomery-Smith # $FreeBSD$ -# PORTNAME= naturalmath PORTVERSION= 0.5 @@ -16,9 +12,8 @@ COMMENT= Script to turn intuitively written math into latex USE_PERL5= yes USE_TEX= latex:build dvipsk:build - -post-patch: - @${PERL} -pi -e 's,^#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/naturalmath +USES= shebangfix +SHEBANG_FILES= naturalmath do-build: (cd ${WRKSRC}; ./naturalmath tutor.nat; \ diff --git a/math/p5-Set-Window/Makefile b/math/p5-Set-Window/Makefile index da2b6cd66d48..77edd6b129e4 100644 --- a/math/p5-Set-Window/Makefile +++ b/math/p5-Set-Window/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: math/p5-Set-Window -# Date created: 03 January 2001 -# Whom: Anton Berezin <tobez@tobez.org> -# +# Created by: Anton Berezin <tobez@tobez.org> # $FreeBSD$ -# PORTNAME= Set-Window PORTVERSION= 1.01 @@ -19,6 +15,6 @@ PERL_CONFIGURE= yes MAN3= Set::Window.3 post-patch: - ${PERL} -pi -e '$$_="" if /use 5/;' ${WRKSRC}/Window.pm + @${REINPLACE_CMD} -i '' '/use 5/d' ${WRKSRC}/Window.pm .include <bsd.port.mk> |