From: "Alexey Shvetsov" <alexxy@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/x11:opencl commit in: dev-libs/libclc/, dev-libs/libclc/files/
Date: Sun, 3 Jun 2012 11:47:55 +0000 (UTC) [thread overview]
Message-ID: <1338723986.3aa161c506d3782bdbaa0a6c3b8f6c9ec4bf5b28.alexxy@gentoo> (raw)
commit: 3aa161c506d3782bdbaa0a6c3b8f6c9ec4bf5b28
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 3 11:46:26 2012 +0000
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Sun Jun 3 11:46:26 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=3aa161c5
Add patch from maksbotan to fix install target
(Portage version: 2.2.0_alpha109/git/Linux x86_64, unsigned Manifest commit)
---
dev-libs/libclc/files/fix-install-target.patch | 45 ++++++++++++++++++++++++
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 0000000..f294104
--- /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 566cfc5..b15688c 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
-}
next reply other threads:[~2012-06-03 11:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-03 11:47 Alexey Shvetsov [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-05-03 20:34 [gentoo-commits] proj/x11:opencl commit in: dev-libs/libclc/, dev-libs/libclc/files/ Alexey Shvetsov
2013-04-11 3:52 Alexey Shvetsov
2013-04-06 11:30 Alexey Shvetsov
2013-03-05 5:42 Alexey Shvetsov
2012-06-03 10:53 Alexey Shvetsov
2012-06-02 23:32 Alexey Shvetsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1338723986.3aa161c506d3782bdbaa0a6c3b8f6c9ec4bf5b28.alexxy@gentoo \
--to=alexxy@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox