Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libsvm/
Date: Sun, 29 Dec 2019 08:53:38
Message-Id: 1577609591.761cb984223d8eb9cd6bdda7a2eb354891b62097.soap@gentoo
1 commit: 761cb984223d8eb9cd6bdda7a2eb354891b62097
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 29 08:53:11 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 29 08:53:11 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=761cb984
7
8 sci-libs/libsvm: Remove old
9
10 Package-Manager: Portage-2.3.83, Repoman-2.3.20
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sci-libs/libsvm/Manifest | 1 -
14 sci-libs/libsvm/libsvm-3.21.ebuild | 117 -------------------------------------
15 2 files changed, 118 deletions(-)
16
17 diff --git a/sci-libs/libsvm/Manifest b/sci-libs/libsvm/Manifest
18 index b0eb77e7968..34987fc1522 100644
19 --- a/sci-libs/libsvm/Manifest
20 +++ b/sci-libs/libsvm/Manifest
21 @@ -1,2 +1 @@
22 -DIST libsvm-3.21.tar.gz 847291 BLAKE2B 49790de8efd1f30b5009ba1d1a03c85e99b3ae78cfff83362146a19fbb93c8fe018e453478ca13ede8ae54836b422c5cab176ac8c53f7a63afc97fecbdfbcaf6 SHA512 697a7505100e48746a87e3e4ab025524fa581856320da3a187ac501138ce0a5bc7885ff37454ae5e75d6b0eab94e368b6bcd36601ad18db3b2fb35d2f360520a
23 DIST libsvm-3.22.tar.gz 850563 BLAKE2B 824451dd2cafb7f2546d510d2c516dee67c27e586d5b16557a3c23e0c372cd577af5a322e24f70df6cda66e0a58f2e4d70017e6155a1d211ad3c728f840bfa2b SHA512 80a22fd2c2a82f70b8279fa5d8c5a2838b10ee439cf6d725816d608f8e45990ba1780ae6750cad78b25c1c18daf2c2315b342b9e329affbd5729d6fd7da87f7a
24
25 diff --git a/sci-libs/libsvm/libsvm-3.21.ebuild b/sci-libs/libsvm/libsvm-3.21.ebuild
26 deleted file mode 100644
27 index 60900fafeb2..00000000000
28 --- a/sci-libs/libsvm/libsvm-3.21.ebuild
29 +++ /dev/null
30 @@ -1,117 +0,0 @@
31 -# Copyright 1999-2019 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -
36 -PYTHON_COMPAT=( python{2_7,3_5} )
37 -
38 -inherit flag-o-matic java-pkg-opt-2 python-r1 toolchain-funcs
39 -
40 -DESCRIPTION="Library for Support Vector Machines"
41 -HOMEPAGE="https://www.csie.ntu.edu.tw/~cjlin/libsvm/"
42 -SRC_URI="https://www.csie.ntu.edu.tw/~cjlin/libsvm/${P}.tar.gz"
43 -
44 -LICENSE="BSD"
45 -SLOT="0"
46 -KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
47 -IUSE="java openmp python tools"
48 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
49 -
50 -DEPEND="
51 - java? ( >=virtual/jdk-1.4 )
52 - python? ( ${PYTHON_DEPS} )"
53 -RDEPEND="
54 - java? ( >=virtual/jre-1.4 )
55 - python? ( ${PYTHON_DEPS} )
56 - tools? ( sci-visualization/gnuplot )"
57 -
58 -PATCHES=(
59 - "${FILESDIR}/3.11-openmp.patch"
60 - "${FILESDIR}/3.14-makefile.patch"
61 -)
62 -
63 -pkg_setup() {
64 - if use openmp; then
65 - if ! tc-has-openmp; then
66 - ewarn "OpenMP is not supported by your currently selected compiler"
67 -
68 - if tc-is-clang; then
69 - ewarn "OpenMP support in sys-devel/clang is provided by sys-libs/libomp,"
70 - ewarn "which you will need to build ${CATEGORY}/${PN} for USE=\"openmp\""
71 - fi
72 -
73 - die "need openmp capable compiler"
74 - fi
75 -
76 - append-cflags -fopenmp
77 - append-cxxflags -fopenmp
78 - append-cppflags -DOPENMP
79 - fi
80 -}
81 -
82 -src_prepare() {
83 - default
84 -
85 - sed -i -e "s@\.\./@${EPREFIX}/usr/bin/@g" tools/*.py \
86 - || die "Failed to fix paths in python files"
87 - sed -i -e "s|./grid.py|${EPREFIX}/usr/bin/svm-grid|g" tools/*.py \
88 - || die "Failed to fix paths for svm-grid"
89 - sed -i -e 's/grid.py/svm-grid/g' tools/grid.py \
90 - || die "Failed to rename grid.py to svm-grid"
91 -
92 - if use java; then
93 - local JAVAC_FLAGS="$(java-pkg_javac-args)"
94 - sed -i \
95 - -e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \
96 - java/Makefile || die "Failed to fix java makefile"
97 - fi
98 - tc-export CXX CC
99 -}
100 -
101 -src_compile() {
102 - default
103 - use java && emake -C java
104 -}
105 -
106 -src_install() {
107 - dobin svm-train svm-predict svm-scale
108 - dolib.so *.so*
109 - doheader svm.h
110 -
111 - DOCS=( README )
112 -
113 - if use tools; then
114 - local t
115 - for t in tools/*.py; do
116 - python_foreach_impl python_newscript ${t} svm-$(basename ${t} .py)
117 - done
118 -
119 - mv tools/README{,.tools} || die
120 - DOCS+=( tools/README.tools )
121 -
122 - insinto /usr/share/doc/${PF}/examples
123 - docompress -x /usr/share/doc/${PF}/examples
124 - doins heart_scale
125 - doins -r svm-toy
126 - fi
127 -
128 - if use python ; then
129 - installation() {
130 - touch python/__init__.py || die
131 - python_moduleinto libsvm
132 - python_domodule python/*.py
133 - }
134 - python_foreach_impl installation
135 -
136 - mv python/README{,.python} || die
137 - DOCS+=( python/README.python )
138 - fi
139 -
140 - HTML_DOCS=( FAQ.html )
141 - if use java; then
142 - java-pkg_dojar java/libsvm.jar
143 - HTML_DOCS+=( java/test_applet.html )
144 - fi
145 -
146 - einstalldocs
147 -}