Gentoo Archives: gentoo-commits

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