Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liblinear/
Date: Sun, 18 Nov 2018 01:18:22
Message-Id: 1542503872.1add77d9ac1705d6b2732c7593f62e0d48f20e2e.whissi@gentoo
1 commit: 1add77d9ac1705d6b2732c7593f62e0d48f20e2e
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 18 00:14:31 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 18 01:17:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1add77d9
7
8 dev-libs/liblinear: bump to v221
9
10 - EAPI bumped to EAPI=7
11
12 Package-Manager: Portage-2.3.51, Repoman-2.3.12
13 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
14
15 dev-libs/liblinear/Manifest | 1 +
16 dev-libs/liblinear/liblinear-221.ebuild | 65 +++++++++++++++++++++++++++++++++
17 2 files changed, 66 insertions(+)
18
19 diff --git a/dev-libs/liblinear/Manifest b/dev-libs/liblinear/Manifest
20 index 8615836097c..159c00a21aa 100644
21 --- a/dev-libs/liblinear/Manifest
22 +++ b/dev-libs/liblinear/Manifest
23 @@ -1,3 +1,4 @@
24 DIST liblinear-210.tar.gz 381662 BLAKE2B d64d217f7ba67605821062f66d4e9f130f4f2396dde14cd35532bad11f4af4f34bc231a1e3796ba2d0e14f84830ec05c6358d40018e048f4ae3fa62db2b1d0d7 SHA512 4e4558467f2ebb3dbd640c172b1129c8e5981c231a043abb0398a803252559795604a34992baee50ae6689646050733d3a908d7d76f8b1c94309b859eae7f8c8
25 DIST liblinear-211.tar.gz 506507 BLAKE2B 31b7677dfbf9dbb060a28dc19c63db4244e55c4ddc984a8c9ccadc517beabaf8fabef04488366cd7375608412dad3c37d4f09fe27b37b69e69209d32379a9e45 SHA512 005a47b3a8ff27f9890ce10549478be4b041c92d162815fba33dd56db7c014e6958b3e7e161451490c34d88df2161366365bd41b1a48d6a77034edc346a0fc3a
26 DIST liblinear-220.tar.gz 517302 BLAKE2B 6aa28c3357f830441ee3cb2e9691d4952e4d4db6592622f6e93be1ed12c8f871e4a9c98abcb35b472a227005bad0cc1e6076678358dc324a7453cbbfb34a0866 SHA512 cde798b7cb221513cf2b8bbe134d6c3dce1ed26c43504d8c09dbed93b82ca47bfd271d4dd3d03384187273906ce140d4ce4418a4a8c21410015ec1631c1042c6
27 +DIST liblinear-221.tar.gz 520288 BLAKE2B b28c837488f5827ae76f32dc14a1b92027eb5ff123a15c07e9974197eea842c8247420632d259defdba3968383749538c1ed16f6b5c982fad87b3bc52572b485 SHA512 abf21f9030e67886d88a95ad1699e566f8b67bb3bd23253f1f656460911f92a5c3c184fe127390d6100bbf9970cf7a246ef3611b0788907c35a33286228f1753
28
29 diff --git a/dev-libs/liblinear/liblinear-221.ebuild b/dev-libs/liblinear/liblinear-221.ebuild
30 new file mode 100644
31 index 00000000000..1aaede97f49
32 --- /dev/null
33 +++ b/dev-libs/liblinear/liblinear-221.ebuild
34 @@ -0,0 +1,65 @@
35 +# Copyright 1999-2018 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI="7"
39 +inherit multilib toolchain-funcs
40 +
41 +DESCRIPTION="A Library for Large Linear Classification"
42 +HOMEPAGE="https://www.csie.ntu.edu.tw/~cjlin/liblinear/ https://github.com/cjlin1/liblinear"
43 +SRC_URI="https://github.com/cjlin1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0/3"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-macos"
48 +IUSE="blas"
49 +
50 +RDEPEND="
51 + blas? ( virtual/blas )
52 +"
53 +DEPEND="
54 + ${RDEPEND}
55 + blas? ( virtual/pkgconfig )
56 +"
57 +
58 +src_prepare() {
59 + default
60 +
61 + sed -i \
62 + -e '/^AR/s|=|?=|g' \
63 + -e '/^RANLIB/s|=|?=|g' \
64 + -e '/^CFLAGS/d;/^CXXFLAGS/d' \
65 + blas/Makefile || die
66 + sed -i \
67 + -e 's|make|$(MAKE)|g' \
68 + -e '/$(LIBS)/s|$(CFLAGS)|& $(LDFLAGS)|g' \
69 + -e '/^CFLAGS/d;/^CXXFLAGS/d' \
70 + -e 's|$${SHARED_LIB_FLAG}|& $(LDFLAGS)|g' \
71 + Makefile || die
72 + if use blas; then
73 + sed -i -e 's:blas/blas.a::g' Makefile || die
74 + fi
75 +}
76 +
77 +src_compile() {
78 + emake \
79 + CC="$(tc-getCC)" \
80 + CXX="$(tc-getCXX)" \
81 + CFLAGS="${CFLAGS} -fPIC" \
82 + CXXFLAGS="${CXXFLAGS} -fPIC" \
83 + AR="$(tc-getAR) rcv" \
84 + RANLIB="$(tc-getRANLIB)" \
85 + LIBS="$(usex blas "$( $(tc-getPKG_CONFIG) --libs blas )" blas/blas.a)" \
86 + lib all
87 +}
88 +
89 +src_install() {
90 + dolib.so ${PN}.so.3
91 + dosym ${PN}.so.3 /usr/$(get_libdir)/${PN}.so
92 +
93 + newbin predict ${PN}-predict
94 + newbin train ${PN}-train
95 +
96 + doheader linear.h
97 +
98 + dodoc README
99 +}