Diff btop-1.4.5 with a btop-1.4.6
| /usr/portage/sys-process/btop/btop-1.4.6.ebuild 2026-02-19 11:18:08.287969278 +0300 | ||
|---|---|---|
| 1 |
# Copyright 2021-2025 Gentoo Authors |
|
| 1 |
# Copyright 2021-2026 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| ... | ... | |
| 14 | 14 |
LICENSE="Apache-2.0 MIT" |
| 15 | 15 |
SLOT="0" |
| 16 | 16 |
KEYWORDS="amd64 ~arm arm64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~sparc x86" |
| 17 |
IUSE="test" |
|
| 18 |
RESTRICT="!test? ( test )" |
|
| 17 | 19 | |
| 20 |
DEPEND=" |
|
| 21 |
test? ( |
|
| 22 |
dev-cpp/gtest |
|
| 23 |
) |
|
| 24 |
" |
|
| 18 | 25 |
BDEPEND=" |
| 19 | 26 |
app-text/lowdown |
| 20 | 27 |
" |
| ... | ... | |
| 24 | 31 |
pkg_setup() {
|
| 25 | 32 |
if [[ "${MERGE_TYPE}" != "binary" ]]; then
|
| 26 | 33 |
if tc-is-clang ; then |
| 27 |
if [[ "$(clang-major-version)" -lt 16 ]]; then |
|
| 28 |
die "sys-process/btop requires >=llvm-core/clang-16.0.0 to build." |
|
| 34 |
if [[ "$(clang-major-version)" -lt 19 ]]; then |
|
| 35 |
die "sys-process/btop requires >=llvm-core/clang-19.0.0 to build." |
|
| 36 |
fi |
|
| 37 |
elif tc-is-gcc ; then |
|
| 38 |
if [[ "$(gcc-major-version)" -lt 14 ]]; then |
|
| 39 |
die "sys-process/btop requires >=sys-devel/gcc-14.0.0 to build." |
|
| 29 | 40 |
fi |
| 30 |
elif ! tc-is-gcc ; then |
|
| 31 |
die "$(tc-getCXX) is not a supported compiler. Please use sys-devel/gcc or >=llvm-core/clang-16.0.0 instead." |
|
| 41 |
else |
|
| 42 |
die "$(tc-getCXX) is not a supported compiler. Please use >=sys-devel/gcc-14.0.0 or >=llvm-core/clang-19.0.0 instead." |
|
| 32 | 43 |
fi |
| 33 | 44 |
fi |
| 34 | 45 |
} |
| ... | ... | |
| 40 | 51 |
-DBTOP_STATIC=false |
| 41 | 52 |
# These settings can be controlled in make.conf CFLAGS/CXXFLAGS |
| 42 | 53 |
-DBTOP_LTO=false |
| 54 |
-DBUILD_TESTING="$(usex test)" |
|
| 55 |
# Workaround for relocation errors |
|
| 56 |
-DCMAKE_POSITION_INDEPENDENT_CODE=true |
|
| 43 | 57 |
) |
| 44 | 58 |
cmake_src_configure |
| 45 | 59 |
} |