Install this version:
emerge -a =dev-libs/liblinear-243
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/liblinear-243
Or alternatively:
emerge --autounmask-write -a =dev-libs/liblinear-243
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 243 | 7 | ~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos | 0/4 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit multilib 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://github.com/cjlin1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0/4"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos"
src_prepare() {
default
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
# fix install_name on Darwin
sed -i \
-e '/install_name/s:liblinear.so.$(SHVER):'"${EPREFIX}"'/usr/lib/liblinear.$(SHVER).dylib:' \
-e '/LDFLAGS/s:liblinear.so.$(SHVER):liblinear'"$(get_libname '$(SHVER)')"':' \
Makefile || die
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
CFLAGS="${CFLAGS} -fPIC" \
CXXFLAGS="${CXXFLAGS} -fPIC" \
AR="$(tc-getAR) rcv" \
RANLIB="$(tc-getRANLIB)" \
lib all
}
src_install() {
dolib.so ${PN}$(get_libname 4)
dosym ${PN}$(get_libname 4) /usr/$(get_libdir)/${PN}$(get_libname)
newbin predict ${PN}-predict
newbin train ${PN}-train
doheader linear.h
dodoc README
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | liblinear-243.tar.gz | 565437 bytes | https://github.com/cjlin1/liblinear/archive/v243.tar.gz |