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

Update strangepg to 0.8.16, add osx and aarch64 support #52951

Merged
merged 1 commit into from
Dec 24, 2024
Merged
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
9 changes: 6 additions & 3 deletions recipes/strangepg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

set -xe

export C_INCLUDE_PATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"
export LDLIBS="-ldl -lpthread"
OS=$(uname)
if [[ ${OS} == "Linux" ]]; then
export C_INCLUDE_PATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"
export LDLIBS="-ldl -lpthread"
fi

make CC="${CC}" PREFIX="${PREFIX}" -j ${CPU_COUNT} install
47 changes: 26 additions & 21 deletions recipes/strangepg/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,47 +1,49 @@
{% set name = "strangepg" %}
{% set version = "0.8.15" %}
{% set version = "0.8.16" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/qwx9/{{ name }}/archive/refs/tags/{{ version }}.tar.gz
sha256: 2393be1be300b0d9d3d252482277d9735b53fa7aa2156bcdad2215c3cc2ae093
sha256: bd331051a496aa93deaca170a77c7a69bf0459fb53a2e577a84ac17236ef894d

build:
number: 0
skip: True # [not linux]
run_exports:
- {{ pin_subpackage('strangepg', max_pin='x.x') }}

requirements:
build:
- {{ compiler('c') }}
- make
- {{ cdt('mesa-libgl-devel') }}
- {{ cdt('mesa-libegl-devel') }}
- {{ cdt('mesa-dri-drivers') }}
- {{ cdt('libdrm-devel') }}
- {{ cdt('libglvnd-glx') }} # [cdt_name != 'cos6']
- {{ cdt('mesa-libegl-devel') }} # [linux and aarch64]
- {{ cdt('mesa-libgl-devel') }} # [linux]
- {{ cdt('mesa-dri-drivers') }} # [linux]
- {{ cdt('libdrm-devel') }} # [linux]
- {{ cdt('libglvnd-glx') }} # [linux and cdt_name != 'cos6']
- {{ cdt('libglvnd-egl') }} # [linux and aarch64 and cdt_name != 'cos6']
host:
- xorg-libx11
- xorg-libxcursor
- xorg-libxi
- libegl-devel # [linux and aarch64]
- xorg-libx11 # [linux]
- xorg-libxcursor # [linux]
- xorg-libxi # [linux]
- xorg-xorgproto # [linux]
run:
- libxcb
- xorg-libx11
- xorg-libxau
- xorg-libxcursor
- xorg-libxdmcp
- xorg-libxext
- xorg-libxfixes
- xorg-libxi
- xorg-libxrandr
- libxcb # [linux]
- xorg-libx11 # [linux]
- xorg-libxau # [linux]
- xorg-libxcursor # [linux]
- xorg-libxdmcp # [linux]
- xorg-libxext # [linux]
- xorg-libxfixes # [linux]
- xorg-libxi # [linux]
- xorg-libxrandr # [linux]

test:
source_files:
- cmd/main.awk
- test/frag10.gfa

about:
home: https://github.com/qwx9/{{ name }}
Expand All @@ -52,6 +54,9 @@ about:
dev-url: https://github.com/qwx9/{{ name }}

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
recipe-maintainers:
- qwx9
container:
Expand Down
2 changes: 1 addition & 1 deletion recipes/strangepg/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# https://github.com/bioconda/bioconda-recipes/pull/29042#issuecomment-864465780

strangepg -h 2>/dev/null
strangepg /dev/mordor 2>/dev/null || [[ $? == 1 ]]
strangepg -D load test/frag10.gfa 2>/dev/null