summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-11-05 23:04:23 +0000
committerMichał Górny <mgorny@gentoo.org>2014-11-05 23:04:23 +0000
commitd91865560bae6b7e952cce9be8d15256581c8838 (patch)
tree78483251fb8ece710fbc4b55973f304c34566c83 /dev-python/pypy3
parentIntroduce initial ebuilds for PyPy3. (diff)
downloadgentoo-2-d91865560bae6b7e952cce9be8d15256581c8838.tar.gz
gentoo-2-d91865560bae6b7e952cce9be8d15256581c8838.tar.bz2
gentoo-2-d91865560bae6b7e952cce9be8d15256581c8838.zip
Introduce initial ebuilds for PyPy3.
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'dev-python/pypy3')
-rw-r--r--dev-python/pypy3/ChangeLog7
-rw-r--r--dev-python/pypy3/files/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch11
-rw-r--r--dev-python/pypy3/files/1.9-scripts-location.patch11
-rw-r--r--dev-python/pypy3/files/2.3.1-shared-lib.patch11
4 files changed, 39 insertions, 1 deletions
diff --git a/dev-python/pypy3/ChangeLog b/dev-python/pypy3/ChangeLog
index 009100d5ee37..7fd1d07ded28 100644
--- a/dev-python/pypy3/ChangeLog
+++ b/dev-python/pypy3/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/pypy3
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy3/ChangeLog,v 1.1 2014/11/05 23:03:06 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy3/ChangeLog,v 1.2 2014/11/05 23:04:23 mgorny Exp $
+
+ 05 Nov 2014; Michał Górny <mgorny@gentoo.org> +files/1.9-distutils.unixccompil
+ er.UnixCCompiler.runtime_library_dir_option.patch,
+ +files/1.9-scripts-location.patch, +files/2.3.1-shared-lib.patch:
+ Introduce initial ebuilds for PyPy3.
*pypy3-2.4.0 (05 Nov 2014)
diff --git a/dev-python/pypy3/files/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch b/dev-python/pypy3/files/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch
new file mode 100644
index 000000000000..29d99dcfdb73
--- /dev/null
+++ b/dev-python/pypy3/files/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch
@@ -0,0 +1,11 @@
+--- a/lib-python/3/distutils/unixccompiler.py
++++ b/lib-python/3/distutils/unixccompiler.py
+@@ -297,7 +297,7 @@
+ # this time, there's no way to determine this information from
+ # the configuration data stored in the Python installation, so
+ # we use this hack.
+- compiler = os.path.basename(sysconfig.get_config_var("CC"))
++ compiler = os.path.basename(self.compiler[0])
+ if sys.platform[:6] == "darwin":
+ # MacOSX's linker doesn't understand the -R flag at all
+ return "-L" + dir
diff --git a/dev-python/pypy3/files/1.9-scripts-location.patch b/dev-python/pypy3/files/1.9-scripts-location.patch
new file mode 100644
index 000000000000..6ed12856509e
--- /dev/null
+++ b/dev-python/pypy3/files/1.9-scripts-location.patch
@@ -0,0 +1,11 @@
+--- a/lib-python/3/distutils/command/install.py
++++ b/lib-python/3/distutils/command/install.py
+@@ -87,7 +87,7 @@
+ 'purelib': '$base/site-packages',
+ 'platlib': '$base/site-packages',
+ 'headers': '$base/include',
+- 'scripts': '$base/bin',
++ 'scripts': '/usr/bin',
+ 'data' : '$base',
+ },
+ }
diff --git a/dev-python/pypy3/files/2.3.1-shared-lib.patch b/dev-python/pypy3/files/2.3.1-shared-lib.patch
new file mode 100644
index 000000000000..ae1139f89867
--- /dev/null
+++ b/dev-python/pypy3/files/2.3.1-shared-lib.patch
@@ -0,0 +1,11 @@
+--- rpython/translator/platform/posix.py
++++ rpython/translator/platform/posix.py
+@@ -180,7 +180,7 @@
+ 'int main(int argc, char* argv[]) '
+ '{ return $(PYPY_MAIN_FUNCTION)(argc, argv); }" > $@')
+ m.rule('$(DEFAULT_TARGET)', ['$(TARGET)', 'main.o'],
+- '$(CC_LINK) $(LDFLAGS_LINK) main.o -L. -l$(SHARED_IMPORT_LIB) -o $@')
++ '$(CC_LINK) $(LDFLAGS_LINK) main.o -L. -l$(SHARED_IMPORT_LIB) \'-Wl,-rpath,$$ORIGIN\' -o $@')
+
+ return m
+