diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-libs/liblinear | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/liblinear')
-rw-r--r-- | dev-libs/liblinear/Manifest | 7 | ||||
-rw-r--r-- | dev-libs/liblinear/liblinear-210-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-libs/liblinear/liblinear-211.ebuild | 65 | ||||
-rw-r--r-- | dev-libs/liblinear/liblinear-220.ebuild | 65 | ||||
-rw-r--r-- | dev-libs/liblinear/metadata.xml | 11 |
5 files changed, 212 insertions, 0 deletions
diff --git a/dev-libs/liblinear/Manifest b/dev-libs/liblinear/Manifest new file mode 100644 index 000000000000..a7bea9642962 --- /dev/null +++ b/dev-libs/liblinear/Manifest @@ -0,0 +1,7 @@ +DIST liblinear-210.tar.gz 381662 BLAKE2B d64d217f7ba67605821062f66d4e9f130f4f2396dde14cd35532bad11f4af4f34bc231a1e3796ba2d0e14f84830ec05c6358d40018e048f4ae3fa62db2b1d0d7 SHA512 4e4558467f2ebb3dbd640c172b1129c8e5981c231a043abb0398a803252559795604a34992baee50ae6689646050733d3a908d7d76f8b1c94309b859eae7f8c8 +DIST liblinear-211.tar.gz 506507 BLAKE2B 31b7677dfbf9dbb060a28dc19c63db4244e55c4ddc984a8c9ccadc517beabaf8fabef04488366cd7375608412dad3c37d4f09fe27b37b69e69209d32379a9e45 SHA512 005a47b3a8ff27f9890ce10549478be4b041c92d162815fba33dd56db7c014e6958b3e7e161451490c34d88df2161366365bd41b1a48d6a77034edc346a0fc3a +DIST liblinear-220.tar.gz 517302 BLAKE2B 6aa28c3357f830441ee3cb2e9691d4952e4d4db6592622f6e93be1ed12c8f871e4a9c98abcb35b472a227005bad0cc1e6076678358dc324a7453cbbfb34a0866 SHA512 cde798b7cb221513cf2b8bbe134d6c3dce1ed26c43504d8c09dbed93b82ca47bfd271d4dd3d03384187273906ce140d4ce4418a4a8c21410015ec1631c1042c6 +EBUILD liblinear-210-r1.ebuild 1416 BLAKE2B 329845a3366d90bd89c17c714b7dedaa8fac27f462d3c98ec2f4831d51b18d15cda975a2ed6aedf69b08cdfd439ee05a85cb09489c9bbfa102a145b7d78e7226 SHA512 96bf9b251b5ddca7c7c4b717b504ae585f821eba683a7891d4a23fa87ea961456f364bff5656e17e5fa36ea2a8918b10622c3ccc8a528f0262799d22e359b9ae +EBUILD liblinear-211.ebuild 1434 BLAKE2B 655612d7b792bf82592b86caa56064c87f5b9b2fa323d421c25e442c3462a876445e126c6ed4b378d982cfb4554645f7be8950e7aa9f89e4243a0e9c75c63056 SHA512 bd3b0911b8fe4da36da8411224ffc315600691dc34b02914d06c296dc0853aaa42d8fcccccad25d362967fe796af30b726f42b354b93ef518e28e4f2c1880c74 +EBUILD liblinear-220.ebuild 1445 BLAKE2B a925bf8d337dfd549333ec294b3175c2f1c4e9ad4f3d3dd8961ee5f294f123c4413fad51a03028809f6428d24f24baa0390cc748c498176fa1c932d716b10811 SHA512 8e166b377b67f1d53940accd0c122f600f7fe4945ef7fa0094921082a4db90455edf719e436f11b05cff8909f0508fd0bf29e6fa7bde48a0a5740d9783dcba3a +MISC metadata.xml 335 BLAKE2B 2a905547b4dbf1ea8870dc8816a63252e142edcba93710b5d2cb57c2b6603c165ea06a3b459f442e1d08653cb9c6530a56bbaa8685c8147a280d917b4cd1f342 SHA512 efd0a36cca5d21c4a5e94388d125870af42ae9091234a44ae53b8ac6ea7e6ad0b637a5629d3c9ceabfebddce71fde8fa94285e5b1c7edefddebb8bab9e99f0bd diff --git a/dev-libs/liblinear/liblinear-210-r1.ebuild b/dev-libs/liblinear/liblinear-210-r1.ebuild new file mode 100644 index 000000000000..ca03976be48a --- /dev/null +++ b/dev-libs/liblinear/liblinear-210-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +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/3" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86" +IUSE="blas" + +RDEPEND=" + blas? ( virtual/blas ) +" +DEPEND=" + ${RDEPEND} + blas? ( virtual/pkgconfig ) +" + +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 + if use blas; then + sed -i -e 's:blas/blas.a::g' Makefile || die + fi +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + AR="$(tc-getAR) rcv" \ + RANLIB="$(tc-getRANLIB)" \ + LIBS="$(usex blas "$( $(tc-getPKG_CONFIG) --libs blas )" blas/blas.a)" \ + lib all +} + +src_install() { + dolib ${PN}.so.3 + dosym ${PN}.so.3 /usr/$(get_libdir)/${PN}.so + + newbin predict ${PN}-predict + newbin train ${PN}-train + + doheader linear.h + + dodoc README +} diff --git a/dev-libs/liblinear/liblinear-211.ebuild b/dev-libs/liblinear/liblinear-211.ebuild new file mode 100644 index 000000000000..7176d0f8b119 --- /dev/null +++ b/dev-libs/liblinear/liblinear-211.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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/3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="blas" + +RDEPEND=" + blas? ( virtual/blas ) +" +DEPEND=" + ${RDEPEND} + blas? ( virtual/pkgconfig ) +" + +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 + if use blas; then + sed -i -e 's:blas/blas.a::g' Makefile || die + fi +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + AR="$(tc-getAR) rcv" \ + RANLIB="$(tc-getRANLIB)" \ + LIBS="$(usex blas "$( $(tc-getPKG_CONFIG) --libs blas )" blas/blas.a)" \ + lib all +} + +src_install() { + dolib ${PN}.so.3 + dosym ${PN}.so.3 /usr/$(get_libdir)/${PN}.so + + newbin predict ${PN}-predict + newbin train ${PN}-train + + doheader linear.h + + dodoc README +} diff --git a/dev-libs/liblinear/liblinear-220.ebuild b/dev-libs/liblinear/liblinear-220.ebuild new file mode 100644 index 000000000000..5fdad5b9beb7 --- /dev/null +++ b/dev-libs/liblinear/liblinear-220.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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/3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-macos" +IUSE="blas" + +RDEPEND=" + blas? ( virtual/blas ) +" +DEPEND=" + ${RDEPEND} + blas? ( virtual/pkgconfig ) +" + +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 + if use blas; then + sed -i -e 's:blas/blas.a::g' Makefile || die + fi +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + AR="$(tc-getAR) rcv" \ + RANLIB="$(tc-getRANLIB)" \ + LIBS="$(usex blas "$( $(tc-getPKG_CONFIG) --libs blas )" blas/blas.a)" \ + lib all +} + +src_install() { + dolib ${PN}.so.3 + dosym ${PN}.so.3 /usr/$(get_libdir)/${PN}.so + + newbin predict ${PN}-predict + newbin train ${PN}-train + + doheader linear.h + + dodoc README +} diff --git a/dev-libs/liblinear/metadata.xml b/dev-libs/liblinear/metadata.xml new file mode 100644 index 000000000000..97b5450a7dc9 --- /dev/null +++ b/dev-libs/liblinear/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>jer@gentoo.org</email> + <name>Jeroen Roovers</name> + </maintainer> + <upstream> + <remote-id type="github">cjlin1/liblinear</remote-id> + </upstream> +</pkgmetadata> |