diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2012-06-03 15:46:26 +0400 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2012-06-03 15:46:26 +0400 |
commit | 3aa161c506d3782bdbaa0a6c3b8f6c9ec4bf5b28 (patch) | |
tree | 4633ec49018ca1884a31e5291d0a01639af5d6e3 /dev-libs/libclc | |
parent | Add libclc to rdeps (diff) | |
download | x11-3aa161c506d3782bdbaa0a6c3b8f6c9ec4bf5b28.tar.gz x11-3aa161c506d3782bdbaa0a6c3b8f6c9ec4bf5b28.tar.bz2 x11-3aa161c506d3782bdbaa0a6c3b8f6c9ec4bf5b28.zip |
Add patch from maksbotan to fix install target
(Portage version: 2.2.0_alpha109/git/Linux x86_64, unsigned Manifest commit)
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, 46 insertions, 8 deletions
diff --git a/dev-libs/libclc/files/fix-install-target.patch b/dev-libs/libclc/files/fix-install-target.patch new file mode 100644 index 00000000..f2941047 --- /dev/null +++ b/dev-libs/libclc/files/fix-install-target.patch @@ -0,0 +1,45 @@ +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 566cfc51..b15688cf 100644 --- a/dev-libs/libclc/libclc-9999.ebuild +++ b/dev-libs/libclc/libclc-9999.ebuild @@ -35,6 +35,7 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}/0001-configure.py-Add-an-install-rule.patch" "${FILESDIR}/0001-Rename-target-to-r600-amd-none.patch" + "${FILESDIR}/fix-install-target.patch" ) src_configure() { @@ -42,11 +43,3 @@ src_configure() { --with-llvm-config="${EPREFIX}/usr/bin/llvm-config" \ --prefix="${EPREFIX}/usr" } - -src_install() { - # it has UGY install target so we use own one - insinto /usr/include - doins -r generic/include/* - insinto /usr/$(get_libdir)/clc/r600-amd-none - doins r600-amd-none/lib/builtins.bc -} |