freebsd-ports/biology/velvet/Makefile
Mathieu Arnold eee58d187e Change the way Perl modules are installed, update the default Perl to 5.18.
Before, we had:

  site_perl :           lib/perl5/site_perl/5.18
  site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
  perl_man3 :           lib/perl5/5.18/man/man3

Now we have:

  site_perl : lib/perl5/site_perl
  site_arch : lib/perl5/site_perl/mach/5.18
  perl_man3 : lib/perl5/site_perl/man/man3

Modules without any .so will be installed at the same place regardless of the
Perl version, minimizing the upgrade when the major Perl version is changed.
It uses a version dependent directory for modules with compiled bits.

As PERL_ARCH is no longer needed in plists, it has been removed from
PLIST_SUB.

The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now
always removed, as is perllocal.pod.

The old site_perl and site_perl/arch directories have been kept in the
default Perl @INC for all Perl ports, and will be phased out as these old
Perl versions expire.

PR:		194969
Differential Revision:	https://reviews.freebsd.org/D1019
Exp-run by:	antoine
Reviewed by:	perl@
Approved by:	portmgr
2014-11-26 13:08:24 +00:00

82 lines
2.5 KiB
Makefile

# Created by: Motomichi Matsuzaki <mzaki@m.u-tokyo.ac.jp>
# $FreeBSD$
PORTNAME= velvet
PORTVERSION= 1.2.10
PORTREVISION= 2
CATEGORIES= biology
MASTER_SITES= http://www.ebi.ac.uk/~zerbino/velvet/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= mzaki@m.u-tokyo.ac.jp
COMMENT= Sequence assembler for very short reads
ALL_TARGET= default
MAXKMERLENGTH?= 31
VELVET_CATEGORIES?= 2
MAKE_ENV+= MAXKMERLENGTH=${MAXKMERLENGTH} CATEGORIES=${VELVET_CATEGORIES}
USES= perl5 gmake shebangfix tar:tgz
USE_PERL5= run
BINARIES= velvetg velveth
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 \
contrib/afg_handling/snp_view.pl \
contrib/columbus_scripts/enlarge_exons.pl \
contrib/columbus_scripts/gff2fasta.pl \
contrib/columbus_scripts/merge_gtf_exons.pl \
contrib/estimate-exp_cov/velvet-estimate-exp_cov.pl \
contrib/extractContigReads/extractContigReads.pl \
contrib/fasta2agp/fasta2agp.pl \
contrib/observed-insert-length.pl/observed-insert-length.pl \
contrib/read_prepare/pe_read_prepare.0.1.pl \
contrib/select_paired/select_paired.pl \
contrib/show_repeats/show_repeats.pl
PERLMOD_DIRS= contrib/VelvetOptimiser-2.2.4/VelvetOpt
PERLMOD_FILES= contrib/VelvetOptimiser-2.2.4/VelvetOpt/Assembly.pm \
contrib/VelvetOptimiser-2.2.4/VelvetOpt/Utils.pm \
contrib/VelvetOptimiser-2.2.4/VelvetOpt/gwrap.pm \
contrib/VelvetOptimiser-2.2.4/VelvetOpt/hwrap.pm
.if !defined(WITHOUT_PYTHON)
USES+= python
SHEBANG_FILES+= contrib/AssemblyAssembler1.3/AssemblyAssembler1.3.py
.endif
.for f in ${BINARIES} ${SHEBANG_FILES}
PLIST_FILES+= bin/${f:T}
.endfor
.for d in ${PERLMOD_DIRS}
PLIST_DIRS+= %%SITE_PERL%%/${d:T}
.endfor
.for f in ${PERLMOD_FILES}
PLIST_FILES+= %%SITE_PERL%%/${f:H:T}/${f:T}
.endfor
PORTDOCS= ChangeLog Manual.pdf Columbus_manual.pdf
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
do-install:
.for f in ${BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
.for f in ${SHEBANG_FILES}
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin/${f:T}
.endfor
.for d in ${PERLMOD_DIRS}
${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${d:T}
.endfor
.for f in ${PERLMOD_FILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${f:H:T}/${f:T}
.endfor
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>