mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
Update done using: ``` git grep -l sys-libs/zlib dev-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Followed by manual revert in dev-python/zlib-ng where it accidentally caught sys-libs/zlib-ng dependencies. Signed-off-by: Michał Górny <mgorny@gentoo.org>
74 lines
1.5 KiB
Bash
74 lines
1.5 KiB
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="C++ bindings for Apache Thrift"
|
|
HOMEPAGE="https://thrift.apache.org/lib/cpp.html"
|
|
# Misses testing files
|
|
# SRC_URI="mirror://apache/thrift/${PV}/${P}.tar.gz"
|
|
SRC_URI="
|
|
https://github.com/apache/thrift/archive/refs/tags/v${PV}.tar.gz
|
|
-> ${P}.gh.tar.gz
|
|
"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0/${PV}"
|
|
KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc64 ~riscv ~s390 x86"
|
|
|
|
IUSE="libevent lua +ssl test"
|
|
REQUIRED_USE="test? ( ssl libevent )"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
DEPEND="
|
|
dev-libs/boost:=[nls(+)]
|
|
dev-libs/openssl:=
|
|
virtual/zlib:=
|
|
libevent? ( dev-libs/libevent:= )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="
|
|
app-alternatives/lex
|
|
app-alternatives/yacc
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/thrift-0.21.0-gcc15-cstdint.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
# follow order in build/cmake/DefineOptions.cmake
|
|
# Prefer WITH_OPTION over BUILD_OPTION for bug #943012
|
|
-DBUILD_COMPILER=ON
|
|
-DBUILD_TESTING=$(usex test)
|
|
-DBUILD_TUTORIALS=OFF
|
|
-DBUILD_LIBRARIES=ON
|
|
-DWITH_AS3=ON
|
|
-DWITH_CPP=ON
|
|
-DWITH_ZLIB=ON
|
|
-DWITH_LIBEVENT=$(usex libevent)
|
|
-DWITH_QT5=OFF
|
|
-DWITH_C_GLIB=OFF
|
|
-DWITH_OPENSSL=$(usex ssl)
|
|
-DWITH_JAVA=OFF
|
|
-DWITH_JAVASCRIPT=OFF
|
|
-DWITH_NODEJS=OFF
|
|
-DWITH_PYTHON=OFF
|
|
-Wno-dev
|
|
)
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
local CMAKE_SKIP_TESTS=(
|
|
# network sandbox
|
|
StressTestConcurrent
|
|
StressTestNonBlocking
|
|
UnitTests
|
|
)
|
|
cmake_src_test
|
|
}
|