From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D4CC1138827 for ; Sat, 3 Oct 2015 07:49:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3895121C011; Sat, 3 Oct 2015 07:49:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D83C021C011 for ; Sat, 3 Oct 2015 07:49:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6611934087C for ; Sat, 3 Oct 2015 07:49:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6AC58207 for ; Sat, 3 Oct 2015 07:49:32 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1443858559.207e19f486d92c24aae0dd2e8cb6254b26fb174d.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liblinear/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/liblinear/liblinear-210-r1.ebuild X-VCS-Directories: dev-libs/liblinear/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 207e19f486d92c24aae0dd2e8cb6254b26fb174d X-VCS-Branch: master Date: Sat, 3 Oct 2015 07:49:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 44cd0b55-a9bd-483d-b335-d1e792d916b3 X-Archives-Hash: 41fb54e7c476dffc43b6ef6744c22ffc commit: 207e19f486d92c24aae0dd2e8cb6254b26fb174d Author: Jeroen Roovers gentoo org> AuthorDate: Sat Oct 3 07:49:02 2015 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sat Oct 3 07:49:19 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=207e19f4 dev-libs/liblinear: Add IUSE=blas. Package-Manager: portage-2.2.22 dev-libs/liblinear/liblinear-210-r1.ebuild | 65 ++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/dev-libs/liblinear/liblinear-210-r1.ebuild b/dev-libs/liblinear/liblinear-210-r1.ebuild new file mode 100644 index 0000000..031b30b --- /dev/null +++ b/dev-libs/liblinear/liblinear-210-r1.ebuild @@ -0,0 +1,65 @@ +# 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" +IUSE="blas" + +RDEPEND=" + blas? ( virtual/blas ) +" +DEPEND=" + ${RDEPEND} + blas? ( virtual/pkgconfig ) +" + +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 + if use blas; then + sed -i -e 's:blas/blas.a::g' Makefile || die + fi +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + AR="$(tc-getAR) rcv" \ + RANLIB="$(tc-getRANLIB)" \ + "LIBS=$(usex blas $( $(tc-getPKG_CONFIG) --libs blas ) blas/blas.a)" \ + 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 + + doheader linear.h + + dodoc README +}