From e8ec41c2a1189bc1ebe8bc0824c98c01cb262013 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Thu, 4 May 2023 22:10:06 +0300 Subject: [PATCH] apache.org/thrift (#1835) * new file: projects/apache.org/thrift/package.yml * modified: projects/apache.org/thrift/package.yml --- projects/apache.org/thrift/package.yml | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 projects/apache.org/thrift/package.yml diff --git a/projects/apache.org/thrift/package.yml b/projects/apache.org/thrift/package.yml new file mode 100644 index 00000000..1d2b31ff --- /dev/null +++ b/projects/apache.org/thrift/package.yml @@ -0,0 +1,64 @@ +distributable: + url: https://dlcdn.apache.org/thrift/{{version}}/thrift-{{version}}.tar.gz + strip-components: 1 + +versions: + github: apache/thrift + +dependencies: + openssl.org: '1.1' + zlib.net: '*' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + gnu.org/automake: '*' + gnu.org/autoconf: '*' + gnu.org/libtool: '*' + freedesktop.org/pkg-config: '*' + gnu.org/bison: '*' + boost.org: '*' + + script: | + ./bootstrap.sh + ./configure $ARGS + make --jobs {{ hw.concurrency }} install + + env: + ARGS: + - --prefix={{prefix}} + - --disable-debug + - --disable-tests + - --prefix={{prefix}} + - --libdir={{prefix}}/lib + - --with-openssl={{deps.openssl.org.prefix}} + - --with-boost={{deps.boost.org.prefix}} + - --without-java + - --without-kotlin + - --without-python + - --without-py3 + - --without-ruby + - --without-haxe + - --without-netstd + - --without-perl + - --without-php + - --without-php_extension + - --without-dart + - --without-erlang + - --without-go + - --without-d + - --without-nodejs + - --without-nodets + - --without-lua + - --without-rs + - --without-swift + PY_PREFIX: "{{prefix}}" + PHP_PREFIX: "{{prefix}}" + +provides: + - bin/thrift + +test: + script: + thrift --version | grep {{version}} \ No newline at end of file