Skip to content

Commit dc3e657

Browse files
Add recipe for codebook-lsp
1 parent ed561f7 commit dc3e657

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
MACOSX_SDK_VERSION:
2+
- "11.0"

recipes/codebook-lsp/recipe.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
context:
2+
version: "0.3.14"
3+
4+
package:
5+
name: codebook-lsp
6+
version: ${{ version }}
7+
8+
source:
9+
url: https://github.com/blopker/codebook/archive/refs/tags/v${{ version }}.tar.gz
10+
sha256: ae213ee0085c61dfc3ea25737e7bd26b4d0a2b127f662e0c516dc6f57b158397
11+
12+
build:
13+
number: 0
14+
script:
15+
- if: unix
16+
then: |
17+
export CFLAGS="-D_BSD_SOURCE"
18+
cargo-bundle-licenses --format yaml --output ${SRC_DIR}/THIRDPARTY.yml
19+
cargo install --locked --path ./crates/codebook-lsp --root ${PREFIX}
20+
else: |
21+
cargo-bundle-licenses --format yaml --output %SRC_DIR%\THIRDPARTY.yml
22+
cargo install --locked --path .\crates\codebook-lsp --root %PREFIX%
23+
24+
requirements:
25+
build:
26+
- ${{ compiler('rust') }}
27+
- ${{ stdlib('c') }}
28+
- ${{ compiler('cxx') }}
29+
- cargo-bundle-licenses
30+
31+
tests:
32+
- script:
33+
- codebook-lsp --version
34+
35+
about:
36+
homepage: https://github.com/blopker/codebook
37+
license: MIT
38+
license_file:
39+
- LICENSE
40+
- THIRDPARTY.yml
41+
description: "Spell Checker for Code"
42+
summary: "Spell Checker for Code"
43+
44+
extra:
45+
recipe-maintainers:
46+
- VasanthakumarV

0 commit comments

Comments
 (0)