Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcf #2334

Merged
merged 20 commits into from
Feb 18, 2017
Merged

libcf #2334

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions recipes/libcf/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export CFLAGS="-Wall -g -m64 -pipe -O2 -fPIC ${CFLAGS}"
export CXXLAGS="${CFLAGS} ${CXXLAGS}"
export CPPFLAGS="-I${PREFIX}/include ${CPPFLAGS}"
export LDFLAGS="-L${PREFIX}/lib ${LDFLAGS}"
export LFLAGS="-fPIC ${LFLAGS}"


./configure --prefix=${PREFIX}
${PYTHON} setup.py install
if [ `uname` == Darwin ]; then install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python @rpath/libpython2.7.dylib ${SP_DIR}/pycf/*.so ; fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a Python 2 only package we need a skip statement below.

58 changes: 58 additions & 0 deletions recipes/libcf/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{% set name = "libcf" %}
{% set version = "1.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
fn: {{ name }}-{{ version }}-beta11.tar.gz
url: http://uvcdat.llnl.gov/cdat/resources/{{ name }}-{{ version }}-beta11.tar.gz
sha256: e40d3826ca2b47538b075f69f716798e255fe396fd3ae68e8b051be57a951bb4

build:
number: 0
skip: True # [win or py3k]

requirements:
build:
- toochain # [osx]
- python
- hdf5 1.8.17|1.8.17.*
- libnetcdf 4.4.*
- lapack >=3.4.2
- clapack >=3.2.1
- curl
- ossuuid
- gcc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need Fortran or libgmop for this package? If not you don't need the gcc package.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need Fortran in this package.

run:
- python
- hdf5 1.8.17|1.8.17.*
- libnetcdf 4.4.*
- lapack >=3.4.2
- clapack >=3.2.1
- curl
- ossuuid
- libgfortran

test:
imports:
- pycf

about:
home: http://www.unidata.ucar.edu/software/libcf/
license: 'UCAR/UNIDATA'
license_file: 'COPYRIGHT'
summary: 'LibCF library access data files in accordance with the CF Conventions.'
description: |
By using libcf, a data producer can produce files that conform to the CF
standards, without having to write netCDF code to create and decode all
the attributes that the CF convention uses to store meta-data. A data consumer
can use libcf to read any file which conforms to the CF conventions; the
file does not need to be created with libcf to be read by libcf
dev_url: https://sourceforge.net/projects/libcf/

extra:
recipe-maintainers:
- dnadeau4
- doutriaux1