diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-01 21:06:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-01 21:06:00 +0000 |
commit | 129160ec854dca4c3fedb5bcfbcb56930371da0f (patch) | |
tree | 53bf797418ac5e9b99c41ca0382c87b82421e5de /dev-libs/liblinear | |
parent | 441d1370330332b7d78f238d2f5e13f7aed5e4e0 (diff) |
gentoo new year resync : 01.01.2021
Diffstat (limited to 'dev-libs/liblinear')
-rw-r--r-- | dev-libs/liblinear/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/liblinear/liblinear-241.ebuild | 2 | ||||
-rw-r--r-- | dev-libs/liblinear/liblinear-242.ebuild | 59 |
3 files changed, 63 insertions, 2 deletions
diff --git a/dev-libs/liblinear/Manifest b/dev-libs/liblinear/Manifest index 4d7012285708..10b6303e339f 100644 --- a/dev-libs/liblinear/Manifest +++ b/dev-libs/liblinear/Manifest @@ -1,3 +1,5 @@ DIST liblinear-241.tar.gz 559122 BLAKE2B 793ef45fc652d6f35908465e754e0aed6568125e74e68ca72466c4d71cc0e30746a999e978521c09a3ada079698f59f2bf65a430679538b7bebc133a258f2588 SHA512 a9ca47b051e28046829a3f355a552b2f5b270dd706170e1d21db1509ef09eca55e2d8ff29695d9e8192baad8bcf50aa76e75a3683948c726f2c9b915a3e4bf27 -EBUILD liblinear-241.ebuild 1459 BLAKE2B c2053330cc42af2e9e8e7efd0cd676f2d3e99dd9839e2a8c60215a142e098adebbbd2a6e60f5a1775179dac886de5d5d905c27fc473885e5546b3a9000b879a4 SHA512 61ca6696331498d62a5d983d23122158e7bcea23b4a7bcf50c0b7ef8ae64fc637e025222bb4488b1acfe329e169d4b0ed4503c33142a18c4f208ba933acc6d4e +DIST liblinear-242.tar.gz 561806 BLAKE2B 49c8f87909083addaf62666f34c008e6cf44240f28fdf2fbeca89862e9e19d451cc7ff51ce5b5da589cc701f70ce408c3eefb249f8585a8598e5ff3976177fe2 SHA512 fbcb219f7313b15898e55bd17c6b280007dd4feb913fafd2c3e10375b5a63b8bd274c9d52fd7b265a7575d4657cf4797b734e5793b18c758dfd9ab731fc0e904 +EBUILD liblinear-241.ebuild 1460 BLAKE2B 7c405bf7eabc8cb614c40ae4c63169536fe132e3c1ac91955b967b96579cebbb73efdf6ae1c8ebf2bb18356a583b90e3ea47c519c400d9a1a01c98f05c383165 SHA512 a99d207552413aeb873083b98e95c5c6b758a17b7565ccab03b67db429c27c66948f19ca61cbf8cb02fc99ffc49264ed7ba77b73408ad3da13a6dd62a41d5dcd +EBUILD liblinear-242.ebuild 1457 BLAKE2B 9a946a004581c809af2d482e457fd1b5c01b33cc01d58ce767dc4f4ff2eb3e2af1485037baed08d432420fb5277f97e2aa649cbbfebf1422eb80f484e7579a55 SHA512 00c05eaf719ade78da75a78d5e8890d8cb8b3cd1734c08fcc0de7d603720cf785e10cee1ca26ddaa363dad60b2e15e2cdb5d5f8a2449eaefee3351359b0065a4 MISC metadata.xml 320 BLAKE2B a4ab81f29b93f305fc5a005917955d67596886df3a9ee7708734714ca0c052297d4bf18b68cbe6de7f42a1e0f4f6052a1b0a93390c17bbe554bc3f536db5b251 SHA512 34ae964cd916b9a3cf711def8a12c20c4fb7642d569d07d019abc12804f013c90081da4d5b1802a0cd8fccec98c5929554766ac575d992a9fdce8d574f2d311e diff --git a/dev-libs/liblinear/liblinear-241.ebuild b/dev-libs/liblinear/liblinear-241.ebuild index 94375db456f1..45dd62fa8788 100644 --- a/dev-libs/liblinear/liblinear-241.ebuild +++ b/dev-libs/liblinear/liblinear-241.ebuild @@ -10,7 +10,7 @@ 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 ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~x64-macos" src_prepare() { default diff --git a/dev-libs/liblinear/liblinear-242.ebuild b/dev-libs/liblinear/liblinear-242.ebuild new file mode 100644 index 000000000000..a26af094c70c --- /dev/null +++ b/dev-libs/liblinear/liblinear-242.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +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://github.com/cjlin1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/4" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~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 +} |