Diff liblinear-243 with a liblinear-246
/usr/portage/dev-libs/liblinear/liblinear-246.ebuild 2023-10-09 14:52:29.520368351 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2021 Gentoo Authors |
|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 | 6 |
inherit multilib toolchain-funcs |
7 | 7 | |
8 |
MY_PV="${PV:0:1}.${PV:1}" |
|
9 |
MY_P="${PN}-${MY_PV}" |
|
10 | ||
8 | 11 |
DESCRIPTION="A Library for Large Linear Classification" |
9 | 12 |
HOMEPAGE="https://www.csie.ntu.edu.tw/~cjlin/liblinear/ https://github.com/cjlin1/liblinear" |
10 |
SRC_URI="https://github.com/cjlin1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|
13 |
SRC_URI="https://www.csie.ntu.edu.tw/~cjlin/liblinear/${MY_P}.tar.gz" |
|
14 |
S="${WORKDIR}"/${MY_P} |
|
11 | 15 | |
12 | 16 |
LICENSE="BSD" |
13 |
SLOT="0/4" |
|
17 |
SLOT="0/5" |
|
14 | 18 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" |
15 | 19 | |
16 | 20 |
src_prepare() { |
17 | 21 |
default |
18 | 22 | |
19 | 23 |
sed -i \ |
20 |
-e '/^AR/s|=|?=|g' \ |
|
21 |
-e '/^RANLIB/s|=|?=|g' \ |
|
22 | 24 |
-e '/^CFLAGS/d;/^CXXFLAGS/d' \ |
23 | 25 |
blas/Makefile || die |
24 | 26 |
sed -i \ |
25 | 27 |
-e 's|make|$(MAKE)|g' \ |
26 | 28 |
-e '/$(LIBS)/s|$(CFLAGS)|& $(LDFLAGS)|g' \ |
27 | 29 |
-e '/^CFLAGS/d;/^CXXFLAGS/d' \ |
28 |
-e 's|$${SHARED_LIB_FLAG}|& $(LDFLAGS)|g' \ |
|
30 |
-e 's|$(SHARED_LIB_FLAG)|& $(LDFLAGS)|g' \ |
|
29 | 31 |
Makefile || die |
30 | 32 | |
31 | 33 |
# fix install_name on Darwin |
... | ... | |
41 | 43 |
CXX="$(tc-getCXX)" \ |
42 | 44 |
CFLAGS="${CFLAGS} -fPIC" \ |
43 | 45 |
CXXFLAGS="${CXXFLAGS} -fPIC" \ |
44 |
AR="$(tc-getAR) rcv" \ |
|
46 |
AR="$(tc-getAR)" \ |
|
45 | 47 |
RANLIB="$(tc-getRANLIB)" \ |
46 | 48 |
lib all |
47 | 49 |
} |
48 | 50 | |
49 | 51 |
src_install() { |
50 |
dolib.so ${PN}$(get_libname 4) |
|
51 |
dosym ${PN}$(get_libname 4) /usr/$(get_libdir)/${PN}$(get_libname) |
|
52 |
dolib.so ${PN}$(get_libname ${SLOT#*/}) |
|
53 |
dosym ${PN}$(get_libname ${SLOT#*/}) /usr/$(get_libdir)/${PN}$(get_libname) |
|
52 | 54 | |
53 | 55 |
newbin predict ${PN}-predict |
54 | 56 |
newbin train ${PN}-train |