diff options
author | Jeroen Roovers <jer@gentoo.org> | 2015-09-28 10:21:16 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2015-09-29 06:03:58 +0200 |
commit | 2feeebed0a6942e88826489e710605ced05f04d0 (patch) | |
tree | 8fab05c4db661095108da4231494c9aad8bc5101 /dev-libs/liblinear/liblinear-210.ebuild | |
parent | www-client/chromium: Fix build with clang (diff) | |
download | gentoo-2feeebed0a6942e88826489e710605ced05f04d0.tar.gz gentoo-2feeebed0a6942e88826489e710605ced05f04d0.tar.bz2 gentoo-2feeebed0a6942e88826489e710605ced05f04d0.zip |
dev-libs/liblinear: Version bump.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-libs/liblinear/liblinear-210.ebuild')
-rw-r--r-- | dev-libs/liblinear/liblinear-210.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-libs/liblinear/liblinear-210.ebuild b/dev-libs/liblinear/liblinear-210.ebuild new file mode 100644 index 000000000000..db3c49f45ead --- /dev/null +++ b/dev-libs/liblinear/liblinear-210.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit multilib toolchain-funcs + +DESCRIPTION="A Library for Large Linear Classification" +HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/liblinear/ https://github.com/cjlin1/liblinear" +SRC_URI="https://github.com/cjlin1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/3" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +src_prepare() { + sed -i \ + -e '/^AR/s|=|?=|g' \ + -e '/^RANLIB/s|=|?=|g' \ + -e '/^CFLAGS/d;/^CXXFLAGS/d' \ + blas/Makefile || die + sed -i \ + -e 's|make|$(MAKE)|g' \ + -e '/$(LIBS)/s|$(CFLAGS)|& $(LDFLAGS)|g' \ + -e '/^CFLAGS/d;/^CXXFLAGS/d' \ + -e 's|$${SHARED_LIB_FLAG}|& $(LDFLAGS)|g' \ + Makefile || die +} + +src_compile() { + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + AR="$(tc-getAR) rcv" \ + RANLIB="$(tc-getRANLIB)" \ + emake lib all +} + +src_install() { + dolib ${PN}.so.3 + dosym ${PN}.so.3 /usr/$(get_libdir)/${PN}.so + + newbin predict ${PN}-predict + newbin train ${PN}-train + + insinto /usr/include + doins linear.h + + dodoc README +} |