public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: sci-libs/mlpack/, sci-libs/mlpack/files/
@ 2013-02-28  0:44 Sebastien Fabbro
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastien Fabbro @ 2013-02-28  0:44 UTC (permalink / raw
  To: gentoo-commits

commit:     e1e2e501e3d433e142027ef6bbb72e1d93892068
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 28 00:44:00 2013 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Feb 28 00:44:00 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e1e2e501

sci-libs/mlpack: Added a patch to respect libdir, and debug flag for profiling and debugging (thanks Ryan Curtin)

Package-Manager: portage-2.2.0_alpha163

---
 sci-libs/mlpack/ChangeLog                          |    8 ++++++++
 sci-libs/mlpack/files/mlpack-1.0.4-libdir.patch    |   13 +++++++++++++
 ...{mlpack-1.0.4.ebuild => mlpack-1.0.4-r1.ebuild} |   11 ++++++++++-
 3 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/sci-libs/mlpack/ChangeLog b/sci-libs/mlpack/ChangeLog
index faaa8c9..aae0b96 100644
--- a/sci-libs/mlpack/ChangeLog
+++ b/sci-libs/mlpack/ChangeLog
@@ -2,6 +2,14 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*mlpack-1.0.4-r1 (28 Feb 2013)
+
+  28 Feb 2013; Sébastien Fabbro <bicatali@gentoo.org>
+  +files/mlpack-1.0.4-libdir.patch, +mlpack-1.0.4-r1.ebuild,
+  -mlpack-1.0.4.ebuild:
+  sci-libs/mlpack: Added a patch to respect libdir, and debug flag for profiling
+  and debugging (thanks Ryan Curtin)
+
 *mlpack-1.0.4 (25 Feb 2013)
 
   25 Feb 2013; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml,

diff --git a/sci-libs/mlpack/files/mlpack-1.0.4-libdir.patch b/sci-libs/mlpack/files/mlpack-1.0.4-libdir.patch
new file mode 100644
index 0000000..c22c811
--- /dev/null
+++ b/sci-libs/mlpack/files/mlpack-1.0.4-libdir.patch
@@ -0,0 +1,13 @@
+--- mlpack-1.0.4/src/mlpack/CMakeLists.txt.old	2013-02-08 16:45:45.218117489 -0500
++++ mlpack-1.0.4/src/mlpack/CMakeLists.txt	2013-02-08 16:45:59.938263211 -0500
+@@ -62,8 +62,8 @@
+ # be entered...
+ install(TARGETS mlpack
+   RUNTIME DESTINATION bin
+-  LIBRARY DESTINATION lib
+-  ARCHIVE DESTINATION lib)
++  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++  ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 
+ # For 'make test'.
+ add_custom_target(test

diff --git a/sci-libs/mlpack/mlpack-1.0.4.ebuild b/sci-libs/mlpack/mlpack-1.0.4-r1.ebuild
similarity index 78%
rename from sci-libs/mlpack/mlpack-1.0.4.ebuild
rename to sci-libs/mlpack/mlpack-1.0.4-r1.ebuild
index 09bd23f..21bbce8 100644
--- a/sci-libs/mlpack/mlpack-1.0.4.ebuild
+++ b/sci-libs/mlpack/mlpack-1.0.4-r1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://www.mlpack.org/files/${P}.tar.gz"
 LICENSE="LGPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc"
+IUSE="debug doc"
 
 RDEPEND="
 	dev-libs/boost
@@ -26,11 +26,20 @@ DEPEND="${DEPEND}
 DOCS=( HISTORY.txt )
 
 src_prepare() {
+	epatch "${FILESDIR}"/${P}-libdir.patch
 	sed -i \
 		-e "s:share/doc/mlpack:share/doc/${PF}:" \
 		CMakeLists.txt || die
 }
 
+src_configure() {
+	local mycmakeargs=(
+		$(cmake-utils_use debug DEBUG)
+		$(cmake-utils_use debug PROFILE)
+	)
+	cmake-utils_src_configure
+}
+
 src_compile() {
 	cmake-utils_src_compile all $(use doc && echo doc)
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/sci:master commit in: sci-libs/mlpack/, sci-libs/mlpack/files/
@ 2014-02-16 12:55 Reinis Danne
  0 siblings, 0 replies; 2+ messages in thread
From: Reinis Danne @ 2014-02-16 12:55 UTC (permalink / raw
  To: gentoo-commits

commit:     5c987fdca56ba60cde92b29ae4dbf04ba75f0709
Author:     Reinis Danne <rei4dan <AT> gmail <DOT> com>
AuthorDate: Sat Feb 15 23:09:25 2014 +0000
Commit:     Reinis Danne <rei4dan <AT> gmail <DOT> com>
CommitDate: Sat Feb 15 23:09:25 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=5c987fdc

sci-libs/mlpack: Fix build with FEATURES=test

---
 sci-libs/mlpack/ChangeLog                         |  4 ++++
 sci-libs/mlpack/files/mlpack-1.0.8-uint32_t.patch | 16 ++++++++++++++++
 sci-libs/mlpack/mlpack-1.0.8.ebuild               |  4 +++-
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/sci-libs/mlpack/ChangeLog b/sci-libs/mlpack/ChangeLog
index 6d2e24f..b3133f6 100644
--- a/sci-libs/mlpack/ChangeLog
+++ b/sci-libs/mlpack/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  15 Feb 2014; Reinis Danne <rei4dan@gmail.com> mlpack-1.0.8.ebuild,
+  +files/mlpack-1.0.8-uint32_t.patch:
+  Add patch to fix build failure with FEATURES=test.
+
 *mlpack-1.0.8 (10 Feb 2014)
 
   10 Feb 2014; Sébastien Fabbro <bicatali@gentoo.org> +mlpack-1.0.8.ebuild,

diff --git a/sci-libs/mlpack/files/mlpack-1.0.8-uint32_t.patch b/sci-libs/mlpack/files/mlpack-1.0.8-uint32_t.patch
new file mode 100644
index 0000000..f2dbc41
--- /dev/null
+++ b/sci-libs/mlpack/files/mlpack-1.0.8-uint32_t.patch
@@ -0,0 +1,16 @@
+--- src/mlpack/core/math/random.hpp	2014-02-15 20:47:24.897408021 +0200
++++ src/mlpack/core/math/random.hpp	2014-02-15 20:49:36.190907865 +0200
+@@ -26,10 +26,13 @@
+ #include <float.h>
+ 
+ #include <boost/random.hpp>
++#include <boost/cstdint.hpp>
+ 
+ namespace mlpack {
+ namespace math /** Miscellaneous math routines. */ {
+ 
++using boost::uint32_t;
++
+ // Annoying Boost versioning issues.
+ #include <boost/version.hpp>
+ 

diff --git a/sci-libs/mlpack/mlpack-1.0.8.ebuild b/sci-libs/mlpack/mlpack-1.0.8.ebuild
index ad1a4c4..3a6691b 100644
--- a/sci-libs/mlpack/mlpack-1.0.8.ebuild
+++ b/sci-libs/mlpack/mlpack-1.0.8.ebuild
@@ -28,7 +28,9 @@ DEPEND="${DEPEND}
 DOCS=( HISTORY.txt )
 
 src_prepare() {
-	epatch "${FILESDIR}"/${PN}-1.0.4-libdir.patch
+	epatch \
+		"${FILESDIR}/${PN}-1.0.4-libdir.patch" \
+		"${FILESDIR}/${PN}-1.0.8-uint32_t.patch"
 	sed -i \
 		-e "s:share/doc/mlpack:share/doc/${PF}:" \
 		-e 's/-O3//g' \


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-16 12:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-16 12:55 [gentoo-commits] proj/sci:master commit in: sci-libs/mlpack/, sci-libs/mlpack/files/ Reinis Danne
  -- strict thread matches above, loose matches on Subject: below --
2013-02-28  0:44 Sebastien Fabbro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox