biology/crux: stage, modernize, add license (BSD[23]CLAUSE), cleanups
PR: 193026 Submitted by: Ports Fury
This commit is contained in:
+27
-19
@@ -3,41 +3,49 @@
|
||||
|
||||
PORTNAME= crux
|
||||
PORTVERSION= 1.2.0
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= biology python
|
||||
MASTER_SITES= http://www.canonware.com/download/Crux/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Software toolkit for phylogenetic inference
|
||||
|
||||
USES= fortran gmake tar:bzip2
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-python=${PYTHON_CMD} --disable-mpi
|
||||
LICENSE= BSD2CLAUSE BSD3CLAUSE
|
||||
LICENSE_COMB= multi
|
||||
|
||||
USES= fortran gmake python tar:bzip2
|
||||
USE_CSTD= gnu99
|
||||
USE_PYTHON= yes
|
||||
|
||||
OPTIONS_DEFINE= SYS_LINALG
|
||||
SYS_LINALG_DESC= Enable system ATLAS/LAPACK
|
||||
|
||||
NO_STAGE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --datadir=${PREFIX}/lib \
|
||||
--with-python=${PYTHON_CMD} \
|
||||
--disable-mpi
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
OPTIONS_DEFINE= SYS_LINALG
|
||||
SYS_LINALG_DESC= Enable system ATLAS/LAPACK
|
||||
SYS_LINALG_LIB_DEPENDS= libatlas.so:${PORTSDIR}/math/atlas
|
||||
SYS_LINALG_CONFIGURE_ENABLE= sys-linalg
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MSYS_LINALG}
|
||||
CONFIGURE_ARGS+= --enable-sys-linalg
|
||||
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-sys-linalg
|
||||
.if ${OSVERSION} > 900000
|
||||
BROKEN_powerpc= Does not build on powerpc-9: error in pthreads
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "powerpc" && ${OSVERSION} > 900000
|
||||
BROKEN= Does not build on powerpc-9: error in pthreads
|
||||
.endif
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|\([[:blank:]]\)\($$(BINDIR)\)|\1$$(DESTDIR)\2| ; \
|
||||
s|\([[:blank:]]\)\($$(DATADIR)\)|\1$$(DESTDIR)\2| ; \
|
||||
s|\(,\)\(@site_packages@\)|\1$$(DESTDIR)\2| ; \
|
||||
s|\([[:blank:]]\)\(@site_packages@\)|\1$$(DESTDIR)\2|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
@${PREFIX}/bin/crux -b -q /dev/null
|
||||
@(${FIND} ${STAGEDIR}${PREFIX}/lib/Crux/lib -maxdepth 1 -type f \
|
||||
-name "*.so" | ${XARGS} ${STRIP_CMD})
|
||||
@(${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -maxdepth 3 -type f \
|
||||
-name "*.so" | ${XARGS} ${STRIP_CMD})
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $2 in
|
||||
POST-INSTALL)
|
||||
${PKG_PREFIX}/bin/crux -b -q /dev/null
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
+14
-13
@@ -1,18 +1,19 @@
|
||||
Crux is a software toolkit for molecular phylogenetic inference. It is
|
||||
Crux is a software toolkit for molecular phylogenetic inference. It is
|
||||
structured as a set of Python modules, which makes it possible to quickly
|
||||
develop Python scripts that perform unique, non-canned analyses. Features
|
||||
develop Python scripts that perform unique, non-canned analyses. Features
|
||||
include:
|
||||
* Tree log-likelihoods can be computed under a variety of models, including all
|
||||
specializations of GTR+I+G and mixture models. Tree likelihoods can be
|
||||
computed in parallel via pthreads.
|
||||
* Bayesian Markov chain Monte Carlo (MCMC) methods (with Metropolis coupling)
|
||||
can sample among non-nested models using reversible model jumps.
|
||||
* Crux is capable of simulating character data under any model its likelihood
|
||||
engine is capable of.
|
||||
* The neighbor joining (NJ) and relaxed neighbor joining (RNJ) implementations
|
||||
are among the fastest in existence.
|
||||
* Tree log-likelihoods can be computed under a variety of models,
|
||||
including all specializations of GTR+I+G and mixture models. Tree
|
||||
likelihoods can be computed in parallel via pthreads.
|
||||
* Bayesian Markov chain Monte Carlo (MCMC) methods (with Metropolis
|
||||
coupling) can sample among non-nested models using reversible model
|
||||
jumps.
|
||||
* Crux is capable of simulating character data under any model its
|
||||
likelihood engine is capable of.
|
||||
* The neighbor joining (NJ) and relaxed neighbor joining (RNJ)
|
||||
implementations are among the fastest in existence.
|
||||
* Pairwise distances between sequences can be computed based on percent
|
||||
identity, or using methods that correct for multiple hits (Jukes-Cantor,
|
||||
Kimura, and logDet).
|
||||
identity, or using methods that correct for multiple hits
|
||||
(Jukes-Cantor, Kimura, and logDet).
|
||||
|
||||
WWW: http://www.canonware.com/Crux/
|
||||
|
||||
+14
-14
@@ -1,12 +1,15 @@
|
||||
bin/crux
|
||||
bin/redpoint
|
||||
bin/MrRogers
|
||||
lib/Crux/lib/libCx.so
|
||||
lib/Crux/parsers/Fasta.log
|
||||
lib/Crux/parsers/Fasta.pickle
|
||||
%%PYTHON_SITELIBDIR%%/Crux/CTMatrix.so
|
||||
%%PYTHON_SITELIBDIR%%/Crux/Character.so
|
||||
%%PYTHON_SITELIBDIR%%/Crux/Config.py
|
||||
%%PYTHON_SITELIBDIR%%/Crux/Config.pyo
|
||||
@rmtry %%PYTHON_SITELIBDIR%%/Crux/Config.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Crux/Copying.py
|
||||
%%PYTHON_SITELIBDIR%%/Crux/Copying.pyo
|
||||
@rmtry %%PYTHON_SITELIBDIR%%/Crux/Copying.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Crux/DistMatrix/Nj.so
|
||||
%%PYTHON_SITELIBDIR%%/Crux/DistMatrix/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/Crux/DistMatrix/__init__.so
|
||||
@@ -51,22 +54,19 @@ bin/MrRogers
|
||||
%%PYTHON_SITELIBDIR%%/Crux/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/Crux/__init__.so
|
||||
%%PYTHON_SITELIBDIR%%/Parsing.so
|
||||
share/Crux/lib/libCx.so
|
||||
share/Crux/parsers/Fasta.log
|
||||
share/Crux/parsers/Fasta.pickle
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/DistMatrix
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/Tree
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/SFMT
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/Mc3
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/DistMatrix
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/Crux/DistMatrix
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/Crux/Tree
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/Crux
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/DistMatrix
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/Mc3
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/SFMT
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux/Tree
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include/Crux
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/include
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/Mc3
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/Tree
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/Mc3
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux/DistMatrix
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/Crux
|
||||
@dirrm share/Crux/lib
|
||||
@dirrm share/Crux/parsers
|
||||
@dirrm share/Crux
|
||||
@dirrm lib/Crux/parsers
|
||||
@dirrm lib/Crux/lib
|
||||
@dirrm lib/Crux
|
||||
|
||||
Reference in New Issue
Block a user