blob: 0cf458f8f8be26c322ff5c2e73130599fa26df88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
}
|