1 |
commit: 2feeebed0a6942e88826489e710605ced05f04d0 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 28 08:21:16 2015 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 29 04:03:58 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2feeebed |
7 |
|
8 |
dev-libs/liblinear: Version bump. |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
dev-libs/liblinear/Manifest | 1 + |
13 |
dev-libs/liblinear/liblinear-210.ebuild | 51 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/liblinear/Manifest b/dev-libs/liblinear/Manifest |
17 |
index a5af098..bb890c7 100644 |
18 |
--- a/dev-libs/liblinear/Manifest |
19 |
+++ b/dev-libs/liblinear/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST liblinear-196.tar.gz 361430 SHA256 e61297bf72f882ba891ec7b77fbc633d6d933738c1d61780917d75747bd0539c SHA512 6ed1ed45a98c1ff050537d4dd3234088c9ec394d339456168133200d074d1eb5ce80391dd2bf99b1a74e3bd4907ca7b04a5dd95bc42fcfad84ec8a6c38a7feb9 WHIRLPOOL a3622c23b29a0c40e00d1af8d53323c2131123d568223ab54a9dcd0c746906a576f57fd5e4d207643283a655647ebd66a9ac13c31fc36a2ffbac2e0bfdfcd98e |
22 |
+DIST liblinear-210.tar.gz 381662 SHA256 9e559d1f0714799d4cf7742fb186012459285e25bed9c5847d5d8032daefc8de SHA512 4e4558467f2ebb3dbd640c172b1129c8e5981c231a043abb0398a803252559795604a34992baee50ae6689646050733d3a908d7d76f8b1c94309b859eae7f8c8 WHIRLPOOL 6756930f5fec958f3f137b9757a6a3704d1a5ab799d1634e2223990847ebe05a2602a77e4310a4f653434230ca47c0053de2ff3a03dc1cb265f85a6148db6f5d |
23 |
|
24 |
diff --git a/dev-libs/liblinear/liblinear-210.ebuild b/dev-libs/liblinear/liblinear-210.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..db3c49f |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/liblinear/liblinear-210.ebuild |
29 |
@@ -0,0 +1,51 @@ |
30 |
+# Copyright 1999-2015 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+inherit multilib toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="A Library for Large Linear Classification" |
38 |
+HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/liblinear/ https://github.com/cjlin1/liblinear" |
39 |
+SRC_URI="https://github.com/cjlin1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="BSD" |
42 |
+SLOT="0/3" |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ sed -i \ |
47 |
+ -e '/^AR/s|=|?=|g' \ |
48 |
+ -e '/^RANLIB/s|=|?=|g' \ |
49 |
+ -e '/^CFLAGS/d;/^CXXFLAGS/d' \ |
50 |
+ blas/Makefile || die |
51 |
+ sed -i \ |
52 |
+ -e 's|make|$(MAKE)|g' \ |
53 |
+ -e '/$(LIBS)/s|$(CFLAGS)|& $(LDFLAGS)|g' \ |
54 |
+ -e '/^CFLAGS/d;/^CXXFLAGS/d' \ |
55 |
+ -e 's|$${SHARED_LIB_FLAG}|& $(LDFLAGS)|g' \ |
56 |
+ Makefile || die |
57 |
+} |
58 |
+ |
59 |
+src_compile() { |
60 |
+ CC=$(tc-getCC) \ |
61 |
+ CXX=$(tc-getCXX) \ |
62 |
+ CFLAGS="${CFLAGS} -fPIC" \ |
63 |
+ CXXFLAGS="${CXXFLAGS} -fPIC" \ |
64 |
+ AR="$(tc-getAR) rcv" \ |
65 |
+ RANLIB="$(tc-getRANLIB)" \ |
66 |
+ emake lib all |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ dolib ${PN}.so.3 |
71 |
+ dosym ${PN}.so.3 /usr/$(get_libdir)/${PN}.so |
72 |
+ |
73 |
+ newbin predict ${PN}-predict |
74 |
+ newbin train ${PN}-train |
75 |
+ |
76 |
+ insinto /usr/include |
77 |
+ doins linear.h |
78 |
+ |
79 |
+ dodoc README |
80 |
+} |