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

package: netcdf #39742

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 2 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
80 changes: 80 additions & 0 deletions netcdf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
package:
name: netcdf
version: 4.9.2
epoch: 0
description: Libraries for the Unidata network Common Data Format
copyright:
- license: BSD-3-Clause

environment:
contents:
packages:
- bash
- build-base
- busybox
- bzip2-dev
- cmake
- curl-dev
- hdf5-dev
- libaec-dev
- libxml2-dev
- m4
- samurai

pipeline:
- uses: git-checkout
with:
repository: https://github.com/Unidata/netcdf-c
tag: v${{package.version}}
expected-commit: 9328ba17cb53f13a63707547c94f4715243dafdf

- uses: patch
with:
patches: gcc14.patch
mesaglio marked this conversation as resolved.
Show resolved Hide resolved

- runs: |
mesaglio marked this conversation as resolved.
Show resolved Hide resolved
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=None \
-DENABLE_CDF5=$_enable_cdf5 \
-DENABLE_DAP_LONG_TESTS=ON \
-DENABLE_EXAMPLE_TESTS=ON \
-DENABLE_EXTRA_TESTS=ON \
-DENABLE_FAILING_TESTS=ON \
-DENABLE_FILTER_TESTING=ON \
-DENABLE_LARGE_FILE_TESTS=ON

cmake --build build

- runs: |
DESTDIR="${{targets.destdir}}" cmake --install build

- uses: strip

subpackages:
- name: netcdf-doc
description: "netcdf documentation"
pipeline:
- uses: split/manpages

- name: netcdf-dev
description: "netcdf development files"
pipeline:
- uses: split/dev

- name: netcdf-utils
description: "netcdf utils"
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin/
mv ${{targets.destdir}}/usr/bin/* "${{targets.subpkgdir}}"/usr/bin/

update:
enabled: true
github:
use-tag: true
identifier: Unidata/netcdf-c
strip-prefix: v
ignore-regex-patterns:
- ".*-rc"