diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2014-06-20 12:54:29 +0000 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2014-06-20 12:54:29 +0000 |
commit | 26b977f43a1fefd413792292c5f43338745e0803 (patch) | |
tree | c6a87061cbf91b0b79c4cb5abbc3b4173eeb73de /biology | |
parent | support stage (diff) |
Fix shebang line in Perl and Python scripts.
PR: 191146
Submitted by: mzaki@m.u-tokyo.ac.jp (maintainer)
Notes
Notes:
svn path=/head/; revision=358567
Diffstat (limited to 'biology')
-rw-r--r-- | biology/velvet/Makefile | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/biology/velvet/Makefile b/biology/velvet/Makefile index d52a55ba354d..f598e3deb1db 100644 --- a/biology/velvet/Makefile +++ b/biology/velvet/Makefile @@ -3,6 +3,7 @@ PORTNAME= velvet PORTVERSION= 1.2.10 +PORTREVISION= 1 CATEGORIES= biology MASTER_SITES= http://www.ebi.ac.uk/~zerbino/velvet/ DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -17,11 +18,11 @@ MAXKMERLENGTH?= 31 VELVET_CATEGORIES?= 2 MAKE_ENV+= MAXKMERLENGTH=${MAXKMERLENGTH} CATEGORIES=${VELVET_CATEGORIES} -USES= perl5 gmake +USES= perl5 gmake shebangfix USE_PERL5= run BINARIES= velvetg velveth -SCRIPTS= contrib/shuffleSequences_fasta/shuffleSequences_fasta.pl \ +SHEBANG_FILES= contrib/shuffleSequences_fasta/shuffleSequences_fasta.pl \ contrib/shuffleSequences_fasta/shuffleSequences_fastq.pl \ contrib/VelvetOptimiser-2.2.4/VelvetOptimiser.pl \ contrib/afg_handling/asmbly_splitter.pl \ @@ -44,10 +45,10 @@ PERLMOD_FILES= contrib/VelvetOptimiser-2.2.4/VelvetOpt/Assembly.pm \ .if !defined(WITHOUT_PYTHON) USE_PYTHON= yes -SCRIPTS+= contrib/AssemblyAssembler1.3/AssemblyAssembler1.3.py +SHEBANG_FILES+= contrib/AssemblyAssembler1.3/AssemblyAssembler1.3.py .endif -.for f in ${BINARIES} ${SCRIPTS} +.for f in ${BINARIES} ${SHEBANG_FILES} PLIST_FILES+= bin/${f:T} .endfor .for d in ${PERLMOD_DIRS} @@ -63,19 +64,11 @@ OPTIONS_DEFINE= DOCS .include <bsd.port.options.mk> -post-patch: -.for f in ${SCRIPTS} - ${REINPLACE_CMD} -e s,#!/usr/bin/perl,${PERL}, ${WRKSRC}/${f} -.endfor -.if !defined(WITHOUT_PYTHON) - ${REINPLACE_CMD} -e s,#!/usr/bin/python,${PYTHON_CMD}, ${WRKSRC}/contrib/AssemblyAssembler1.3/AssemblyAssembler1.3.py -.endif - do-install: .for f in ${BINARIES} ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin .endfor -.for f in ${SCRIPTS} +.for f in ${SHEBANG_FILES} ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin/${f:T} .endfor .for d in ${PERLMOD_DIRS} |