Skip to content

Commit

Permalink
gffcompare: change build.sh to use prep_linux.sh (#12407)
Browse files Browse the repository at this point in the history
- this is solution suggested by the developer: gpertea/gclib#4
- removed gffcompare as developer suggested
- removed blacklist entry
  • Loading branch information
bernt-matthias authored and bgruening committed Jan 29, 2019
1 parent ac72d90 commit 89f140f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 126 deletions.
4 changes: 0 additions & 4 deletions build-fail-blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,6 @@ recipes/rdkit/2016.03.3
# broken pipe
recipes/antarna

#gff.h missing
recipes/gffcompare

# perl errors
recipes/snvphyl-tools

Expand Down Expand Up @@ -711,7 +708,6 @@ recipes/edlib
recipes/esimsa
recipes/fastuniq
recipes/fgap
recipes/gclib
recipes/funcannot
recipes/genepender
recipes/genometester4
Expand Down
32 changes: 0 additions & 32 deletions recipes/gclib/Makefile.osx.patch

This file was deleted.

32 changes: 0 additions & 32 deletions recipes/gclib/Makefile.patch

This file was deleted.

15 changes: 0 additions & 15 deletions recipes/gclib/build.sh

This file was deleted.

30 changes: 0 additions & 30 deletions recipes/gclib/meta.yaml

This file was deleted.

22 changes: 19 additions & 3 deletions recipes/gffcompare/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
#!/bin/bash

mkdir -p $PREFIX/bin
make
install gffcompare $PREFIX/bin/
# install gffcompare using the prep script of the
# distribution. note that this works for linux and mac
# since the prep_mac script just uses different names
# for the directories (all the magic happens in the
# Makefile)
cd gffcompare
./prep_linux.sh

# in order to find the directory where the binaries
# are installed the version is extracted as in the
# prep script
ver=$(fgrep '#define VERSION ' gffcompare.cpp)
ver=${ver#*\"}
ver=${ver%%\"*}
cd gffcompare-"$ver"

# copy binaries
mkdir -p "$PREFIX"/bin/
cp gffcompare "$PREFIX"/bin/
cp trmap "$PREFIX"/bin/
17 changes: 7 additions & 10 deletions recipes/gffcompare/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ build:
skip: False

source:
url: https://github.com/gpertea/gffcompare/archive/v{{ version }}.tar.gz
sha256: {{ sha256hash }}
patches:
- Makefile.patch # [not osx]
- Makefile.osx.patch # [osx]
- url: https://github.com/gpertea/gffcompare/archive/v{{ version }}.tar.gz
sha256: {{ sha256hash }}
folder: gffcompare
- url: https://github.com/gpertea/gclib/archive/v0.10.3.tar.gz
sha256: f5f9d4764afe83d5b9cc851c4dab352906505be7a6c03958c2af51c554118c18
folder: gclib

requirements:
build:
- {{ compiler('c') }}
host:
- gclib
run:
- gclib
- {{ compiler('cxx') }}

test:
commands:
Expand Down

0 comments on commit 89f140f

Please sign in to comment.