diff --git a/infra/conda/.gitignore b/infra/conda/.gitignore new file mode 100644 index 00000000..4d069c06 --- /dev/null +++ b/infra/conda/.gitignore @@ -0,0 +1,2 @@ +*.pyc +build_artifacts diff --git a/infra/conda/xsd/recipe/build.sh b/infra/conda/xsd/recipe/build.sh index 4e50d924..043278a3 100755 --- a/infra/conda/xsd/recipe/build.sh +++ b/infra/conda/xsd/recipe/build.sh @@ -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 diff --git a/infra/conda/xsd/recipe/meta.yaml b/infra/conda/xsd/recipe/meta.yaml index d02be8d5..61e93d04 100644 --- a/infra/conda/xsd/recipe/meta.yaml +++ b/infra/conda/xsd/recipe/meta.yaml @@ -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: diff --git a/infra/conda/xsd/variants/linux_64_python3.8.____cpython.yaml b/infra/conda/xsd/variants/linux_64_python3.8.____cpython.yaml index cac08662..3616ae9f 100755 --- a/infra/conda/xsd/variants/linux_64_python3.8.____cpython.yaml +++ b/infra/conda/xsd/variants/linux_64_python3.8.____cpython.yaml @@ -1,7 +1,7 @@ c_compiler: - gcc c_compiler_version: - - "11" + - "9" cdt_name: - cos7 channel_sources: @@ -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 @@ -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