summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-06-05 23:52:00 +0000
committerJeroen Roovers <jer@gentoo.org>2014-06-05 23:52:00 +0000
commitf99518d4070e03c2b3fa7fc00c3a2c0ad7dc53e4 (patch)
tree5e8ef26d8eef79acbdb3239c3d27d58c9c091adf /dev-libs
parentRevision bump to branch 3.12, other branches follow soon; for CVE-2014-3153, ... (diff)
downloadgentoo-2-f99518d4070e03c2b3fa7fc00c3a2c0ad7dc53e4.tar.gz
gentoo-2-f99518d4070e03c2b3fa7fc00c3a2c0ad7dc53e4.tar.bz2
gentoo-2-f99518d4070e03c2b3fa7fc00c3a2c0ad7dc53e4.zip
Initial commit (bug #253269).
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/liblinear/ChangeLog10
-rw-r--r--dev-libs/liblinear/liblinear-194.ebuild49
-rw-r--r--dev-libs/liblinear/metadata.xml8
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-libs/liblinear/ChangeLog b/dev-libs/liblinear/ChangeLog
new file mode 100644
index 000000000000..3964ba6f8824
--- /dev/null
+++ b/dev-libs/liblinear/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-libs/liblinear
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblinear/ChangeLog,v 1.1 2014/06/05 23:52:00 jer Exp $
+
+*liblinear-194 (05 Jun 2014)
+
+ 05 Jun 2014; Jeroen Roovers <jer@gentoo.org> +liblinear-194.ebuild,
+ +metadata.xml:
+ Initial commit (bug #253269).
+
diff --git a/dev-libs/liblinear/liblinear-194.ebuild b/dev-libs/liblinear/liblinear-194.ebuild
new file mode 100644
index 000000000000..d23fadcb965f
--- /dev/null
+++ b/dev-libs/liblinear/liblinear-194.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblinear/liblinear-194.ebuild,v 1.1 2014/06/05 23:52:00 jer Exp $
+
+EAPI=5
+inherit multilib toolchain-funcs
+
+DESCRIPTION="A Library for Large Linear Classification"
+HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/liblinear/"
+SRC_URI="https://github.com/cjlin1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# /usr/bin/predict collision
+RDEPEND="!sci-astronomy/predict"
+
+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.1
+ dosym ${PN}.so.1 /usr/$(get_libdir)/${PN}.so
+ dobin predict train
+ insinto /usr/include
+ doins linear.h
+}
diff --git a/dev-libs/liblinear/metadata.xml b/dev-libs/liblinear/metadata.xml
new file mode 100644
index 000000000000..ef0483f9ff68
--- /dev/null
+++ b/dev-libs/liblinear/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>jer@gentoo.org</email>
+<name>Jeroen Roovers</name>
+</maintainer>
+</pkgmetadata>