summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2023-03-05 21:35:10 +0000
committerMarek Szuba <marecki@gentoo.org>2023-03-05 21:36:45 +0000
commite678177aed8f5be31a8fb35a9a135f9f8f45128c (patch)
tree5dddeb9b11289900801bde3969a788c85d55dec4 /sys-libs/blocksruntime
parentnet-libs/nodejs: drop 14.21.1, 16.18.1, 18.12.1 (diff)
downloadgentoo-e678177aed8f5be31a8fb35a9a135f9f8f45128c.tar.gz
gentoo-e678177aed8f5be31a8fb35a9a135f9f8f45128c.tar.bz2
gentoo-e678177aed8f5be31a8fb35a9a135f9f8f45128c.zip
sys-libs/blocksruntime: block dev-libs/libdispatch
libdispatch bundles the Apple fork of blocksruntime. While at it, trivial EAPI bump. Closes: https://bugs.gentoo.org/879919 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sys-libs/blocksruntime')
-rw-r--r--sys-libs/blocksruntime/blocksruntime-0_pre20171027-r2.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/sys-libs/blocksruntime/blocksruntime-0_pre20171027-r2.ebuild b/sys-libs/blocksruntime/blocksruntime-0_pre20171027-r2.ebuild
new file mode 100644
index 000000000000..1036aca20985
--- /dev/null
+++ b/sys-libs/blocksruntime/blocksruntime-0_pre20171027-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs vcs-snapshot
+
+COMMIT=9cc93ae2b58676c23fd02cf0c686fa15b7a3ff81 # 27 Oct 2017
+
+DESCRIPTION="BlocksRuntime library needed for clang's -fblocks support"
+HOMEPAGE="https://github.com/mackyle/blocksruntime"
+SRC_URI="https://github.com/mackyle/blocksruntime/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="!dev-libs/libdispatch"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0_pre20171027-ldflags-soname.patch
+)
+
+src_prepare() {
+ default
+
+ tc-export CC AR RANLIB
+}
+
+src_compile() {
+ ./buildlib -shared || die
+}
+
+src_install() {
+ prefix="${EPREFIX}/usr" \
+ includedir="${EPREFIX}/usr/include/blocksruntime" \
+ libdir="${EPREFIX}/usr/$(get_libdir)" \
+ DESTDIR="${D}" \
+ ./installlib $(use static-libs || echo -shared) || die
+}