Skip to content

Commit 2674c22

Browse files
edganodpryan79
authored andcommitted
1st amap (#14502)
* 1st amap * fix patch * add GPL info * add license file * retry for http error * Remove extra license file * Update meta.yaml
1 parent 7a8d92f commit 2674c22

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

recipes/amap/build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
#
3+
# CONDA build script variables
4+
#
5+
# $PREFIX The install prefix
6+
# $PKG_NAME The name of the package
7+
# $PKG_VERSION The version of the package
8+
# $PKG_BUILDNUM The build number of the package
9+
#
10+
set -eu -o pipefail
11+
12+
cd align
13+
make
14+
15+
mkdir -p $PREFIX/bin
16+
cp amap $PREFIX/bin

recipes/amap/meta.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{% set version = "2.2" %}
2+
3+
package:
4+
name: amap
5+
version: {{ version }}
6+
7+
build:
8+
number: 0
9+
10+
source:
11+
url: https://github.com/mes5k/amap-align/archive/600fc29fb9d0e8a6abf797c173c7a416ab99c541.zip
12+
sha256: 57391561dfa0ec0e291a11f54177cfcf17baa47be065f0cc688e4bb98de792b4
13+
patches:
14+
- patch.file
15+
16+
requirements:
17+
build:
18+
- {{ compiler('cxx') }}
19+
20+
run:
21+
- blast
22+
23+
test:
24+
commands:
25+
- amap -gui
26+
27+
about:
28+
home: https://web.archive.org/web/20060902044446/http://bio.math.berkeley.edu/amap/
29+
license: GPL-2
30+
license_file: license/License.txt
31+
summary: AMAP is a multiple sequence alignment program based on sequence annealing.
32+
dev_url: https://github.com/mes5k/amap-align
33+
34+
extra:
35+
identifiers:
36+
- doi:10.1093/bioinformatics/btl311

recipes/amap/patch.file

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff -ruN amap_raw/align/Amap.cc amap_new/align/Amap.cc
2+
--- amap_raw/align/Amap.cc 2008-02-13 15:36:30.000000000 +0100
3+
+++ amap_new/align/Amap.cc 2019-04-17 23:32:47.000000000 +0200
4+
@@ -23,6 +23,8 @@
5+
#include <cstdlib>
6+
#include <cerrno>
7+
#include <iomanip>
8+
+#include <cstring> //BUG strcmp
9+
+#include <climits>
10+
11+
string parametersInputFilename = "";
12+
string parametersOutputFilename = "no training";
13+
diff -ruN amap_raw/align/Makefile amap_new/align/Makefile
14+
--- amap_raw/align/Makefile 2008-02-13 15:36:30.000000000 +0100
15+
+++ amap_new/align/Makefile 2019-04-17 23:32:49.000000000 +0200
16+
@@ -6,7 +6,7 @@
17+
# 1) Choose C++ compiler.
18+
################################################################################
19+
20+
-CXX = g++
21+
+# CXX = g++
22+
23+
################################################################################
24+
# 2) Set C++ flags.

0 commit comments

Comments
 (0)