summaryrefslogtreecommitdiff
path: root/homebrew/httest
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/httest
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/httest')
-rw-r--r--homebrew/httest/.beer62
-rw-r--r--homebrew/httest/.make.sh-auto9
-rw-r--r--homebrew/httest/_metadata/description1
-rw-r--r--homebrew/httest/_metadata/homepage1
-rw-r--r--homebrew/httest/_metadata/name1
-rw-r--r--homebrew/httest/_metadata/version1
-rwxr-xr-xhomebrew/httest/download.sh1
7 files changed, 76 insertions, 0 deletions
diff --git a/homebrew/httest/.beer b/homebrew/httest/.beer
new file mode 100644
index 000000000..47923b70a
--- /dev/null
+++ b/homebrew/httest/.beer
@@ -0,0 +1,62 @@
+{
+ "name": "Httest",
+ "description": "Provides a large variety of HTTP-related test functionality",
+ "url": "https://downloads.sourceforge.net/project/htt/htt2.4/httest-2.4.23/httest-2.4.23.tar.gz",
+ "mirror": null,
+ "homepage": "https://htt.sourceforge.io/",
+ "depends": [
+ {
+ "depend": "apr",
+ "build-depend": false
+ },
+ {
+ "depend": "apr-util",
+ "build-depend": false
+ },
+ {
+ "depend": "lua@5.1",
+ "build-depend": false
+ },
+ {
+ "depend": "nghttp2",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ },
+ {
+ "depend": "pcre",
+ "build-depend": false
+ },
+ {
+ "depend": "spidermonkey",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "inreplace \"configure\",",
+ "\"else LUA_LIB_PATH=\\\"-L${withval}\\\"; LUA_INCLUDES=\\\"-I${withval}\\\"; LUA_LIB=\\\"-llua\\\"; fi\",",
+ "\"else LUA_LIB_PATH=\\\"-L${withval}/lib\\\"; LUA_INCLUDES=\\\"-I${withval}/include/lua-5.1\\\"; LUA_LIB=\\\"-llua.5.1\\\"; fi\"",
+ "(buildpath/\"brew_include\").install_symlink Formula[\"pcre\"].opt_include => \"pcre\"",
+ "ENV.prepend \"CPPFLAGS\", \"-I#{buildpath}/brew_include\"",
+ "if MacOS.version == :sierra || MacOS.version == :el_capitan",
+ "ENV[\"SDKROOT\"] = MacOS.sdk_path",
+ "end",
+ "system \"./configure\", \"--disable-dependency-tracking\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--enable-h2-module\",",
+ "\"--enable-html-module\",",
+ "\"--enable-js-module\",",
+ "\"--enable-lua-module\",",
+ "\"--enable-xml-module\",",
+ "\"--with-apr=#{Formula[\"apr\"].opt_bin}\",",
+ "\"--with-lua=#{Formula[\"lua@5.1\"].opt_prefix}\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "2.4.23",
+ "file": "httest.rb"
+} \ No newline at end of file
diff --git a/homebrew/httest/.make.sh-auto b/homebrew/httest/.make.sh-auto
new file mode 100644
index 000000000..ca2e60697
--- /dev/null
+++ b/homebrew/httest/.make.sh-auto
@@ -0,0 +1,9 @@
+pkg:setup
+inreplace "configure", "else LUA_LIB_PATH=\"-L${withval}\"; LUA_INCLUDES=\"-I${withval}\"; LUA_LIB=\"-llua\"; fi", "else LUA_LIB_PATH=\"-L${withval}/lib\"; LUA_INCLUDES=\"-I${withval}/include/lua-5.1\"; LUA_LIB=\"-llua.5.1\"; fi"
+(buildpath/"brew_include").install_symlink Formula["pcre"].opt_include => "pcre"
+ENV.prepend "CPPFLAGS", "-I#{buildpath}/brew_include"
+if MacOS.version == :sierra || MacOS.version == :el_capitan
+ENV["SDKROOT"] = MacOS.sdk_path
+end
+pkg:configure --disable-dependency-tracking --enable-h2-module --enable-html-module --enable-js-module --enable-lua-module --enable-xml-module --with-apr=#{Formula[apr"].opt_bin}" --with-lua=#{Formula[lua@5.1"].opt_prefix}"
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/httest/_metadata/description b/homebrew/httest/_metadata/description
new file mode 100644
index 000000000..32fc56d70
--- /dev/null
+++ b/homebrew/httest/_metadata/description
@@ -0,0 +1 @@
+Provides a large variety of HTTP-related test functionality
diff --git a/homebrew/httest/_metadata/homepage b/homebrew/httest/_metadata/homepage
new file mode 100644
index 000000000..53526f579
--- /dev/null
+++ b/homebrew/httest/_metadata/homepage
@@ -0,0 +1 @@
+https://htt.sourceforge.io/
diff --git a/homebrew/httest/_metadata/name b/homebrew/httest/_metadata/name
new file mode 100644
index 000000000..1ab1cd78b
--- /dev/null
+++ b/homebrew/httest/_metadata/name
@@ -0,0 +1 @@
+Httest
diff --git a/homebrew/httest/_metadata/version b/homebrew/httest/_metadata/version
new file mode 100644
index 000000000..88b796b8f
--- /dev/null
+++ b/homebrew/httest/_metadata/version
@@ -0,0 +1 @@
+2.4.23
diff --git a/homebrew/httest/download.sh b/homebrew/httest/download.sh
new file mode 100755
index 000000000..f96c3e8d6
--- /dev/null
+++ b/homebrew/httest/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/htt/htt2.4/httest-2.4.23/httest-2.4.23.tar.gz \ No newline at end of file