Skip to content

Commit 71fd470

Browse files
BiocondaBotmencian
andauthored
Update mothur to 1.48.3 (#47909)
* Update mothur to 1.48.1 * add run_exports * Update mothur to 1.48.2 * Update meta.yaml * Update build.sh * Update mothur to 1.48.3 * Update build.sh * clean up recipe * Update build.sh * Update meta.yaml * Update build.sh * Update build.sh * Update meta.yaml * Update build.sh * clean up recipe * Update meta.yaml * Update build.sh * Update build.sh * Update meta.yaml * Update build.sh * Update meta.yaml * edit patches * Update meta.yaml * Update build.sh * edit patch * Update build.sh * Update build.sh * edit patch * Update build.sh * clean up recipe * clean up recipe * edit build.sh * add osx patch * Update 0003-uchime_makefile.patch --------- Co-authored-by: Joshua Zhuang <[email protected]> Co-authored-by: mencian <[email protected]>
1 parent 8662c55 commit 71fd470

File tree

6 files changed

+144
-139
lines changed

6 files changed

+144
-139
lines changed

recipes/mothur/makefile.patch renamed to recipes/mothur/0001-Makefile.patch

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
--- Makefile.org 2021-07-16 10:32:49.601483436 +0000
2-
+++ Makefile 2021-07-19 14:38:06.132941601 +0000
1+
diff --git a/Makefile b/Makefile
2+
index 8eb055f..d20d02c 100644
3+
--- a/Makefile
4+
+++ b/Makefile
35
@@ -20,21 +20,21 @@
46
# GSL_INCLUDE_DIR - location of GSL include files
57
# MOTHUR_FILES - The MOTHUR_FILES parameter is optional, but allows you to set a default location for mothur to look for input files it can't find. This is often used for reference files you want to store in one location separate from your data.
68

79
-INSTALL_DIR ?= "\"Enter_your_mothur_install_path_here\""
810
+INSTALL_DIR ?= "$(PREFIX)/bin"
911

10-
-OPTIMIZE ?= yes
11-
+OPTIMIZE ?= no
12+
OPTIMIZE ?= yes
1213
USEREADLINE ?= yes
1314
-USEBOOST ?= no
1415
-USEHDF5 ?= no
@@ -32,4 +33,35 @@
3233
+GSL_INCLUDE_DIR ?= "$(PREFIX)/include/gsl"
3334
MOTHUR_FILES="\"Enter_your_default_path_here\""
3435
MOTHUR_TOOLS="\"Enter_your_mothur_tools_path_here\""
35-
VERSION = "\"1.45.2\""
36+
VERSION = "\"1.48.3\""
37+
@@ -50,8 +50,8 @@ ifeq ($(strip $(OPTIMIZE)),yes)
38+
CXXFLAGS += -O3
39+
endif
40+
41+
-CXXFLAGS += -std=c++11 -pthread -DVERSION=${VERSION} -DRELEASE_DATE=${RELEASE_DATE}
42+
-LDFLAGS += -std=c++11 -pthread
43+
+CXXFLAGS += -I$(PREFIX)/include -std=c++14 -pthread -DVERSION=${VERSION} -DRELEASE_DATE=${RELEASE_DATE}
44+
+LDFLAGS += -L$(PREFIX)/lib -std=c++14 -pthread
45+
46+
ifeq ($(strip $(MOTHUR_FILES)),"\"Enter_your_default_path_here\"")
47+
else
48+
@@ -109,8 +109,8 @@ endif
49+
subdirs := $(sort $(dir $(filter-out $(skipUchime), $(wildcard source/*/))))
50+
subDirIncludes = $(patsubst %, -I %, $(subdirs))
51+
subDirLinking = $(patsubst %, -L%, $(subdirs))
52+
- CXXFLAGS += -I. $(subDirIncludes)
53+
- LDFLAGS += $(subDirLinking)
54+
+ CXXFLAGS += -I. -Isource $(subDirIncludes)
55+
+ LDFLAGS += -Lsource $(subDirLinking)
56+
57+
58+
#
59+
@@ -132,7 +132,7 @@ install : mothur
60+
ifeq ($(strip $(INSTALL_DIR)),"\"Enter_your_mothur_install_path_here\"")
61+
else
62+
mkdir -p ${INSTALL_DIR}
63+
- mv mothur ${INSTALL_DIR}/mothur
64+
+ install -v -m 0755 mothur ${INSTALL_DIR}
65+
endif
66+
67+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/Makefile b/Makefile
2+
index d20d02c..a805ca0 100644
3+
--- a/Makefile
4+
+++ b/Makefile
5+
@@ -109,8 +109,8 @@ endif
6+
subdirs := $(sort $(dir $(filter-out $(skipUchime), $(wildcard source/*/))))
7+
subDirIncludes = $(patsubst %, -I %, $(subdirs))
8+
subDirLinking = $(patsubst %, -L%, $(subdirs))
9+
- CXXFLAGS += -I. -Isource $(subDirIncludes)
10+
- LDFLAGS += -Lsource $(subDirLinking)
11+
+ CXXFLAGS += -I. -Isource/ $(subDirIncludes)
12+
+ LDFLAGS += -Lsource/ $(subDirLinking)
13+
14+
15+
#
16+
@@ -118,6 +118,8 @@ endif
17+
#
18+
OBJECTS=$(patsubst %.cpp,%.o,$(wildcard $(addsuffix *.cpp,$(subdirs))))
19+
OBJECTS+=$(patsubst %.c,%.o,$(wildcard $(addsuffix *.c,$(subdirs))))
20+
+ OBJECTS+=$(patsubst %.cpp,%.o,$(wildcard source/*.cpp))
21+
+ OBJECTS+=$(patsubst %.cpp,%.o,$(wildcard source/*.c))
22+
OBJECTS+=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
23+
OBJECTS+=$(patsubst %.c,%.o,$(wildcard *.c))
24+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
diff --git a/source/uchime_src/makefile b/source/uchime_src/makefile
2+
index 428babe..615936e 100644
3+
--- a/source/uchime_src/makefile
4+
+++ b/source/uchime_src/makefile
5+
@@ -1,5 +1,5 @@
6+
-CXXFLAGS = -O3 -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -DUCHIMES=1
7+
-LDFLAGS = -g
8+
+CXXFLAGS = -std=c++14 -O3 -I$(PREFIX)/include -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -DUCHIMES=1
9+
+LDFLAGS = -L$(PREFIX)/lib -g
10+
11+
#
12+
# Get the list of all .cpp files, rename to .o files
13+
@@ -14,7 +14,6 @@ uchime : $(OBJECTS)
14+
15+
install : uchime
16+
17+
-
18+
%.o : %.c %.h
19+
$(COMPILE.c) $(OUTPUT_OPTION) $<
20+
%.o : %.cpp %.h
21+
@@ -26,4 +25,4 @@ install : uchime
22+
23+
clean :
24+
@rm -f $(OBJECTS)
25+
-
26+
\ No newline at end of file
27+
+

recipes/mothur/build.sh

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1-
### Dumping preset flags because they break the build process on linux
2-
# Linker flags
3-
unset LDFLAGS
4-
export LDFLAGS="-L${PREFIX}/lib"
5-
# Compiler flags
6-
unset CXXFLAGS
7-
export CXXFLAGS="-I${PREFIX}/include -I."
1+
#!/bin/bash
82

3+
export CPLUS_INCLUDE_PATH="${PREFIX}/include"
4+
export LIBRARY_PATH="${PREFIX}/lib"
5+
export INCLUDES="-I${PREFIX}/include"
6+
export LIBPATH="-L${PREFIX}/lib"
7+
8+
if [[ "$(uname -s)" == "Darwin" ]]; then
9+
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib -headerpad_max_install_names"
10+
sed -i.bak 's/-std=c++14/-std=c++14 -stdlib=libc++/' Makefile
11+
sed -i.bak 's/-std=c++14/-std=c++14 -stdlib=libc++/' source/uchime_src/makefile
12+
else
13+
### Dumping preset flags because they break the build process on linux
14+
# Linker flags
15+
unset LDFLAGS
16+
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
17+
fi
18+
19+
sed -i.bak 's/OPTIMIZE ?= yes/OPTIMIZE ?= no/' Makefile
20+
rm -rf *.bak
921

1022
### Compiling mothur
1123
make clean
12-
make -j 4
24+
25+
make CXX="${CXX}" -j"${CPU_COUNT}"
26+
1327
make install
14-
cp -a uchime ${PREFIX}/bin
28+
install -v -m 0755 uchime "${PREFIX}/bin"
1529

1630
# Linking BLAST binaries to default location for mothur
17-
mkdir -pv "${PREFIX}"/bin/blast/bin/
18-
ln -s "${PREFIX}"/bin/{blastall,formatdb,megablast} "${PREFIX}"/bin/blast/bin/
31+
mkdir -pv "${PREFIX}/bin/blast/bin"
32+
ln -sf "${PREFIX}"/bin/{blastall,formatdb,megablast} "${PREFIX}/bin/blast/bin/"

recipes/mothur/build_failure.linux-64.yaml

Lines changed: 0 additions & 104 deletions
This file was deleted.

recipes/mothur/meta.yaml

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,70 @@
1-
{% set mothurVersion = "1.48.0" %}
2-
{% set mothurSha256 = "9494406abd8d14b821782ab9db811f045ded9424f28f01234ee6764d4e78941d" %}
1+
{% set name = "mothur" %}
2+
{% set mothurVersion = "1.48.3" %}
3+
{% set mothurSha256 = "70129ef4f7cae5840aece54a1f4097a5044b824c9e62b9fcc7460ad70d4de3c0" %}
34
{% set vsearchVersion = "2.15.2" %}
45

56
package:
6-
name: mothur
7+
name: {{ name }}
78
version: {{ mothurVersion }}
89

910
source:
1011
url: https://github.com/mothur/mothur/archive/refs/tags/v{{ mothurVersion }}.tar.gz
1112
sha256: {{ mothurSha256 }}
1213
patches:
13-
- makefile.patch
14+
- 0001-Makefile.patch
15+
- 0002-Makefile-osx.patch # [osx]
16+
- 0003-uchime_makefile.patch
1417

1518
build:
16-
number: 3
19+
number: 0
20+
run_exports:
21+
- {{ pin_subpackage('mothur', max_pin="x") }}
1722

1823
requirements:
1924
build:
20-
- make==4.2.1
25+
- make
2126
- {{ compiler('c') }}
2227
- {{ compiler('cxx') }}
2328
host:
24-
- blast-legacy
2529
- boost-cpp
2630
- gsl
2731
- hdf5
2832
- readline
29-
- sra-tools
30-
- vsearch ={{ vsearchVersion }}
33+
- sra-tools # [not arm64]
34+
- vsearch >=2.15.2
35+
#- vsearch ={{ vsearchVersion }} # [x86_64]
36+
#- vsearch >=2.28.1 # [aarch64 or arm64]
3137
- zlib
38+
- bzip2
3239
run:
33-
- blast-legacy
3440
- boost-cpp
3541
- gsl
3642
- hdf5
3743
- readline
38-
- sra-tools
39-
- vsearch ={{ vsearchVersion }}
40-
- zlib
44+
- sra-tools # [not arm64]
45+
- vsearch >=2.15.2
46+
#- vsearch ={{ vsearchVersion }} # [x86_64]
47+
#- vsearch >=2.28.1 # [aarch64 or arm64]
4148

4249
test:
4350
commands:
4451
- mothur "#help()"
4552
- uchime --version
4653

4754
about:
48-
home: http://www.mothur.org
49-
license: GPL-3.0
50-
license_family: GPL
51-
license_file: LICENSE.md
52-
summary: This project seeks to develop a single piece of open-source, expandable software to fill the bioinformatics needs of the microbial ecology community.
53-
dev_url: https://github.com/mothur/mothur
55+
home: "https://www.mothur.org"
56+
license: "GPL-3.0-or-later"
57+
license_family: GPL3
58+
license_file: "LICENSE.md"
59+
summary: "This project seeks to develop a single piece of open-source, expandable software to fill the bioinformatics needs of the microbial ecology community."
60+
dev_url: "https://github.com/mothur/mothur"
61+
doc_url: "https://mothur.org/wiki/mothur_manual"
5462

5563
extra:
5664
identifiers:
5765
- doi:10.1128/AEM.01541-09
5866
- usegalaxy-eu:mothur_get_label
67+
- biotools:mothur
68+
additional-platforms:
69+
- linux-aarch64
70+
- osx-arm64

0 commit comments

Comments
 (0)