Skip to content

Commit

Permalink
#29 build xsd from source
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Apr 16, 2024
1 parent 3499f12 commit 18e0792
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 10 deletions.
2 changes: 2 additions & 0 deletions infra/conda/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.pyc
build_artifacts
18 changes: 16 additions & 2 deletions infra/conda/xsd/recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#!/bin/bash

cp "$SRC_DIR/bin/xsd" "$PREFIX/bin/xsd"
cp -r "$SRC_DIR/libxsd/" "$PREFIX/include/"
make \
CC="$CC" \
CXX="$CXX" \
AR="$AR" \
RANLIB="$RANLIB" \
CFLAGS="$CFLAGS" \
CPPFLAGS="$CPPFLAGS" \
CXXFLAGS="$CXXFLAGS \
-std=c++14" \
LDFLAGS="$LDFLAGS" \
-j $CPU_COUNT \
verbose=1

make test

make install_prefix="$PREFIX" install
10 changes: 7 additions & 3 deletions infra/conda/xsd/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@ package:
version: {{ version }}

source:
fn: xsd-{{ version }}-x86_64-linux-gnu.tar.bz2
url: http://www.codesynthesis.com/download/xsd/{{ minor_version }}/linux-gnu/x86_64/xsd-{{ version }}-x86_64-linux-gnu.tar.bz2
sha256: d01060cbf4b3a1e462a5c5ad1a5a6773b541766dbbb98e50c9efb8f2a2dd55b7
fn: xsd-{{ version }}.tar.bz2
url: http://www.codesynthesis.com/download/xsd/{{ minor_version }}/xsd-{{ version }}+dep.tar.bz2
sha256: eca52a9c8f52cdbe2ae4e364e4a909503493a0d51ea388fc6c9734565a859817

build:
number: {{ build }}
string: {{ build_string }}

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- make
host:
- xerces-c
run:
Expand Down
10 changes: 5 additions & 5 deletions infra/conda/xsd/variants/linux_64_python3.8.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
c_compiler:
- gcc
c_compiler_version:
- "11"
- "9"
cdt_name:
- cos7
channel_sources:
Expand All @@ -12,13 +12,13 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- "11"
- "9"
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
fortran_compiler:
- gfortran
fortran_compiler_version:
- "11"
- "9"
pin_run_as_build:
python:
min_pin: x.x
Expand All @@ -27,8 +27,8 @@ python:
- 3.8.* *_cpython
target_platform:
- linux-64
xsd:
- 4.0.0
xercesc:
- ">=3"
zip_keys:
- - c_compiler_version
- cxx_compiler_version
Expand Down

0 comments on commit 18e0792

Please sign in to comment.