Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/libsvm: ChangeLog libsvm-3.11.ebuild
Date: Thu, 29 Dec 2011 19:52:52
Message-Id: 20111229195241.508E12004B@flycatcher.gentoo.org
1 bicatali 11/12/29 19:52:41
2
3 Modified: ChangeLog
4 Added: libsvm-3.11.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.10.41/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.24 sci-libs/libsvm/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.24&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/ChangeLog?rev=1.24&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/ChangeLog?r1=1.23&r2=1.24
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v
20 retrieving revision 1.23
21 retrieving revision 1.24
22 diff -u -r1.23 -r1.24
23 --- ChangeLog 9 Aug 2011 04:46:36 -0000 1.23
24 +++ ChangeLog 29 Dec 2011 19:52:41 -0000 1.24
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-libs/libsvm
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.23 2011/08/09 04:46:36 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/ChangeLog,v 1.24 2011/12/29 19:52:41 bicatali Exp $
30 +
31 +*libsvm-3.11 (29 Dec 2011)
32 +
33 + 29 Dec 2011; Sébastien Fabbro <bicatali@g.o>
34 + +files/3.11-makefile.patch, +files/3.11-openmp.patch, +libsvm-3.11.ebuild:
35 + Version bump
36
37 *libsvm-3.1 (09 Aug 2011)
38
39
40
41
42 1.1 sci-libs/libsvm/libsvm-3.11.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/libsvm-3.11.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/libsvm-3.11.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libsvm-3.11.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libsvm/libsvm-3.11.ebuild,v 1.1 2011/12/29 19:52:41 bicatali Exp $
52
53 EAPI="4"
54 SUPPORT_PYTHON_ABIS="1"
55
56 inherit eutils java-pkg-opt-2 python flag-o-matic toolchain-funcs
57
58 DESCRIPTION="Library for Support Vector Mahcines"
59 HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/libsvm/"
60 SRC_URI="http://www.csie.ntu.edu.tw/~cjlin/libsvm/${P}.tar.gz"
61
62 LICENSE="BSD"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
65 IUSE="java openmp python tools"
66
67 DEPEND="java? ( >=virtual/jdk-1.4 )"
68 RDEPEND="${DEPEND}
69 tools? ( sci-visualization/gnuplot )"
70
71 pkg_setup() {
72 if use openmp; then
73 if [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
74 ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
75 die "Need an OpenMP capable compiler"
76 else
77 append-ldflags -fopenmp
78 append-cxxflags -fopenmp
79 fi
80 append-cxxflags -DOPENMP
81 fi
82 use python && python_pkg_setup
83 }
84
85 src_prepare() {
86 epatch "${FILESDIR}"/${PV}-{makefile,openmp}.patch
87
88 sed -i -e "s@\.\./@${EPREFIX}/usr/bin/@g" tools/*.py \
89 || die "Failed to fix paths in python files"
90 if use java; then
91 local JAVAC_FLAGS="$(java-pkg_javac-args)"
92 sed -i \
93 -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \
94 java/Makefile || die "Failed to fix java makefile"
95 fi
96 }
97
98 src_compile() {
99 emake
100 use java && emake -C java
101 }
102
103 src_install() {
104 dobin svm-train svm-predict svm-scale
105 dolib.so *.so*
106 insinto /usr/include
107 doins svm.h
108 dohtml FAQ.html
109 dodoc README
110
111 if use tools; then
112 local t
113 for t in tools/*.py; do
114 newbin ${t} svm-$(basename ${t} .py)
115 done
116 newdoc tools/README README.tools
117 insinto /usr/share/doc/${PF}
118 doins heart_scale
119 doins -r svm-toy
120 fi
121
122 if use python ; then
123 installation() {
124 insinto $(python_get_sitedir)
125 doins python/*.py
126 }
127 python_execute_function installation
128 newdoc python/README README.python
129 fi
130
131 if use java; then
132 java-pkg_dojar java/libsvm.jar
133 dohtml java/test_applet.html
134 fi
135 }