Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-libs/liblinear/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST liblinear-2.49.tar.gz 74356 BLAKE2B 35279f17094c73ce62ca4b4d503598a556aeb9a275a72ed756ab352b0d53be76704d908e7d117c490008624da80e91e4b1c945039b5c7d9dee2543d34fdff90e SHA512 1bde9cae162da447355e7d0c3bbc9b5f213933f57a04611b8d5c3c900d081479d0e84598ef72e94eb5d8656dbebe3520e2d9122405e9767f0ed6e2cb7f639956
DIST liblinear-2.50.tar.gz 74720 BLAKE2B f10b88306bc767273a148f176cf50954beef3b4ac33753916b76c71417862b82a2c6538d401735c62a506edf331debae59fffb8fe44c8398c738ba3ab46e6082 SHA512 9fa1e087a53b344b7179293b53a51178eb0a3b64e0a98ff9a3544951d92a6f239c984d83093f2dcc008d7246c5496b9e534075e726970e122085eeb173cfae26
53 changes: 53 additions & 0 deletions dev-libs/liblinear/liblinear-2.50.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit

EAPI=7
inherit toolchain-funcs

DESCRIPTION="A Library for Large Linear Classification"
HOMEPAGE="https://www.csie.ntu.edu.tw/~cjlin/liblinear/ https://github.com/cjlin1/liblinear"
SRC_URI="https://www.csie.ntu.edu.tw/~cjlin/liblinear/./liblinear-2.50.tar.gz -> liblinear-2.50.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
IUSE="blas"
RDEPEND="blas? ( virtual/blas )

"
DEPEND="${RDEPEND}
blas? ( virtual/pkgconfig )

"
src_prepare() {
default
sed -i \
-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() {
emake \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
CFLAGS="${CFLAGS} -fPIC" \
CXXFLAGS="${CXXFLAGS} -fPIC" \
AR="$(tc-getAR)" \
RANLIB="$(tc-getRANLIB)" \
lib all
}
src_install() {
dolib.so liblinear.so.*
dosym liblinear.so.* /usr/$(get_libdir)/liblinear$(get_libname)
newbin predict liblinear-predict
newbin train liblinear-train
doheader linear.h
dodoc README
}


# vim: filetype=ebuild