Files
gentoo/gnustep-base/libobjc2/libobjc2-2.3.ebuild
Alfred Wingate 00f5c23794 gnustep-base/libobjc2: add 2.3
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44330
Signed-off-by: Sam James <sam@gentoo.org>
2025-11-04 12:26:33 +00:00

45 lines
984 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake flag-o-matic toolchain-funcs
DESCRIPTION="GNUstep Objective-C runtime"
HOMEPAGE="https://gnustep.github.io"
SRC_URI="https://github.com/gnustep/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="libdispatch test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-cpp/robin-map
libdispatch? (
>=dev-libs/libdispatch-6.1.1
!<gnustep-base/gnustep-make-2.9.3-r1
)
!libdispatch? ( !dev-libs/libdispatch )
"
BDEPEND="${RDEPEND}
llvm-core/clang"
src_configure() {
if tc-is-gcc; then
einfo "Forcing clang"
export CC="${CHOST}-clang"
export CXX="${CHOST}-clang++"
# Strip unsupported flags for clang. bug #871933
strip-unsupported-flags
fi
local mycmakeargs=(
-DEMBEDDED_BLOCKS_RUNTIME=$(usex !libdispatch)
-DGNUSTEP_CONFIG=GNUSTEP_CONFIG-NOTFOUND
-DTESTS="$(usex test)"
)
cmake_src_configure
}