public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/ball/files/, sci-chemistry/ball/
Date: Tue,  3 Apr 2012 18:07:46 +0000 (UTC)	[thread overview]
Message-ID: <1332684777.b17af5ac5341940c9b87e44b33f7af4b9e6adcaf.jlec@gentoo> (raw)

commit:     b17af5ac5341940c9b87e44b33f7af4b9e6adcaf
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 25 14:12:57 2012 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Mar 25 14:12:57 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b17af5ac

Fix patches to be in line with tree

(Portage version: 2.2.0_alpha95/git/Linux x86_64, unsigned Manifest commit)

---
 sci-chemistry/ball/ChangeLog                      |    4 ++
 sci-chemistry/ball/ball-9999.ebuild               |   12 +++----
 sci-chemistry/ball/files/ball-9999-libsvm.patch   |   24 +++++++++++++
 sci-chemistry/ball/files/ball-9999-multilib.patch |   39 +++++++++++++++++++++
 4 files changed, 72 insertions(+), 7 deletions(-)

diff --git a/sci-chemistry/ball/ChangeLog b/sci-chemistry/ball/ChangeLog
index dfe1c65..851aa6f 100644
--- a/sci-chemistry/ball/ChangeLog
+++ b/sci-chemistry/ball/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  25 Mar 2012; Justin Lecher <jlec@gentoo.org> ball-9999.ebuild,
+  +files/ball-9999-libsvm.patch, +files/ball-9999-multilib.patch:
+  Fix patches to be in line with tree
+
   25 Mar 2012; Justin Lecher <jlec@gentoo.org> ball-9999.ebuild:
   Correct usage of python.eclass
 

diff --git a/sci-chemistry/ball/ball-9999.ebuild b/sci-chemistry/ball/ball-9999.ebuild
index 1689676..4fac56b 100644
--- a/sci-chemistry/ball/ball-9999.ebuild
+++ b/sci-chemistry/ball/ball-9999.ebuild
@@ -42,19 +42,17 @@ DEPEND="${RDEPEND}
 	sys-devel/bison
 	virtual/yacc"
 
+PATCHES=(
+	"${FILESDIR}"/${P}-multilib.patch
+	"${FILESDIR}"/${P}-libsvm.patch
+	)
+
 pkg_setup() {
 	use python \
 		&& python_set_active_version 2 \
 		&& python_pkg_setup
 }
 
-src_prepare() {
-	sed \
-		-e '/INSTALL_DIRECTORY/s:"lib":${CMAKE_INSTALL_LIBDIR}:g' \
-		-i CMakeLists.txt || die
-	base_src_prepare
-}
-
 src_configure() {
 	local mycmakeargs=(
 		$(cmake-utils_use_use threads FFTW_THREADS)

diff --git a/sci-chemistry/ball/files/ball-9999-libsvm.patch b/sci-chemistry/ball/files/ball-9999-libsvm.patch
new file mode 100644
index 0000000..c85506d
--- /dev/null
+++ b/sci-chemistry/ball/files/ball-9999-libsvm.patch
@@ -0,0 +1,24 @@
+From 60a5f677587046b3e2077872c21b005bad549b85 Mon Sep 17 00:00:00 2001
+Message-Id: <60a5f677587046b3e2077872c21b005bad549b85.1332678065.git.jlec@gentoo.org>
+From: Justin Lecher <jlec@gentoo.org>
+Date: Sun, 25 Mar 2012 14:15:16 +0200
+Subject: [PATCH 1/2] Correct deprecated usage of svm_destroy_model to
+ svm_free_and_destroy_model
+
+---
+ source/QSAR/libsvmModel.C |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/source/QSAR/libsvmModel.C b/source/QSAR/libsvmModel.C
+index 58ce4dc..1f24e15 100644
+--- a/source/QSAR/libsvmModel.C
++++ b/source/QSAR/libsvmModel.C
+@@ -81,7 +81,7 @@ void LibsvmModel::train()
+ 		
+ 		//free(prob);
+ 		//free(prob->y); free(prob->x);
+-		svm_destroy_model((::svm_model*)svm_train_result_);
++		svm_free_and_destroy_model((::svm_model**)svm_train_result_);
+ 	}
+ }
+ 

diff --git a/sci-chemistry/ball/files/ball-9999-multilib.patch b/sci-chemistry/ball/files/ball-9999-multilib.patch
new file mode 100644
index 0000000..317c402
--- /dev/null
+++ b/sci-chemistry/ball/files/ball-9999-multilib.patch
@@ -0,0 +1,39 @@
+From 5b8f4e58b4e54bcdfa6f287e01f91d9dfd4e5a14 Mon Sep 17 00:00:00 2001
+From: Justin Lecher <jlec@gentoo.org>
+Date: Sun, 25 Mar 2012 14:12:21 +0200
+Subject: [PATCH] Correct path for multilib installation.
+
+Libraries should go into lib64 not lib on native 64bit. Therefore we can use the LIBDIR detected by cmake.
+---
+ CMakeLists.txt |    8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 940ebf4..7eb3db4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -426,8 +426,8 @@ SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
+ ## These variables are used in all install-targets
+ IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ 	SET(BALL_RUNTIME_INSTALL_DIRECTORY "bin")
+-	SET(BALL_LIBRARY_INSTALL_DIRECTORY "lib")
+-	SET(BALL_ARCHIVE_INSTALL_DIRECTORY "lib")
++	SET(BALL_LIBRARY_INSTALL_DIRECTORY ${CMAKE_INSTALL_LIBDIR})
++	SET(BALL_ARCHIVE_INSTALL_DIRECTORY ${CMAKE_INSTALL_LIBDIR})
+ 	SET(BALL_HEADER_INSTALL_DIRECTORY   ".")
+ 	SET(BALL_DATA_INSTALL_DIRECTORY    "share/BALL")
+ 	SET(BALL_DOCUMENTATION_INSTALL_DIRECTORY    "share/BALL/doc")
+@@ -435,8 +435,8 @@ IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ 		SET(BALL_PYTHON_INSTALL_DIRECTORY  "bin")
+ 		SET(BALL_PLUGIN_INSTALL_DIRECTORY  "bin")
+ 	ELSE()
+-		SET(BALL_PYTHON_INSTALL_DIRECTORY  "lib")
+-		SET(BALL_PLUGIN_INSTALL_DIRECTORY  "lib")
++		SET(BALL_PYTHON_INSTALL_DIRECTORY  ${CMAKE_INSTALL_LIBDIR})
++		SET(BALL_PLUGIN_INSTALL_DIRECTORY  ${CMAKE_INSTALL_LIBDIR})
+ 	ENDIF()
+ ELSE()
+ 	SET(BALL_BUNDLE_INSTALL_DIRECTORY  					"Applications")
+-- 
+1.7.8.5
+



             reply	other threads:[~2012-04-03 18:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03 18:07 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-12-09  8:38 [gentoo-commits] proj/sci:master commit in: sci-chemistry/ball/files/, sci-chemistry/ball/ Justin Lecher

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=1332684777.b17af5ac5341940c9b87e44b33f7af4b9e6adcaf.jlec@gentoo \
    --to=jlec@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