summaryrefslogtreecommitdiff
path: root/homebrew/libmodbus
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/libmodbus
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/libmodbus')
-rw-r--r--homebrew/libmodbus/.beer31
-rw-r--r--homebrew/libmodbus/.make.sh-auto3
-rw-r--r--homebrew/libmodbus/_metadata/description1
-rw-r--r--homebrew/libmodbus/_metadata/homepage1
-rw-r--r--homebrew/libmodbus/_metadata/name1
-rw-r--r--homebrew/libmodbus/_metadata/version1
-rwxr-xr-xhomebrew/libmodbus/download.sh1
7 files changed, 39 insertions, 0 deletions
diff --git a/homebrew/libmodbus/.beer b/homebrew/libmodbus/.beer
new file mode 100644
index 000000000..fa0f27c71
--- /dev/null
+++ b/homebrew/libmodbus/.beer
@@ -0,0 +1,31 @@
+{
+ "name": "Libmodbus",
+ "description": "Portable modbus library",
+ "url": "https://libmodbus.org/releases/libmodbus-3.1.4.tar.gz",
+ "mirror": "https://librecmc.org/librecmc/downloads/sources/v1.3.4/libmodbus-3.1.4.tar.gz",
+ "homepage": "https://libmodbus.org/",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ },
+ {
+ "depend": "libtool",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "system \"./autogen.sh\" if build.head?",
+ "system \"./configure\", \"--prefix=#{prefix}\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "3.1.4",
+ "file": "libmodbus.rb"
+} \ No newline at end of file
diff --git a/homebrew/libmodbus/.make.sh-auto b/homebrew/libmodbus/.make.sh-auto
new file mode 100644
index 000000000..abf08b27d
--- /dev/null
+++ b/homebrew/libmodbus/.make.sh-auto
@@ -0,0 +1,3 @@
+pkg:setup
+pkg:configure
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/libmodbus/_metadata/description b/homebrew/libmodbus/_metadata/description
new file mode 100644
index 000000000..59cf08a60
--- /dev/null
+++ b/homebrew/libmodbus/_metadata/description
@@ -0,0 +1 @@
+Portable modbus library
diff --git a/homebrew/libmodbus/_metadata/homepage b/homebrew/libmodbus/_metadata/homepage
new file mode 100644
index 000000000..f745b952b
--- /dev/null
+++ b/homebrew/libmodbus/_metadata/homepage
@@ -0,0 +1 @@
+https://libmodbus.org/
diff --git a/homebrew/libmodbus/_metadata/name b/homebrew/libmodbus/_metadata/name
new file mode 100644
index 000000000..a06dbb140
--- /dev/null
+++ b/homebrew/libmodbus/_metadata/name
@@ -0,0 +1 @@
+Libmodbus
diff --git a/homebrew/libmodbus/_metadata/version b/homebrew/libmodbus/_metadata/version
new file mode 100644
index 000000000..0aec50e6e
--- /dev/null
+++ b/homebrew/libmodbus/_metadata/version
@@ -0,0 +1 @@
+3.1.4
diff --git a/homebrew/libmodbus/download.sh b/homebrew/libmodbus/download.sh
new file mode 100755
index 000000000..1303111ea
--- /dev/null
+++ b/homebrew/libmodbus/download.sh
@@ -0,0 +1 @@
+wget https://libmodbus.org/releases/libmodbus-3.1.4.tar.gz || wget https://librecmc.org/librecmc/downloads/sources/v1.3.4/libmodbus-3.1.4.tar.gz \ No newline at end of file