Skip to content

Commit

Permalink
user/thrift: new package (0.21.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
a16bitsysop committed Jan 15, 2025
1 parent 1ab2497 commit d7adda7
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions user/thrift-devel
1 change: 1 addition & 0 deletions user/thrift-glib-libs
1 change: 1 addition & 0 deletions user/thrift-libnb-libs
1 change: 1 addition & 0 deletions user/thrift-libz-libs
72 changes: 72 additions & 0 deletions user/thrift/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
pkgname = "thrift"
pkgver = "0.21.0"
pkgrel = 0
build_style = "cmake"
configure_args = [
"-DWITH_AS3=OFF",
"-DBUILD_SHARED_LIBS=ON",
"-DWITH_JAVA=OFF",
"-DWITH_JAVASCRIPT=OFF",
"-DWITH_NODEJS=OFF",
"-DWITH_PYTHON=OFF",
"-DBUILD_TESTING=ON",
]
# some tests need net, skipped by alpine linux as well
make_check_args = [
"-E",
"StressTestConcurrent|\
StressTestNonBlocking|\
testapplicationexception|\
testbinaryprotocol|\
testbufferedtransport|\
testcompactprotocol|\
testdebugproto|\
testfdtransport|\
testframedtransport|\
testsimpleserver|\
testthriftbinaryreadcheck|\
testthriftbufferedreadcheck|\
testthriftframedreadcheck|\
testthriftfdreadcheck|\
testthriftcompactreadcheck|\
testtransportsocket|\
testzlibtransport|\
testthrifttestzlibclient",
]
hostmakedepends = ["bison", "cmake", "flex", "ninja", "pkgconf"]
makedepends = [
"boost-devel",
"glib-devel",
"libevent-devel",
"openssl-devel",
"zlib-ng-compat-devel",
]
pkgdesc = "Scalable cross-language services framework for IPC/RPC"
maintainer = "Duncan Bellamy <[email protected]>"
license = "Apache-2.0"
url = "https://thrift.apache.org"
source = f"https://github.com/apache/thrift/archive/v{pkgver}.tar.gz"
sha256 = "31e46de96a7b36b8b8a457cecd2ee8266f81a83f8e238a9d324d8c6f42a717bc"


@subpackage("thrift-devel")
def _(self):
return self.default_devel(extra=["usr/bin/thrift"])


@subpackage("thrift-glib-libs")
def _(self):
self.subdesc = "Thrift C glib library"
return ["usr/lib/libthrift_*glib*.so.*"]


@subpackage("thrift-libnb-libs")
def _(self):
self.subdesc = "Thrift Nonblocking API"
return ["usr/lib/libthriftnb*.so.*"]


@subpackage("thrift-libz-libs")
def _(self):
self.subdesc = "Thrift Zlib API"
return ["usr/lib/libthriftz*.so.*"]

0 comments on commit d7adda7

Please sign in to comment.