summaryrefslogtreecommitdiff
path: root/gnustep-base/libobjc2/libobjc2-2.2.1-r1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'gnustep-base/libobjc2/libobjc2-2.2.1-r1.ebuild')
-rw-r--r--gnustep-base/libobjc2/libobjc2-2.2.1-r1.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnustep-base/libobjc2/libobjc2-2.2.1-r1.ebuild b/gnustep-base/libobjc2/libobjc2-2.2.1-r1.ebuild
new file mode 100644
index 000000000000..e8052aa857a7
--- /dev/null
+++ b/gnustep-base/libobjc2/libobjc2-2.2.1-r1.ebuild
@@ -0,0 +1,40 @@
+# 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="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-cpp/robin-map"
+BDEPEND="${RDEPEND}
+ llvm-core/clang"
+
+PATCHES=(
+ "${FILESDIR}"/libobjc-2.2.1-remove-flags-from-eh_trampoline.patch
+)
+
+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=(
+ -DGNUSTEP_CONFIG=GNUSTEP_CONFIG-NOTFOUND
+ -DTESTS="$(usex test)"
+ )
+ cmake_src_configure
+}