1 |
commit: 66772283698dcfd76eeb8a67e2847d810e99e7c7 |
2 |
Author: Donnie Berkholz <dberkholz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 30 12:48:19 2011 +0000 |
4 |
Commit: Donnie Berkholz <dberkholz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 30 12:48:36 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=66772283 |
7 |
|
8 |
msms: build with 3.x kernels. |
9 |
|
10 |
--- |
11 |
sci-libs/msms/files/build-with-linux-3.0.patch | 11 +++++++++++ |
12 |
sci-libs/msms/msms-1.5.4-r1.ebuild | 12 +++++++++++- |
13 |
2 files changed, 22 insertions(+), 1 deletions(-) |
14 |
|
15 |
diff --git a/sci-libs/msms/files/build-with-linux-3.0.patch b/sci-libs/msms/files/build-with-linux-3.0.patch |
16 |
new file mode 100644 |
17 |
index 0000000..849f80a |
18 |
--- /dev/null |
19 |
+++ b/sci-libs/msms/files/build-with-linux-3.0.patch |
20 |
@@ -0,0 +1,11 @@ |
21 |
+--- mslib-1.5.4.orig/setup.py 2011-07-30 07:46:02.628300605 -0500 |
22 |
++++ mslib-1.5.4/setup.py 2011-07-30 07:46:30.628188677 -0500 |
23 |
+@@ -18,7 +18,7 @@ |
24 |
+ platform = sys.platform |
25 |
+ |
26 |
+ # amd64 |
27 |
+-if (platform == "linux2"): |
28 |
++if platform in ["linux2", "linux3"]: |
29 |
+ lUname = os.uname() |
30 |
+ if lUname[-1] == 'x86_64': |
31 |
+ platform = lUname[-1] + lUname[0] + lUname[2][0] |
32 |
|
33 |
diff --git a/sci-libs/msms/msms-1.5.4-r1.ebuild b/sci-libs/msms/msms-1.5.4-r1.ebuild |
34 |
index cc934de..4b551c2 100644 |
35 |
--- a/sci-libs/msms/msms-1.5.4-r1.ebuild |
36 |
+++ b/sci-libs/msms/msms-1.5.4-r1.ebuild |
37 |
@@ -6,7 +6,7 @@ EAPI="3" |
38 |
|
39 |
PYTHON_DEPEND="2" |
40 |
SUPPORT_PYTHON_ABIS="1" |
41 |
-inherit distutils |
42 |
+inherit distutils eutils |
43 |
|
44 |
MY_PN="mslib" |
45 |
MY_P="${MY_PN}-${PV}" |
46 |
@@ -33,6 +33,16 @@ src_unpack() { |
47 |
tar xzpf mgltools_source_${PV}/MGLPACKS/${MY_P}.tar.gz |
48 |
} |
49 |
|
50 |
+src_prepare() { |
51 |
+ epatch "${FILESDIR}"/build-with-linux-3.0.patch |
52 |
+ pushd "${S}"/lib >/dev/null |
53 |
+ # Set up symlinks for 3.x kernels |
54 |
+ for x in *inux2; do |
55 |
+ ln -s ${x} ${x%2}3 |
56 |
+ done |
57 |
+ popd >/dev/null |
58 |
+} |
59 |
+ |
60 |
pkg_postinst() { |
61 |
python_mod_optimize ${MY_PN} |
62 |
} |