From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76526139694 for ; Sun, 25 Jun 2017 09:55:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 893BC22400A; Sun, 25 Jun 2017 09:55:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5321B22400B for ; Sun, 25 Jun 2017 09:55:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EF16F33BEC7 for ; Sun, 25 Jun 2017 09:55:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B50857466 for ; Sun, 25 Jun 2017 09:55:24 +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: <1498384517.955dd7687d2d079061000466d7efed89a1034644.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liblinear/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/liblinear/Manifest dev-libs/liblinear/liblinear-211.ebuild X-VCS-Directories: dev-libs/liblinear/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 955dd7687d2d079061000466d7efed89a1034644 X-VCS-Branch: master Date: Sun, 25 Jun 2017 09:55:24 +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: 581bb2ce-aa02-4dd5-bb35-f8b6daaa3ce1 X-Archives-Hash: b489f66b651cfc2c8e229015754df4dd commit: 955dd7687d2d079061000466d7efed89a1034644 Author: Jeroen Roovers gentoo org> AuthorDate: Sun Jun 25 09:51:18 2017 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sun Jun 25 09:55:17 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=955dd768 dev-libs/liblinear: Version bump. Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-libs/liblinear/Manifest | 1 + dev-libs/liblinear/liblinear-211.ebuild | 64 +++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/dev-libs/liblinear/Manifest b/dev-libs/liblinear/Manifest index 17ba2ed1d58..c0592ab2480 100644 --- a/dev-libs/liblinear/Manifest +++ b/dev-libs/liblinear/Manifest @@ -1 +1,2 @@ DIST liblinear-210.tar.gz 381662 SHA256 9e559d1f0714799d4cf7742fb186012459285e25bed9c5847d5d8032daefc8de SHA512 4e4558467f2ebb3dbd640c172b1129c8e5981c231a043abb0398a803252559795604a34992baee50ae6689646050733d3a908d7d76f8b1c94309b859eae7f8c8 WHIRLPOOL 6756930f5fec958f3f137b9757a6a3704d1a5ab799d1634e2223990847ebe05a2602a77e4310a4f653434230ca47c0053de2ff3a03dc1cb265f85a6148db6f5d +DIST liblinear-211.tar.gz 506507 SHA256 f1ed0afdda112515a8594862c58fd88223a0691686007e91b07e8ee0bf541350 SHA512 005a47b3a8ff27f9890ce10549478be4b041c92d162815fba33dd56db7c014e6958b3e7e161451490c34d88df2161366365bd41b1a48d6a77034edc346a0fc3a WHIRLPOOL 880f5d5129f132922c99f98a09188d8800760d7e12e36af00315abafe16f3716a14fc30aa6ae6dc6d37230f5a371921af228a2413f804a1e1334f28770339c10 diff --git a/dev-libs/liblinear/liblinear-211.ebuild b/dev-libs/liblinear/liblinear-211.ebuild new file mode 100644 index 00000000000..822f687a008 --- /dev/null +++ b/dev-libs/liblinear/liblinear-211.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 ~arm64 ~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 +}