diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2013-03-05 09:42:52 +0400 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2013-03-05 09:42:52 +0400 |
commit | 9fb81d54c42312602d531f31dbdc29f2a758c76b (patch) | |
tree | 15e64e7266231f9237d99a6291daec05af448c85 /dev-libs/libclc | |
parent | Update opencl deps (diff) | |
download | x11-9fb81d54c42312602d531f31dbdc29f2a758c76b.tar.gz x11-9fb81d54c42312602d531f31dbdc29f2a758c76b.tar.bz2 x11-9fb81d54c42312602d531f31dbdc29f2a758c76b.zip |
Update to recent changes for libclc
Package-Manager: portage-2.2.0_alpha166
Diffstat (limited to 'dev-libs/libclc')
-rw-r--r-- | dev-libs/libclc/files/fix-install-target.patch | 45 | ||||
-rw-r--r-- | dev-libs/libclc/libclc-9999.ebuild | 9 |
2 files changed, 4 insertions, 50 deletions
diff --git a/dev-libs/libclc/files/fix-install-target.patch b/dev-libs/libclc/files/fix-install-target.patch deleted file mode 100644 index f2941047..00000000 --- a/dev-libs/libclc/files/fix-install-target.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/configure.py b/configure.py -index 546bbd3..dcb9f48 100755 ---- a/configure.py -+++ b/configure.py -@@ -7,7 +7,11 @@ def c_compiler_rule(b, name, description, compiler, flags): - from optparse import OptionParser - import os - from subprocess import * --import sys -+import sys, platform -+ -+system_libdir = 'lib' -+if platform.machine() in ('x86_64',): -+ system_libdir = 'lib64' - - srcdir = os.path.dirname(sys.argv[0]) - -@@ -94,7 +98,7 @@ for target in targets: - [os.path.join(srcdir, subdir, 'lib') for subdir in subdirs]) - - clang_cl_includes = ' '.join(["-I%s" % incdir for incdir in incdirs]) -- install_files += [(incdir, incdir[len(srcdir)+1:]) for incdir in incdirs] -+ install_files += [(incdir, '') for incdir in incdirs] - - # The rule for building a .bc file for the specified architecture using clang. - clang_bc_flags = "-ccc-host-triple %s -I`dirname $in` %s " \ -@@ -129,15 +133,14 @@ for target in targets: - b.build(builtins_link_bc, "LLVM_LINK", objects) - b.build(builtins_opt_bc, "OPT", builtins_link_bc) - b.build(builtins_bc, "PREPARE_BUILTINS", builtins_opt_bc, prepare_builtins) -- install_files.append((builtins_bc, builtins_bc)) -+ install_files.append((builtins_bc, '%s/clc/%s' % (system_libdir, target))) - install_deps.append(builtins_bc) - b.default(builtins_bc) - - if options.prefix: -- install_cmd = ' && '.join(['mkdir -p %(dst)s && cp -r %(src)s %(dst)s' % -+ install_cmd = ' && '.join(['mkdir -p $(DESTDIR)/%(dst)s && cp -r %(src)s $(DESTDIR)/%(dst)s' % - {'src': file, -- 'dst': os.path.join(options.prefix, -- os.path.dirname(dest))} -+ 'dst': os.path.join(options.prefix, dest)} - for (file, dest) in install_files]) - b.rule('install', command = install_cmd, description = 'INSTALL') - b.build('install', 'install', install_deps)
\ No newline at end of file diff --git a/dev-libs/libclc/libclc-9999.ebuild b/dev-libs/libclc/libclc-9999.ebuild index b8108e25..54b69295 100644 --- a/dev-libs/libclc/libclc-9999.ebuild +++ b/dev-libs/libclc/libclc-9999.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI=4 +EAPI=5 EGIT_REPO_URI="git://people.freedesktop.org/~tstellar/${PN}" @@ -28,13 +28,12 @@ KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=" - >=sys-devel/clang-3.1 - >=sys-devel/llvm-3.1" + >=sys-devel/clang-3.2 + >=sys-devel/llvm-3.2" DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}/0001-Rename-target-to-r600-amd-none.patch" - "${FILESDIR}/fix-install-target.patch" ) src_configure() { |