diff options
Diffstat (limited to 'sci-libs/shogun')
-rw-r--r-- | sci-libs/shogun/ChangeLog | 9 | ||||
-rw-r--r-- | sci-libs/shogun/shogun-3.2.0.ebuild | 124 |
2 files changed, 131 insertions, 2 deletions
diff --git a/sci-libs/shogun/ChangeLog b/sci-libs/shogun/ChangeLog index 430f9e007d99..a8873c3dac67 100644 --- a/sci-libs/shogun/ChangeLog +++ b/sci-libs/shogun/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-libs/shogun -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/shogun/ChangeLog,v 1.7 2013/03/04 19:08:43 bicatali Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/shogun/ChangeLog,v 1.8 2014/04/06 01:47:16 bicatali Exp $ + +*shogun-3.2.0 (06 Apr 2014) + + 06 Apr 2014; Sébastien Fabbro <bicatali@gentoo.org> +shogun-3.2.0.ebuild: + Version bump 04 Mar 2013; Sébastien Fabbro <bicatali@gentoo.org> files/shogun-1.1.0-respect-ldflags.patch, shogun-2.0.0.ebuild: diff --git a/sci-libs/shogun/shogun-3.2.0.ebuild b/sci-libs/shogun/shogun-3.2.0.ebuild new file mode 100644 index 000000000000..e7e0b4d95702 --- /dev/null +++ b/sci-libs/shogun/shogun-3.2.0.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/shogun/shogun-3.2.0.ebuild,v 1.1 2014/04/06 01:47:16 bicatali Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3} ) +inherit cmake-utils multilib versionator toolchain-funcs python-single-r1 + +MYPV=$(get_version_component_range 1-2) +MYPD=${PN}-data-0.8 + +DESCRIPTION="Large Scale Machine Learning Toolbox" +HOMEPAGE="http://shogun-toolbox.org/" +SRC_URI="ftp://shogun-toolbox.org/shogun/releases/${MYPV}/sources/${P}.tar.bz2 + test? ( ftp://shogun-toolbox.org/shogun/data/${MYPD}.tar.bz2 ) + examples? ( ftp://shogun-toolbox.org/shogun/data/${MYPD}.tar.bz2 )" + +LICENSE="GPL-3 free-noncomm" +SLOT="0/16" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="doc examples lua mono octave python R ruby static-libs test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + app-arch/bzip2:= + app-arch/gzip:= + app-arch/lzma:= + app-arch/snappy:= + dev-libs/lzo:= + >=dev-cpp/eigen-3.1 + dev-libs/json-c:= + dev-libs/libxml2:= + dev-libs/protobuf:= + net-misc/curl:= + sci-libs/arpack:= + sci-libs/arprec:= + sci-libs/colpack:= + sci-libs/hdf5:= + sci-libs/nlopt:= + sci-mathematics/glpk:= + sci-mathematics/lpsolve:= + sys-libs/readline + sys-libs/zlib:= + virtual/blas + virtual/cblas + virtual/lapack + lua? ( dev-lang/lua ) + mono? ( dev-lang/mono ) + octave? ( sci-mathematics/octave[hdf5] ) + python? ( dev-python/numpy[${PYTHON_USEDEP}] ) + R? ( dev-lang/R ) + ruby? ( dev-ruby/narray )" + +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen[dot] ) + lua? ( >=dev-lang/swig-2.0.4 ) + mono? ( >=dev-lang/swig-2.0.4 ) + octave? ( >=dev-lang/swig-2.0.4 ) + python? ( >=dev-lang/swig-2.0.4 test? ( sci-libs/scipy ) ) + R? ( >=dev-lang/swig-2.0.4 ) + ruby? ( >=dev-lang/swig-2.0.4 ) + test? ( dev-python/jinja )" + +# javamodular needs jblas (painful to package properly) +# permodular work in progress (as 3.2.0) +# could actually support multiple pythons, multiple rubys +# feel free to do work for it + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + export ATLAS_LIBRARY="$($(tc-getPKG_CONFIG) --libs cblas lapack)" + export CBLAS_LIBRARY="$($(tc-getPKG_CONFIG) --libs cblas)" + export ATLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas cblas lapack)" + export LAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" + local mycmakeargs=( + -DBUILD_EXAMPLES=OFF + -DBUNDLE_ARPREC=OFF + -DBUNDLE_COLPACK=OFF + -DBUNDLE_EIGEN=OFF + -DBUNDLE_JSON=OFF + -DBUNDLE_NLOPT=OFF + -DENABLE_COVERAGE=OFF + -DJavaModular=OFF + -DPerlModular=OFF + $(cmake-utils_use lua LuaModular) + $(cmake-utils_use mono CSharpModular) + $(cmake-utils_use octave OctaveModular) + $(cmake-utils_use octave OctaveStatic) + $(cmake-utils_use python PythonModular) + $(cmake-utils_use python PythonStatic) + $(cmake-utils_use R RModular) + $(cmake-utils_use R RStatic) + $(cmake-utils_use ruby RubyModular) + $(cmake-utils_use test ENABLE_TESTING) + ) + cmake-utils_src_configure + # gentoo bug #302621 + has_version sci-libs/hdf5[mpi] && export CXX=mpicxx CC=mpicc +} + +src_compile() { + cmake-utils_src_compile + use doc && emake -C doc +} + +src_install() { + cmake-utils_src_install + use doc && dohtml -r doc/html/* + if use examples; then + insinto /usr/share/doc/${PF} + emake -C examples clean + doins -r examples + docompress -x /usr/share/doc/${PF}/examples + insinto /usr/share/doc/${PF}/data + doins -r "${WORKDIR}"/${MYPD}/* + + fi +} |