forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-libs/libclc: Add september 2017 snapshot
Adds python3 compatibility Restores llvm-3.9 compatibility Closes: gentoo#5824 Signed-off-by: Jan Vesely <[email protected]>
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST libclc-0.2.0_pre20160209.tar.xz 75756 SHA256 4ed3491997cc524faa0c982a29bc3b4028c1054786e6dfe929d9c43265d78ed7 SHA512 d3edff5e04dc3d34033fdccc0a0d8256ea03515bd98b32818ec181d541141acf9ea06bb7e6bb149ea5e7f5dbcbb76ba13453fb1f461b4737a15ac60c7b3fc4ca WHIRLPOOL 111f75bb89c8288ffefc7a2e1448fd79d41f47990450984537405e423cbf7ea3717e102408774667ac654650db44109c1473a25c2e84d79fa19bc3dad0f7b69c | ||
DIST libclc-0.2.0_pre20160921.tar.gz 127817 SHA256 82c89bb15f79eaf525d283dda82403b213ef1a11b1ea9d843799fb04e08d190d SHA512 5aae6010f32935c0b8fa510fc27cfd0be2df3d58d73cb5fb280d6758aafe54bd63a0137e59053aa81dca01ad2c5a0591ee1d4a83e3ef9a590a009a1a19062373 WHIRLPOOL 6e29280dfa585999d0aa6720a0a33b329b08be31a9f19246e23cbca723210337f834d14a8064541796b05e27dd999af1d3050f04c4fbcdc1e0fe2af574cdb243 | ||
DIST libclc-0.2.0_pre20170118.tar.gz 130793 SHA256 a2d59b11b710468598f25b968ffd4e36125e6e9fe56e052ab09c9abc9c8fc295 SHA512 d94a58ebcafb7bbdbcded84574676537ae7b4ba86c7c2270cc1cd7aa3113104e018e53396b570e821c2fd473b6dd63677f59d990e36e15a7cdb43cdb96cd058c WHIRLPOOL 1ebddaa0b56171b755df35068bc57dcd54644ab447687bd0f5e47417834065574f614fafb495d0ae497942537474a6c36ff55a787a437f69b56d3734dd7385cf | ||
DIST libclc-0.2.0_pre20170929.tar.gz 138719 SHA256 b0ba08cfd2f2f0653531ec9138c0a617eaaa1b7cac6f658ba4c363fe0003a176 SHA512 08f3a21fb1dc103a3b33980c420506fd142294b2d8b4a3eeb100ea55036fb87b9740a2489a0a9a5793d71ebb157e6f3ad7854d1916fc1fa472de72374cdeaea3 WHIRLPOOL 5702c9c62ba106f2c31a5125853ad6543fddeeea40c2c38960ddd9cb54728a8c4054dbbfaa97804003815b97dc909bcf9778d8163887a179e909c4d42d52d773 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) | ||
|
||
EGIT_REPO_URI="http://llvm.org/git/${PN}.git | ||
https://github.com/llvm-mirror/${PN}.git" | ||
EGIT_COMMIT="0c31bd5e8d277bee26f34162c246a321f086ad55" | ||
|
||
if [[ ${PV} = 9999* ]]; then | ||
GIT_ECLASS="git-r3" | ||
EXPERIMENTAL="true" | ||
else | ||
GIT_ECLASS="vcs-snapshot" | ||
fi | ||
|
||
inherit llvm python-any-r1 toolchain-funcs ${GIT_ECLASS} | ||
|
||
DESCRIPTION="OpenCL C library" | ||
HOMEPAGE="http://libclc.llvm.org/" | ||
|
||
if [[ ${PV} = 9999* ]]; then | ||
SRC_URI="${SRC_PATCHES}" | ||
else | ||
SRC_URI="https://github.com/llvm-mirror/libclc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz | ||
${SRC_PATCHES}" | ||
fi | ||
|
||
LICENSE="|| ( MIT BSD )" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm64 ~x86" | ||
IUSE="" | ||
|
||
RDEPEND=" | ||
>=sys-devel/clang-3.9 | ||
>=sys-devel/llvm-3.9" | ||
DEPEND="${RDEPEND} | ||
${PYTHON_DEPS}" | ||
|
||
llvm_check_deps() { | ||
has_version "sys-devel/clang:${LLVM_SLOT}" | ||
} | ||
|
||
pkg_setup() { | ||
# we do not need llvm_pkg_setup | ||
python-any-r1_pkg_setup | ||
} | ||
|
||
src_configure() { | ||
./configure.py \ | ||
--with-cxx-compiler="$(tc-getCXX)" \ | ||
--with-llvm-config="$(get_llvm_prefix)/bin/llvm-config" \ | ||
--prefix="${EPREFIX}/usr" || die | ||
} | ||
|
||
src_compile() { | ||
emake VERBOSE=1 | ||
} |