diff --git a/recipes/mosaic/image.jpeg b/recipes/mosaic-mojo/image.jpeg similarity index 100% rename from recipes/mosaic/image.jpeg rename to recipes/mosaic-mojo/image.jpeg diff --git a/recipes/mosaic-mojo/recipe.yaml b/recipes/mosaic-mojo/recipe.yaml new file mode 100644 index 00000000..0be98dd4 --- /dev/null +++ b/recipes/mosaic-mojo/recipe.yaml @@ -0,0 +1,66 @@ +# +# recipe.yaml +# mosaic +# +# Created by Christian Bator on 03/11/2025 +# +# Usage: rattler-build build --recipe rattler-build/recipe.yaml -c https://prefix.dev/max -c conda-forge +# + +context: + version: "0.1.0" + +package: + name: mosaic + version: ${{ version }} + +source: + - git: https://github.com/brainwave-sh/mosaic.git + rev: ce7f21897b0670e1e03b75a33fe4ed8d94dc8922 + +build: + number: 0 + script: build/build.sh + dynamic_linking: + missing_dso_allowlist: + - if: osx + then: + - /usr/lib/swift/libswift*.dylib +requirements: + build: + - clangxx>=22.1.0,<23 + host: + - mojo-compiler==0.26.1 + - if: osx + then: + - libcxx + run: + - if: osx + then: + - ${{ pin_compatible('libcxx') }} + +tests: + - script: | + for test_file in tests/test_*.mojo; do + mojo run ${test_file} || exit 1 + done + requirements: + run: + - mojo==0.26.1 + files: + source: + - tests/**.mojo + - tests/data/ + +about: + homepage: https://brainwave.sh/mosaic + license: Apache-2.0 + license_file: LICENSE + summary: An image processing library in Mojo + repository: https://github.com/brainwave-sh/mosaic + documentation: https://brainwave.sh/mosaic + +extra: + project_name: Mosaic + maintainers: + - christianbator diff --git a/recipes/mosaic/recipe.yaml b/recipes/mosaic/recipe.yaml deleted file mode 100644 index 2ae7b9ff..00000000 --- a/recipes/mosaic/recipe.yaml +++ /dev/null @@ -1,60 +0,0 @@ -# -# recipe.yaml -# mosaic -# -# Created by Christian Bator on 03/11/2025 -# -# Usage: rattler-build build --recipe recipe.yaml -c https://conda.modular.com/max -c conda-forge -# - -context: - version: "0.0.1" - -package: - name: mosaic - version: ${{ version }} - -source: - - git: https://github.com/christianbator/mosaic.git - rev: 6c22e6dad13636e390eeec6e40be99e0687e9536 - -build: - number: 4 - script: build/build.sh - dynamic_linking: - missing_dso_allowlist: - - if: osx - then: - - /usr/lib/swift/libswift*.dylib - - /usr/lib/libc++*.dylib - -requirements: - build: - - clang==20.1.4 - - lld==20.1.4 - host: - - max==25.4.0 - run: - - ${{ pin_compatible('max') }} - -tests: - - script: | - cd test - mojo test - files: - source: - - test/**.mojo - - test/data/ - -about: - homepage: https://mosaiclib.org - license: Apache-2.0 - license_file: LICENSE - summary: An open source computer vision library in Mojo - repository: https://github.com/christianbator/mosaic - documentation: https://mosaiclib.org/docs - -extra: - project_name: Mosaic - maintainers: - - christianbator