summaryrefslogtreecommitdiff
path: root/homebrew/thrift
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/thrift')
-rw-r--r--homebrew/thrift/.beer68
-rw-r--r--homebrew/thrift/.make.sh-auto11
-rw-r--r--homebrew/thrift/_metadata/description1
-rw-r--r--homebrew/thrift/_metadata/homepage1
-rw-r--r--homebrew/thrift/_metadata/name1
-rw-r--r--homebrew/thrift/_metadata/version1
-rwxr-xr-xhomebrew/thrift/download.sh1
7 files changed, 84 insertions, 0 deletions
diff --git a/homebrew/thrift/.beer b/homebrew/thrift/.beer
new file mode 100644
index 000000000..914475180
--- /dev/null
+++ b/homebrew/thrift/.beer
@@ -0,0 +1,68 @@
+{
+ "name": "Thrift",
+ "description": "Framework for scalable cross-language services development",
+ "url": "https://www.apache.org/dyn/closer.cgi?path=/thrift/0.12.0/thrift-0.12.0.tar.gz",
+ "mirror": null,
+ "homepage": "https://thrift.apache.org/",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ },
+ {
+ "depend": "libtool",
+ "build-depend": true
+ },
+ {
+ "depend": "pkg-config",
+ "build-depend": true
+ },
+ {
+ "depend": "bison",
+ "build-depend": true
+ },
+ {
+ "depend": "boost",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "system \"./bootstrap.sh\" unless build.stable?",
+ "args = %W[",
+ "--disable-debug",
+ "--disable-tests",
+ "--prefix=#{prefix}",
+ "--libdir=#{lib}",
+ "--with-openssl=#{Formula[\"openssl\"].opt_prefix}",
+ "--without-erlang",
+ "--without-haskell",
+ "--without-java",
+ "--without-perl",
+ "--without-php",
+ "--without-php_extension",
+ "--without-python",
+ "--without-ruby",
+ "]",
+ "ENV.cxx11 if ENV.compiler == :clang",
+ "ENV[\"PY_PREFIX\"] = prefix",
+ "ENV[\"PHP_PREFIX\"] = prefix",
+ "ENV[\"JAVA_PREFIX\"] = buildpath",
+ "system \"./configure\", *args",
+ "ENV.deparallelize",
+ "system \"make\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "0.12.0",
+ "file": "thrift.rb"
+} \ No newline at end of file
diff --git a/homebrew/thrift/.make.sh-auto b/homebrew/thrift/.make.sh-auto
new file mode 100644
index 000000000..1783de27d
--- /dev/null
+++ b/homebrew/thrift/.make.sh-auto
@@ -0,0 +1,11 @@
+pkg:setup
+./bootstrap.sh unless build.stable?
+args = %W[--disable-debug --disable-tests --prefix=#{prefix} --libdir=#{lib} --with-openssl=#{Formula["openssl"].opt_prefix} --without-erlang --without-haskell --without-java --without-perl --without-php --without-php_extension --without-python --without-ruby ]
+ENV.cxx11 if ENV.compiler == :clang
+ENV["PY_PREFIX"] = prefix
+ENV["PHP_PREFIX"] = prefix
+ENV["JAVA_PREFIX"] = buildpath
+pkg:configure *args
+ENV.deparallelize
+make
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/thrift/_metadata/description b/homebrew/thrift/_metadata/description
new file mode 100644
index 000000000..89749dcd5
--- /dev/null
+++ b/homebrew/thrift/_metadata/description
@@ -0,0 +1 @@
+Framework for scalable cross-language services development
diff --git a/homebrew/thrift/_metadata/homepage b/homebrew/thrift/_metadata/homepage
new file mode 100644
index 000000000..5f20d476f
--- /dev/null
+++ b/homebrew/thrift/_metadata/homepage
@@ -0,0 +1 @@
+https://thrift.apache.org/
diff --git a/homebrew/thrift/_metadata/name b/homebrew/thrift/_metadata/name
new file mode 100644
index 000000000..5c8a2bc89
--- /dev/null
+++ b/homebrew/thrift/_metadata/name
@@ -0,0 +1 @@
+Thrift
diff --git a/homebrew/thrift/_metadata/version b/homebrew/thrift/_metadata/version
new file mode 100644
index 000000000..ac454c6a1
--- /dev/null
+++ b/homebrew/thrift/_metadata/version
@@ -0,0 +1 @@
+0.12.0
diff --git a/homebrew/thrift/download.sh b/homebrew/thrift/download.sh
new file mode 100755
index 000000000..20b000b5d
--- /dev/null
+++ b/homebrew/thrift/download.sh
@@ -0,0 +1 @@
+wget https://www.apache.org/dyn/closer.cgi?path=/thrift/0.12.0/thrift-0.12.0.tar.gz \ No newline at end of file