summaryrefslogtreecommitdiff
path: root/homebrew/hidapi
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/hidapi')
-rw-r--r--homebrew/hidapi/.beer41
-rw-r--r--homebrew/hidapi/.make.sh-auto5
-rw-r--r--homebrew/hidapi/_metadata/description1
-rw-r--r--homebrew/hidapi/_metadata/homepage1
-rw-r--r--homebrew/hidapi/_metadata/name1
-rw-r--r--homebrew/hidapi/_metadata/version1
-rwxr-xr-xhomebrew/hidapi/download.sh1
-rwxr-xr-xhomebrew/hidapi/patches.sh1
8 files changed, 52 insertions, 0 deletions
diff --git a/homebrew/hidapi/.beer b/homebrew/hidapi/.beer
new file mode 100644
index 000000000..96b7c63b4
--- /dev/null
+++ b/homebrew/hidapi/.beer
@@ -0,0 +1,41 @@
+{
+ "name": "Hidapi",
+ "description": "Library for communicating with USB and Bluetooth HID devices",
+ "url": "https://github.com/signal11/hidapi/archive/hidapi-0.8.0-rc1.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/signal11/hidapi",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ },
+ {
+ "depend": "libtool",
+ "build-depend": true
+ },
+ {
+ "depend": "pkg-config",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://github.com/signal11/hidapi/pull/219.patch?full_index=1",
+ "strip": "1"
+ }
+ ],
+ "install": [
+ "system \"./bootstrap\"",
+ "system \"./configure\", \"--prefix=#{prefix}\"",
+ "system \"make\", \"install\"",
+ "bin.install \"hidtest/.libs/hidtest\""
+ ],
+ "version": "0.8.0",
+ "file": "hidapi.rb"
+} \ No newline at end of file
diff --git a/homebrew/hidapi/.make.sh-auto b/homebrew/hidapi/.make.sh-auto
new file mode 100644
index 000000000..b9249395a
--- /dev/null
+++ b/homebrew/hidapi/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+./bootstrap
+pkg:configure
+make DESTDIR=${PKG_DEST} install
+bin.install "hidtest/.libs/hidtest"
diff --git a/homebrew/hidapi/_metadata/description b/homebrew/hidapi/_metadata/description
new file mode 100644
index 000000000..9ed38cff0
--- /dev/null
+++ b/homebrew/hidapi/_metadata/description
@@ -0,0 +1 @@
+Library for communicating with USB and Bluetooth HID devices
diff --git a/homebrew/hidapi/_metadata/homepage b/homebrew/hidapi/_metadata/homepage
new file mode 100644
index 000000000..b8a85300f
--- /dev/null
+++ b/homebrew/hidapi/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/signal11/hidapi
diff --git a/homebrew/hidapi/_metadata/name b/homebrew/hidapi/_metadata/name
new file mode 100644
index 000000000..3353083b4
--- /dev/null
+++ b/homebrew/hidapi/_metadata/name
@@ -0,0 +1 @@
+Hidapi
diff --git a/homebrew/hidapi/_metadata/version b/homebrew/hidapi/_metadata/version
new file mode 100644
index 000000000..a3df0a695
--- /dev/null
+++ b/homebrew/hidapi/_metadata/version
@@ -0,0 +1 @@
+0.8.0
diff --git a/homebrew/hidapi/download.sh b/homebrew/hidapi/download.sh
new file mode 100755
index 000000000..63ab3a85c
--- /dev/null
+++ b/homebrew/hidapi/download.sh
@@ -0,0 +1 @@
+wget https://github.com/signal11/hidapi/archive/hidapi-0.8.0-rc1.tar.gz \ No newline at end of file
diff --git a/homebrew/hidapi/patches.sh b/homebrew/hidapi/patches.sh
new file mode 100755
index 000000000..247879e2f
--- /dev/null
+++ b/homebrew/hidapi/patches.sh
@@ -0,0 +1 @@
+wget https://github.com/signal11/hidapi/pull/219.patch?full_index=1