summaryrefslogtreecommitdiff
path: root/homebrew/cmocka
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/cmocka')
-rw-r--r--homebrew/cmocka/.beer29
-rw-r--r--homebrew/cmocka/.make.sh-auto10
-rw-r--r--homebrew/cmocka/_metadata/description1
-rw-r--r--homebrew/cmocka/_metadata/homepage1
-rw-r--r--homebrew/cmocka/_metadata/name1
-rw-r--r--homebrew/cmocka/_metadata/version1
-rwxr-xr-xhomebrew/cmocka/download.sh1
7 files changed, 44 insertions, 0 deletions
diff --git a/homebrew/cmocka/.beer b/homebrew/cmocka/.beer
new file mode 100644
index 000000000..9b71c8a07
--- /dev/null
+++ b/homebrew/cmocka/.beer
@@ -0,0 +1,29 @@
+{
+ "name": "Cmocka",
+ "description": "Unit testing framework for C",
+ "url": "https://cmocka.org/files/1.1/cmocka-1.1.3.tar.xz",
+ "mirror": null,
+ "homepage": "https://cmocka.org/",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "args = std_cmake_args",
+ "args << \"-DWITH_STATIC_LIB=ON\" << \"-DWITH_CMOCKERY_SUPPORT=ON\" << \"-DUNIT_TESTING=ON\"",
+ "if MacOS.version == \"10.11\" && MacOS::Xcode.version >= \"8.0\"",
+ "args << \"-DHAVE_CLOCK_GETTIME:INTERNAL=0\"",
+ "end",
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\", *args",
+ "system \"make\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "1.1.3",
+ "file": "cmocka.rb"
+} \ No newline at end of file
diff --git a/homebrew/cmocka/.make.sh-auto b/homebrew/cmocka/.make.sh-auto
new file mode 100644
index 000000000..72c4617fd
--- /dev/null
+++ b/homebrew/cmocka/.make.sh-auto
@@ -0,0 +1,10 @@
+pkg:setup
+args = std_cmake_args
+args << "-DWITH_STATIC_LIB=ON" << "-DWITH_CMOCKERY_SUPPORT=ON" << "-DUNIT_TESTING=ON"
+if MacOS.version == "10.11" && MacOS::Xcode.version >= "8.0"
+args << "-DHAVE_CLOCK_GETTIME:INTERNAL=0"
+end
+mkdir "build" && cd build
+cmake .. *args
+make
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/cmocka/_metadata/description b/homebrew/cmocka/_metadata/description
new file mode 100644
index 000000000..a8dd480a9
--- /dev/null
+++ b/homebrew/cmocka/_metadata/description
@@ -0,0 +1 @@
+Unit testing framework for C
diff --git a/homebrew/cmocka/_metadata/homepage b/homebrew/cmocka/_metadata/homepage
new file mode 100644
index 000000000..66b26cc23
--- /dev/null
+++ b/homebrew/cmocka/_metadata/homepage
@@ -0,0 +1 @@
+https://cmocka.org/
diff --git a/homebrew/cmocka/_metadata/name b/homebrew/cmocka/_metadata/name
new file mode 100644
index 000000000..a0e264420
--- /dev/null
+++ b/homebrew/cmocka/_metadata/name
@@ -0,0 +1 @@
+Cmocka
diff --git a/homebrew/cmocka/_metadata/version b/homebrew/cmocka/_metadata/version
new file mode 100644
index 000000000..781dcb07c
--- /dev/null
+++ b/homebrew/cmocka/_metadata/version
@@ -0,0 +1 @@
+1.1.3
diff --git a/homebrew/cmocka/download.sh b/homebrew/cmocka/download.sh
new file mode 100755
index 000000000..0b034078a
--- /dev/null
+++ b/homebrew/cmocka/download.sh
@@ -0,0 +1 @@
+wget https://cmocka.org/files/1.1/cmocka-1.1.3.tar.xz \ No newline at end of file