Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Add baton 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith James committed Jan 22, 2021
1 parent 55dc403 commit 20d9740
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 0 deletions.
13 changes: 13 additions & 0 deletions red-recipes/baton/2.1.0/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

set -ex

n="$CPU_COUNT"

LD_LIBRARY_PATH=$PREFIX/lib ./configure --prefix="$PREFIX" \
CFLAGS="-I$PREFIX/include -I$PREFIX/include/irods" \
CPPFLAGS="-I$PREFIX/include -I$PREFIX/include/irods" \
LDFLAGS="-L$PREFIX/lib -L$PREFIX/lib/irods/externals"

make -j $n
make install prefix="$PREFIX"
102 changes: 102 additions & 0 deletions red-recipes/baton/2.1.0/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{% set version = "2.1.0" %}
{% set irods_version = "4.2.7" %}
{% set sha256 = "a3f359f6bb1793a67dac1bbad8bbccf3d7bbbd0f66544cf8e5dbfd26322a1911" %}

package:
name: baton-pkg
version: "{{ version }}"

about:
home: https://github.com/wtsi-npg/baton
license: GPL2
summary: Client programs and API for use with iRODS (Integrated Rule-Oriented Data System).

build:
number: 1

source:
url: https://github.com/wtsi-npg/baton/releases/download/{{ version }}/baton-{{ version }}.tar.gz
fn: baton-{{ version }}.tar.gz
sha256: {{ sha256 }}

patches:
- selfassign.patch

requirements:
build:
- {{ compiler("c") }}
- autoconf
- automake
- libtool
- make
- perl
- pkg-config
host:
- irods-dev =={{ irods_version }}
- irods-runtime =={{ irods_version }}
- libjansson-dev
- libssl-dev

outputs:
- name: baton
version: {{ version }}
requirements:
build:
- {{ compiler("c") }}
- autoconf
- automake
- libtool
- make
- perl
- pkg-config
host:
- irods-dev =={{ irods_version }}
- libjansson-dev
- libssl-dev
run:
- {{ pin_subpackage("libbaton", exact=True) }}
- irods-runtime =={{ irods_version }}
- libjansson
- libssl
files:
- bin/baton-*
test:
commands:
- baton-list --version

- name: libbaton
version: {{ version }}
requirements:
build:
- {{ compiler("c") }}
- autoconf
- automake
- libtool
- make
- perl
- pkg-config
host:
- irods-dev =={{ irods_version }}
- libjansson-dev
- libssl-dev
run:
- irods-runtime =={{ irods_version }}
- libjansson
- libssl
files:
- lib/libbaton.*
test:
commands:
- test -h ${PREFIX}/lib/libbaton.so

- name: libbaton-dev
version: {{ version }}
requirements:
run:
- {{ pin_subpackage("libbaton", exact=True) }}
files:
- include/baton
- lib/pkgconfig/baton.pc
test:
commands:
- test -f ${PREFIX}/include/baton/baton.h
17 changes: 17 additions & 0 deletions red-recipes/baton/2.1.0/selfassign.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/src/write.c b/src/write.c
index df58ab6..6ea847c 100644
--- a/src/write.c
+++ b/src/write.c
@@ -213,11 +213,10 @@ int create_collection(rcComm_t *conn, rodsPath_t *rods_path, int flags,
return error->code;
}

-int remove_data_object(rcComm_t *conn, rodsPath_t *rods_path, int flags,
+int remove_data_object(rcComm_t *conn, rodsPath_t *rods_path, __attribute__((unused)) int flags,
baton_error_t *error) {
dataObjInp_t obj_rm_in;
int status;
- flags = flags;

init_baton_error(error);

0 comments on commit 20d9740

Please sign in to comment.