1 |
commit: b17af5ac5341940c9b87e44b33f7af4b9e6adcaf |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 25 14:12:57 2012 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 25 14:12:57 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b17af5ac |
7 |
|
8 |
Fix patches to be in line with tree |
9 |
|
10 |
(Portage version: 2.2.0_alpha95/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
sci-chemistry/ball/ChangeLog | 4 ++ |
14 |
sci-chemistry/ball/ball-9999.ebuild | 12 +++---- |
15 |
sci-chemistry/ball/files/ball-9999-libsvm.patch | 24 +++++++++++++ |
16 |
sci-chemistry/ball/files/ball-9999-multilib.patch | 39 +++++++++++++++++++++ |
17 |
4 files changed, 72 insertions(+), 7 deletions(-) |
18 |
|
19 |
diff --git a/sci-chemistry/ball/ChangeLog b/sci-chemistry/ball/ChangeLog |
20 |
index dfe1c65..851aa6f 100644 |
21 |
--- a/sci-chemistry/ball/ChangeLog |
22 |
+++ b/sci-chemistry/ball/ChangeLog |
23 |
@@ -2,6 +2,10 @@ |
24 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
25 |
# $Header: $ |
26 |
|
27 |
+ 25 Mar 2012; Justin Lecher <jlec@g.o> ball-9999.ebuild, |
28 |
+ +files/ball-9999-libsvm.patch, +files/ball-9999-multilib.patch: |
29 |
+ Fix patches to be in line with tree |
30 |
+ |
31 |
25 Mar 2012; Justin Lecher <jlec@g.o> ball-9999.ebuild: |
32 |
Correct usage of python.eclass |
33 |
|
34 |
|
35 |
diff --git a/sci-chemistry/ball/ball-9999.ebuild b/sci-chemistry/ball/ball-9999.ebuild |
36 |
index 1689676..4fac56b 100644 |
37 |
--- a/sci-chemistry/ball/ball-9999.ebuild |
38 |
+++ b/sci-chemistry/ball/ball-9999.ebuild |
39 |
@@ -42,19 +42,17 @@ DEPEND="${RDEPEND} |
40 |
sys-devel/bison |
41 |
virtual/yacc" |
42 |
|
43 |
+PATCHES=( |
44 |
+ "${FILESDIR}"/${P}-multilib.patch |
45 |
+ "${FILESDIR}"/${P}-libsvm.patch |
46 |
+ ) |
47 |
+ |
48 |
pkg_setup() { |
49 |
use python \ |
50 |
&& python_set_active_version 2 \ |
51 |
&& python_pkg_setup |
52 |
} |
53 |
|
54 |
-src_prepare() { |
55 |
- sed \ |
56 |
- -e '/INSTALL_DIRECTORY/s:"lib":${CMAKE_INSTALL_LIBDIR}:g' \ |
57 |
- -i CMakeLists.txt || die |
58 |
- base_src_prepare |
59 |
-} |
60 |
- |
61 |
src_configure() { |
62 |
local mycmakeargs=( |
63 |
$(cmake-utils_use_use threads FFTW_THREADS) |
64 |
|
65 |
diff --git a/sci-chemistry/ball/files/ball-9999-libsvm.patch b/sci-chemistry/ball/files/ball-9999-libsvm.patch |
66 |
new file mode 100644 |
67 |
index 0000000..c85506d |
68 |
--- /dev/null |
69 |
+++ b/sci-chemistry/ball/files/ball-9999-libsvm.patch |
70 |
@@ -0,0 +1,24 @@ |
71 |
+From 60a5f677587046b3e2077872c21b005bad549b85 Mon Sep 17 00:00:00 2001 |
72 |
+Message-Id: <60a5f677587046b3e2077872c21b005bad549b85.1332678065.git.jlec@g.o> |
73 |
+From: Justin Lecher <jlec@g.o> |
74 |
+Date: Sun, 25 Mar 2012 14:15:16 +0200 |
75 |
+Subject: [PATCH 1/2] Correct deprecated usage of svm_destroy_model to |
76 |
+ svm_free_and_destroy_model |
77 |
+ |
78 |
+--- |
79 |
+ source/QSAR/libsvmModel.C | 2 +- |
80 |
+ 1 files changed, 1 insertions(+), 1 deletions(-) |
81 |
+ |
82 |
+diff --git a/source/QSAR/libsvmModel.C b/source/QSAR/libsvmModel.C |
83 |
+index 58ce4dc..1f24e15 100644 |
84 |
+--- a/source/QSAR/libsvmModel.C |
85 |
++++ b/source/QSAR/libsvmModel.C |
86 |
+@@ -81,7 +81,7 @@ void LibsvmModel::train() |
87 |
+ |
88 |
+ //free(prob); |
89 |
+ //free(prob->y); free(prob->x); |
90 |
+- svm_destroy_model((::svm_model*)svm_train_result_); |
91 |
++ svm_free_and_destroy_model((::svm_model**)svm_train_result_); |
92 |
+ } |
93 |
+ } |
94 |
+ |
95 |
|
96 |
diff --git a/sci-chemistry/ball/files/ball-9999-multilib.patch b/sci-chemistry/ball/files/ball-9999-multilib.patch |
97 |
new file mode 100644 |
98 |
index 0000000..317c402 |
99 |
--- /dev/null |
100 |
+++ b/sci-chemistry/ball/files/ball-9999-multilib.patch |
101 |
@@ -0,0 +1,39 @@ |
102 |
+From 5b8f4e58b4e54bcdfa6f287e01f91d9dfd4e5a14 Mon Sep 17 00:00:00 2001 |
103 |
+From: Justin Lecher <jlec@g.o> |
104 |
+Date: Sun, 25 Mar 2012 14:12:21 +0200 |
105 |
+Subject: [PATCH] Correct path for multilib installation. |
106 |
+ |
107 |
+Libraries should go into lib64 not lib on native 64bit. Therefore we can use the LIBDIR detected by cmake. |
108 |
+--- |
109 |
+ CMakeLists.txt | 8 ++++---- |
110 |
+ 1 files changed, 4 insertions(+), 4 deletions(-) |
111 |
+ |
112 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
113 |
+index 940ebf4..7eb3db4 100644 |
114 |
+--- a/CMakeLists.txt |
115 |
++++ b/CMakeLists.txt |
116 |
+@@ -426,8 +426,8 @@ SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin") |
117 |
+ ## These variables are used in all install-targets |
118 |
+ IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
119 |
+ SET(BALL_RUNTIME_INSTALL_DIRECTORY "bin") |
120 |
+- SET(BALL_LIBRARY_INSTALL_DIRECTORY "lib") |
121 |
+- SET(BALL_ARCHIVE_INSTALL_DIRECTORY "lib") |
122 |
++ SET(BALL_LIBRARY_INSTALL_DIRECTORY ${CMAKE_INSTALL_LIBDIR}) |
123 |
++ SET(BALL_ARCHIVE_INSTALL_DIRECTORY ${CMAKE_INSTALL_LIBDIR}) |
124 |
+ SET(BALL_HEADER_INSTALL_DIRECTORY ".") |
125 |
+ SET(BALL_DATA_INSTALL_DIRECTORY "share/BALL") |
126 |
+ SET(BALL_DOCUMENTATION_INSTALL_DIRECTORY "share/BALL/doc") |
127 |
+@@ -435,8 +435,8 @@ IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
128 |
+ SET(BALL_PYTHON_INSTALL_DIRECTORY "bin") |
129 |
+ SET(BALL_PLUGIN_INSTALL_DIRECTORY "bin") |
130 |
+ ELSE() |
131 |
+- SET(BALL_PYTHON_INSTALL_DIRECTORY "lib") |
132 |
+- SET(BALL_PLUGIN_INSTALL_DIRECTORY "lib") |
133 |
++ SET(BALL_PYTHON_INSTALL_DIRECTORY ${CMAKE_INSTALL_LIBDIR}) |
134 |
++ SET(BALL_PLUGIN_INSTALL_DIRECTORY ${CMAKE_INSTALL_LIBDIR}) |
135 |
+ ENDIF() |
136 |
+ ELSE() |
137 |
+ SET(BALL_BUNDLE_INSTALL_DIRECTORY "Applications") |
138 |
+-- |
139 |
+1.7.8.5 |
140 |
+ |