Skip to content

Commit

Permalink
mcp2221 release 2.22299.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pmunts committed Apr 26, 2024
1 parent a9173c8 commit d4e418b
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions index/mc/mcp2221/mcp2221-2.22299.1.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name = "mcp2221"
description = "MCP2221 USB Raw HID I/O Expander Library for GNAT Ada"
version = "2.22299.1"
licenses = "BSD-1-Clause"
website = "https://github.com/pmunts/libsimpleio"

authors = ["Philip Munts"]
maintainers = ["Philip Munts <[email protected]>"]
maintainers-logins = ["pmunts"]

project-files = ["mcp2221.gpr"]

tags = ["embedded", "linux", "mcp2221", "adc", "dac", "gpio", "i2c", "motor",
"pwm", "sensor", "serial", "servo", "spi", "stepper"]

[available."case(os)"]
'linux|macos|windows' = true
"..." = false

# Linux needs libhidapi and libusb

[[depends-on]]
[depends-on."case(os)"."linux"]
libhidapi = "*"

[[depends-on]]
[depends-on."case(os)"."linux"]
libusb = "*"

# macOS needs hidapi and libusb

[[depends-on]]
[depends-on."case(distribution)"."homebrew|macports"]
libhidapi = "*"

[[depends-on]]
[depends-on."case(distribution)"."homebrew|macports"]
libusb = "*"

# On Linux, patch hid-hidapi.ads to link with libhidapi-hidraw.so

[[actions."case(os)".linux]]
type = "post-fetch"
command = ["sh", "-c", "./src/scripts/postfetch.linux"]

# On macOS, copy .dylib files to ./lib

[[actions."case(os)".macos]]
type = "post-fetch"
command = ["sh", "-c", "./src/scripts/postfetch.macos"]

# On Windows, copy .DLL files to ./lib

[[actions."case(os)".windows]]
type = "post-fetch"
command = ["sh", "-c", "./src/scripts/postfetch.windows"]

[origin]
hashes = [
"sha256:0c74256b64ee3d604de3da570bf5b23add93a9d7ea0dd4906604530723417c84",
"sha512:9ad99d7dd610fa0be65209d2dddd9e3aec700aa9902cb26a4da9b2c9d2a8b524b02cc98d803bf06c75f440946be3eb4ab618da8df6b3b938bc413bf7f64bd065",
]
url = "https://raw.githubusercontent.com/pmunts/alire-crates/fde56b9d2f7ce511281a244e87c96f78f5f431e6/mcp2221/mcp2221-2.22299.1.tbz2"

0 comments on commit d4e418b

Please sign in to comment.