Skip to content

Commit

Permalink
[ci skip] Merge PR 20084
Browse files Browse the repository at this point in the history
Merge PR #20084, commits were: 
 * perform a bit of cleanup
 * is this building anything?
 * correct the build script
 * run build.sh first
 * try building the GO programs
 * Update meta.yaml
 * Update meta.yaml
 * Entrez direct is not architecture independent.

Turns out Entrez direct is not architecture-independent. Some tools are written in go, for example xtract (the author may migrate even more)

#17783
  • Loading branch information
ialbert committed Feb 2, 2020
1 parent 2a98e9a commit ce37856
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 37 deletions.
17 changes: 16 additions & 1 deletion recipes/entrez-direct/build.sh
@@ -1,7 +1,22 @@
#!/bin/bash

mv * "$PREFIX/bin/"
go get -u github.com/fatih/color
go get -u github.com/fiam/gounidecode/unidecode
go get -u github.com/klauspost/cpuid
go get -u github.com/pbnjay/memory
go get -u github.com/surgebase/porter2
go get -u golang.org/x/text/runes
go get -u golang.org/x/text/transform
go get -u golang.org/x/text/unicode/norm

go build -o xtract xtract.go common.go
go build -o rchive rchive.go common.go

mkdir -p $PREFIX/bin
mv * $PREFIX/bin
mkdir -p "$PREFIX/home"
export HOME="$PREFIX/home"
sh ${PREFIX}/bin/setup.sh

# clean up
rm -rf $PREFIX/bin/src $PREFIX/bin/*.log $PREFIX/bin/*.go $PREFIX/bin/*.yaml $PREFIX/bin/*.sh
72 changes: 36 additions & 36 deletions recipes/entrez-direct/meta.yaml
Expand Up @@ -7,51 +7,51 @@ package:
version: {{ version }}

build:
noarch: generic
number: 1
number: 2

source:
url: ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/{{ version }}.{{ date }}/edirect.tar.gz
sha256: {{ sha256 }}
patches:
- xtract.patch
- xtract.patch

requirements:
build:
- {{ compiler('go') }}
host:
- perl
- perl-html-parser
- perl-html-tagset
- perl-html-tree
- perl-http-cookies
- perl-http-date
- perl-http-message
- perl-http-negotiate
- perl-io-socket-ssl
- perl-lwp-mediatypes
- perl-lwp-protocol-https
- perl-net-http
- perl-uri
- perl-www-robotrules
- perl-mozilla-ca
- perl-xml-simple

- perl
- perl-html-parser
- perl-html-tagset
- perl-html-tree
- perl-http-cookies
- perl-http-date
- perl-http-message
- perl-http-negotiate
- perl-io-socket-ssl
- perl-lwp-mediatypes
- perl-lwp-protocol-https
- perl-net-http
- perl-uri
- perl-www-robotrules
- perl-mozilla-ca
- perl-xml-simple
run:
- perl
- perl-html-parser
- perl-html-tagset
- perl-html-tree
- perl-http-cookies
- perl-http-date
- perl-http-message
- perl-http-negotiate
- perl-io-socket-ssl
- perl-lwp-mediatypes
- perl-lwp-protocol-https
- perl-net-http
- perl-uri
- perl-www-robotrules
- perl-mozilla-ca
- perl-xml-simple
- perl
- perl-html-parser
- perl-html-tagset
- perl-html-tree
- perl-http-cookies
- perl-http-date
- perl-http-message
- perl-http-negotiate
- perl-io-socket-ssl
- perl-lwp-mediatypes
- perl-lwp-protocol-https
- perl-net-http
- perl-uri
- perl-www-robotrules
- perl-mozilla-ca
- perl-xml-simple

test:
commands:
Expand Down

0 comments on commit ce37856

Please sign in to comment.