Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/mlpack/, sci-libs/mlpack/files/
Date: Thu, 28 Feb 2013 00:44:27
Message-Id: 1362012240.e1e2e501e3d433e142027ef6bbb72e1d93892068.bicatali@gentoo
1 commit: e1e2e501e3d433e142027ef6bbb72e1d93892068
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 28 00:44:00 2013 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 28 00:44:00 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e1e2e501
7
8 sci-libs/mlpack: Added a patch to respect libdir, and debug flag for profiling and debugging (thanks Ryan Curtin)
9
10 Package-Manager: portage-2.2.0_alpha163
11
12 ---
13 sci-libs/mlpack/ChangeLog | 8 ++++++++
14 sci-libs/mlpack/files/mlpack-1.0.4-libdir.patch | 13 +++++++++++++
15 ...{mlpack-1.0.4.ebuild => mlpack-1.0.4-r1.ebuild} | 11 ++++++++++-
16 3 files changed, 31 insertions(+), 1 deletions(-)
17
18 diff --git a/sci-libs/mlpack/ChangeLog b/sci-libs/mlpack/ChangeLog
19 index faaa8c9..aae0b96 100644
20 --- a/sci-libs/mlpack/ChangeLog
21 +++ b/sci-libs/mlpack/ChangeLog
22 @@ -2,6 +2,14 @@
23 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
24 # $Header: $
25
26 +*mlpack-1.0.4-r1 (28 Feb 2013)
27 +
28 + 28 Feb 2013; Sébastien Fabbro <bicatali@g.o>
29 + +files/mlpack-1.0.4-libdir.patch, +mlpack-1.0.4-r1.ebuild,
30 + -mlpack-1.0.4.ebuild:
31 + sci-libs/mlpack: Added a patch to respect libdir, and debug flag for profiling
32 + and debugging (thanks Ryan Curtin)
33 +
34 *mlpack-1.0.4 (25 Feb 2013)
35
36 25 Feb 2013; Sébastien Fabbro <bicatali@g.o> +metadata.xml,
37
38 diff --git a/sci-libs/mlpack/files/mlpack-1.0.4-libdir.patch b/sci-libs/mlpack/files/mlpack-1.0.4-libdir.patch
39 new file mode 100644
40 index 0000000..c22c811
41 --- /dev/null
42 +++ b/sci-libs/mlpack/files/mlpack-1.0.4-libdir.patch
43 @@ -0,0 +1,13 @@
44 +--- mlpack-1.0.4/src/mlpack/CMakeLists.txt.old 2013-02-08 16:45:45.218117489 -0500
45 ++++ mlpack-1.0.4/src/mlpack/CMakeLists.txt 2013-02-08 16:45:59.938263211 -0500
46 +@@ -62,8 +62,8 @@
47 + # be entered...
48 + install(TARGETS mlpack
49 + RUNTIME DESTINATION bin
50 +- LIBRARY DESTINATION lib
51 +- ARCHIVE DESTINATION lib)
52 ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
53 ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
54 +
55 + # For 'make test'.
56 + add_custom_target(test
57
58 diff --git a/sci-libs/mlpack/mlpack-1.0.4.ebuild b/sci-libs/mlpack/mlpack-1.0.4-r1.ebuild
59 similarity index 78%
60 rename from sci-libs/mlpack/mlpack-1.0.4.ebuild
61 rename to sci-libs/mlpack/mlpack-1.0.4-r1.ebuild
62 index 09bd23f..21bbce8 100644
63 --- a/sci-libs/mlpack/mlpack-1.0.4.ebuild
64 +++ b/sci-libs/mlpack/mlpack-1.0.4-r1.ebuild
65 @@ -13,7 +13,7 @@ SRC_URI="http://www.mlpack.org/files/${P}.tar.gz"
66 LICENSE="LGPL-3"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
69 -IUSE="doc"
70 +IUSE="debug doc"
71
72 RDEPEND="
73 dev-libs/boost
74 @@ -26,11 +26,20 @@ DEPEND="${DEPEND}
75 DOCS=( HISTORY.txt )
76
77 src_prepare() {
78 + epatch "${FILESDIR}"/${P}-libdir.patch
79 sed -i \
80 -e "s:share/doc/mlpack:share/doc/${PF}:" \
81 CMakeLists.txt || die
82 }
83
84 +src_configure() {
85 + local mycmakeargs=(
86 + $(cmake-utils_use debug DEBUG)
87 + $(cmake-utils_use debug PROFILE)
88 + )
89 + cmake-utils_src_configure
90 +}
91 +
92 src_compile() {
93 cmake-utils_src_compile all $(use doc && echo doc)
94 }