summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Karbowski <slashbeast@gentoo.org>2021-03-14 16:33:33 +0100
committerPiotr Karbowski <slashbeast@gentoo.org>2021-03-14 16:35:14 +0100
commitebc65b360483b27111d2f727bb4aea66aa778eba (patch)
tree4f4679c1cb44d58a2b6cc446ec10f8094a9b8765 /dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild
parentsys-boot/grub: remove accidentally added ebuild (diff)
downloadgentoo-ebc65b360483b27111d2f727bb4aea66aa778eba.tar.gz
gentoo-ebc65b360483b27111d2f727bb4aea66aa778eba.tar.bz2
gentoo-ebc65b360483b27111d2f727bb4aea66aa778eba.zip
dev-libs/libdispatch: 5.3.3: Drop -Werror; block on libobjc2.
Closes: https://bugs.gentoo.org/show_bug.cgi?id=775692 Closes: https://bugs.gentoo.org/show_bug.cgi?id=775623 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild')
-rw-r--r--dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild b/dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild
new file mode 100644
index 000000000000..d02b56e15ca3
--- /dev/null
+++ b/dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+MY_PN="swift-corelibs-${PN}"
+MY_PV="swift-${PV}-RELEASE"
+
+DESCRIPTION="A library for concurrent code execution on multicore hardware"
+HOMEPAGE="https://github.com/apple/swift-corelibs-libdispatch"
+SRC_URI="https://github.com/apple/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="!gnustep-base/libobjc2"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ sys-devel/clang
+ sys-devel/llvm
+"
+
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+PATCHES=( "${FILESDIR}/remove-Werror.patch" )
+
+src_configure () {
+ if ! tc-is-clang ; then
+ AR=llvm-ar
+ CC=${CHOST}-clang
+ CXX=${CHOST}-clang++
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+
+ strip-unsupported-flags
+ fi
+
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
+
+ cmake_src_configure
+}