summaryrefslogtreecommitdiff
path: root/homebrew/cnats
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/cnats')
-rw-r--r--homebrew/cnats/.beer35
-rw-r--r--homebrew/cnats/.make.sh-auto3
-rw-r--r--homebrew/cnats/_metadata/description1
-rw-r--r--homebrew/cnats/_metadata/homepage1
-rw-r--r--homebrew/cnats/_metadata/name1
-rw-r--r--homebrew/cnats/_metadata/version1
-rwxr-xr-xhomebrew/cnats/download.sh1
7 files changed, 43 insertions, 0 deletions
diff --git a/homebrew/cnats/.beer b/homebrew/cnats/.beer
new file mode 100644
index 000000000..bd55bd411
--- /dev/null
+++ b/homebrew/cnats/.beer
@@ -0,0 +1,35 @@
+{
+ "name": "Cnats",
+ "description": "C client for the NATS messaging system",
+ "url": "https://github.com/nats-io/cnats/archive/v1.8.0.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/nats-io/cnats",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "libevent",
+ "build-depend": false
+ },
+ {
+ "depend": "libuv",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "system \"cmake\", \".\", \"-DNATS_INSTALL_PREFIX=#{prefix}\",",
+ "\"-DBUILD_TESTING=OFF\", *std_cmake_args",
+ "system \"make\", \"install\""
+ ],
+ "version": "1.8.0",
+ "file": "cnats.rb"
+} \ No newline at end of file
diff --git a/homebrew/cnats/.make.sh-auto b/homebrew/cnats/.make.sh-auto
new file mode 100644
index 000000000..f1ead94ad
--- /dev/null
+++ b/homebrew/cnats/.make.sh-auto
@@ -0,0 +1,3 @@
+pkg:setup
+cmake . -DNATS_INSTALL_PREFIX=${PKG_TAPF} -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/cnats/_metadata/description b/homebrew/cnats/_metadata/description
new file mode 100644
index 000000000..9843ec9da
--- /dev/null
+++ b/homebrew/cnats/_metadata/description
@@ -0,0 +1 @@
+C client for the NATS messaging system
diff --git a/homebrew/cnats/_metadata/homepage b/homebrew/cnats/_metadata/homepage
new file mode 100644
index 000000000..137139bb7
--- /dev/null
+++ b/homebrew/cnats/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/nats-io/cnats
diff --git a/homebrew/cnats/_metadata/name b/homebrew/cnats/_metadata/name
new file mode 100644
index 000000000..5c89ac7b3
--- /dev/null
+++ b/homebrew/cnats/_metadata/name
@@ -0,0 +1 @@
+Cnats
diff --git a/homebrew/cnats/_metadata/version b/homebrew/cnats/_metadata/version
new file mode 100644
index 000000000..27f9cd322
--- /dev/null
+++ b/homebrew/cnats/_metadata/version
@@ -0,0 +1 @@
+1.8.0
diff --git a/homebrew/cnats/download.sh b/homebrew/cnats/download.sh
new file mode 100755
index 000000000..dc5481c9a
--- /dev/null
+++ b/homebrew/cnats/download.sh
@@ -0,0 +1 @@
+wget https://github.com/nats-io/cnats/archive/v1.8.0.tar.gz \ No newline at end of file