Skip to content

Commit

Permalink
use semantic nomenclature for the TransAnnot versions (bioconda#49875)
Browse files Browse the repository at this point in the history
* use semantic nomenclature for the TransAnnot versions

* Use 3.0.0 as a version

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Use 3-e15e316 for the package url

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* clean up recipe

* clean up recipe

* clean up recipe

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: mencian <[email protected]>
  • Loading branch information
3 people authored Aug 9, 2024
1 parent 05053c9 commit 5bcc61c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 27 deletions.
28 changes: 21 additions & 7 deletions recipes/transannot/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash -e
#!/bin/bash -ex

set -xe
mkdir -p build && pushd build

export INCLUDES="-I${PREFIX}/include"
export LIBPATH="-L${PREFIX}/lib"
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
export CXXFLAGS="${CXXFLAGS} -O3 -I${PREFIX}/include"

case $(uname -m) in
aarch64)
Expand All @@ -11,8 +16,17 @@ case $(uname -m) in
;;
esac

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="${PREFIX}" -DHAVE_TESTS=0 -DHAVE_MPI=0 "${ARCH_OPTS}" -DVERSION_OVERRIDE="${PKG_VERSION}" ..
make -j${CPU_COUNT} ${VERBOSE_CM}
make install
if [ "$(uname)" == "Darwin" ]; then
export CMAKE_EXTRA="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER -Wno-dev"
else
export CMAKE_EXTRA="-Wno-dev"
fi

cmake -S .. -B . -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=RELEASE \
-DHAVE_TESTS=0 -DHAVE_MPI=0 "${ARCH_OPTS}" \
-DVERSION_OVERRIDE="${PKG_VERSION}" \
"${CMAKE_EXTRA}"

cmake --build . --target install -j ${CPU_COUNT} -v
popd
40 changes: 20 additions & 20 deletions recipes/transannot/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{% set version = "3-70b2a60" %}
{% set sha256 = "3b1d2f28362004378528755b8b4e0b8dc45b51cc60562816258bdf16d9cda08d" %}
{% set name = "transannot" %}
{% set version = "3.0.0" %}
{% set sha256 = "6835fc3cc77aafd273abc8f2b4d8213b251b199ff7dd5ae9fa7e1dd19579ae41" %}

package:
name: transannot
version: {{ version|replace("-", ".") }}
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/soedinglab/{{ name }}/archive/refs/tags/3-e15e316.tar.gz
sha256: {{ sha256 }}

build:
number: 1
number: 0
run_exports:
- {{ pin_subpackage('transannot', max_pin="x") }}

source:
url: https://github.com/soedinglab/transannot/archive/{{ version }}.tar.gz
sha256: {{ sha256 }}

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake
- make
host:
- llvm-openmp # [osx]
- libgomp # [linux]
host:
- perl
- gawk
- zlib
- bzip2
run:
- aria2
- wget
- gawk
- zlib
- bzip2
- perl

test:
commands:
- transannot > /dev/null
- "transannot > /dev/null"

about:
home: https://github.com/soedinglab/transannot
summary: "TransAnnot: a fast transcriptome annotation pipeline"
license: GPL-3.0-or-later
license_family: GPL
license_file: LICENSE.md
home: "https://github.com/soedinglab/transannot"
summary: "TransAnnot: a fast transcriptome annotation pipeline."
license: "GPL-3.0-or-later"
license_family: GPL3
license_file: "LICENSE.md"
dev_url: "https://github.com/soedinglab/transannot"
doc_url: "https://github.com/soedinglab/transannot/blob/master/README.md"

extra:
identifiers:
Expand Down

0 comments on commit 5bcc61c

Please sign in to comment.