Skip to content

Commit

Permalink
main/thrift: new package (0.20.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
a16bitsysop committed Jan 11, 2025
1 parent 8c3da51 commit bf92bdb
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 0 deletions.
1 change: 1 addition & 0 deletions main/thrift-devel
1 change: 1 addition & 0 deletions main/thrift-glib
1 change: 1 addition & 0 deletions main/thrift-libnb
1 change: 1 addition & 0 deletions main/thrift-libz
69 changes: 69 additions & 0 deletions main/thrift/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
pkgname = "thrift"
pkgver = "0.20.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://dlcdn.apache.org/thrift/{pkgver}/thrift-{pkgver}.tar.gz"
sha256 = "b5d8311a779470e1502c027f428a1db542f5c051c8e1280ccd2163fa935ff2d6"


@subpackage("thrift-devel")
def _(self):
return self.default_devel()


@subpackage("thrift-glib")
def _(self):
return ["usr/lib/libthrift_*glib*.so.*"]


@subpackage("thrift-libnb")
def _(self):
return ["usr/lib/libthriftnb*.so.*"]


@subpackage("thrift-libz")
def _(self):
return ["usr/lib/libthriftz*.so.*"]

0 comments on commit bf92bdb

Please sign in to comment.