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