summaryrefslogtreecommitdiff
path: root/homebrew/nlohmannjson
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/nlohmannjson')
-rw-r--r--homebrew/nlohmannjson/.beer23
-rw-r--r--homebrew/nlohmannjson/.make.sh-auto4
-rw-r--r--homebrew/nlohmannjson/_metadata/description1
-rw-r--r--homebrew/nlohmannjson/_metadata/homepage1
-rw-r--r--homebrew/nlohmannjson/_metadata/name1
-rw-r--r--homebrew/nlohmannjson/_metadata/version1
-rwxr-xr-xhomebrew/nlohmannjson/download.sh1
7 files changed, 32 insertions, 0 deletions
diff --git a/homebrew/nlohmannjson/.beer b/homebrew/nlohmannjson/.beer
new file mode 100644
index 000000000..37ef07567
--- /dev/null
+++ b/homebrew/nlohmannjson/.beer
@@ -0,0 +1,23 @@
+{
+ "name": "NlohmannJson",
+ "description": "JSON for modern C++",
+ "url": "https://github.com/nlohmann/json/archive/v3.6.1.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/nlohmann/json",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\", \"-DJSON_BuildTests=OFF\", *std_cmake_args",
+ "system \"make\", \"install\""
+ ],
+ "version": "3.6.1",
+ "file": "nlohmann-json.rb"
+} \ No newline at end of file
diff --git a/homebrew/nlohmannjson/.make.sh-auto b/homebrew/nlohmannjson/.make.sh-auto
new file mode 100644
index 000000000..d91888d27
--- /dev/null
+++ b/homebrew/nlohmannjson/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+mkdir "build" && cd build
+cmake .. -DJSON_BuildTests=OFF -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/nlohmannjson/_metadata/description b/homebrew/nlohmannjson/_metadata/description
new file mode 100644
index 000000000..7a6ee262b
--- /dev/null
+++ b/homebrew/nlohmannjson/_metadata/description
@@ -0,0 +1 @@
+JSON for modern C++
diff --git a/homebrew/nlohmannjson/_metadata/homepage b/homebrew/nlohmannjson/_metadata/homepage
new file mode 100644
index 000000000..f5a660084
--- /dev/null
+++ b/homebrew/nlohmannjson/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/nlohmann/json
diff --git a/homebrew/nlohmannjson/_metadata/name b/homebrew/nlohmannjson/_metadata/name
new file mode 100644
index 000000000..c3684cdb6
--- /dev/null
+++ b/homebrew/nlohmannjson/_metadata/name
@@ -0,0 +1 @@
+NlohmannJson
diff --git a/homebrew/nlohmannjson/_metadata/version b/homebrew/nlohmannjson/_metadata/version
new file mode 100644
index 000000000..9575d51ba
--- /dev/null
+++ b/homebrew/nlohmannjson/_metadata/version
@@ -0,0 +1 @@
+3.6.1
diff --git a/homebrew/nlohmannjson/download.sh b/homebrew/nlohmannjson/download.sh
new file mode 100755
index 000000000..03a917895
--- /dev/null
+++ b/homebrew/nlohmannjson/download.sh
@@ -0,0 +1 @@
+wget https://github.com/nlohmann/json/archive/v3.6.1.tar.gz \ No newline at end of file