summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-06-22 12:08:51 +0000
committerJustin Lecher <jlec@gentoo.org>2013-06-22 12:08:51 +0000
commit30b8ebad246f23ae53e9061c16bbd7f8e014c47f (patch)
treed241bac2d2ae2952d816dafa852dec183a5eab0d /sci-libs
parentRevision bump. Applied security patch to 3.7.10 such that the root exploit is... (diff)
downloadgentoo-2-30b8ebad246f23ae53e9061c16bbd7f8e014c47f.tar.gz
gentoo-2-30b8ebad246f23ae53e9061c16bbd7f8e014c47f.tar.bz2
gentoo-2-30b8ebad246f23ae53e9061c16bbd7f8e014c47f.zip
sci-libs/alglib: New package, build system taken from Debian, thanks
(Portage version: 2.2.0_alpha184/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/alglib/ChangeLog10
-rw-r--r--sci-libs/alglib/Manifest5
-rw-r--r--sci-libs/alglib/alglib-3.7.0.ebuild27
-rw-r--r--sci-libs/alglib/files/CMakeLists.txt32
-rw-r--r--sci-libs/alglib/metadata.xml38
5 files changed, 112 insertions, 0 deletions
diff --git a/sci-libs/alglib/ChangeLog b/sci-libs/alglib/ChangeLog
new file mode 100644
index 000000000000..83643aa737a7
--- /dev/null
+++ b/sci-libs/alglib/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-libs/alglib
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/alglib/ChangeLog,v 1.1 2013/06/22 12:08:51 jlec Exp $
+
+*alglib-3.7.0 (22 Jun 2013)
+
+ 22 Jun 2013; Justin Lecher <jlec@gentoo.org> +alglib-3.7.0.ebuild,
+ +files/CMakeLists.txt, +metadata.xml:
+ New package, build system taken from Debian, thanks
+
diff --git a/sci-libs/alglib/Manifest b/sci-libs/alglib/Manifest
new file mode 100644
index 000000000000..389293fdec81
--- /dev/null
+++ b/sci-libs/alglib/Manifest
@@ -0,0 +1,5 @@
+AUX CMakeLists.txt 1076 SHA256 362393e6e363e739d9aeac7bebe84fce6848efc954f8dbcebed3d954163c947f SHA512 e5a10fe01c313863e23e9b61eef64e0b08232bf324d50ab6583bbb085cba5722c190bbdfca7bee485c65c8cd7e713300ced4a8feb2cdba0bee07244d5154de25 WHIRLPOOL 5e189008438a4791f278e27b180c557077b5951d617a2c690a0b19c9f900378be454c5aa07d2517ca8bbb7d8d57e01f5adda65f9785b39bd4af4d935823924d3
+DIST alglib-3.7.0.cpp.tgz 1518417 SHA256 62100afea6f3e54606031065d28b484ef82b3a96732265a23d8e0f17e34bd36c SHA512 055a292512eb6b5bdb667a2cfb8fda33237b17f1b900ba086e20a541af0f41bc85aef935c1357d780b45f3b1f2e6acddea23f19cdafa25a08f821aa391fec285 WHIRLPOOL 7dce3c5057c2b356b4f361304f2bfa6281671bb1f45204895864db0013ee18127f9cb4a64b311369debdf1adad4b4cb594514a7387adc6f9b9c21ccb4dc549f6
+EBUILD alglib-3.7.0.ebuild 526 SHA256 406cf4e7255ebf84284b1aa9ffe4b5d69c9a9ae2e6290c231ff78d79d91a2e8f SHA512 03abd57209e79a9ba637a3d41ab7dd4374976830782bb3d5bd263b301287eb2e0ef82a6a55f76c4859e68c70305cad18c04ca4003218be8561574bd37a03ecba WHIRLPOOL 52d07e69a3847dd485a78e949968aeb288ebe0d8e96cd41044472527aaa5a2dedb902de399ebfa92d4a011d2498606385f77da23736e7087af4dc04025797efe
+MISC ChangeLog 309 SHA256 14b494aa3cc833340e1f5feda0825edb29048a82c6996eb91ceea631e84b160b SHA512 bce34fc80655b2fa9c0a1af1f4f757b4e55330435f25f7c830d71cff3294056ad089f8a081bdac59f5833c38f613ce1cbe41e74b6e3756441b2a73c045582b25 WHIRLPOOL 064aa5916c19b95fb03196955e49bb993f5ea3165e306347010ec458c2d855040c90ece579e03e04391fa2f7c08721401729ebc122d84882fd5162ab6a79641b
+MISC metadata.xml 1557 SHA256 e2554963c0379fd84eee771de042ec1b418b7ad89c8a8f488fd2ba6d0b8da2f2 SHA512 d5503576f4579f8235bf3b3872a4acb006b0143a37151b57808c33a2bd81287b54488567c0c6ac1ffbdbab05dcc04854ff5f4ce63cc78d874bac85fb0789f626 WHIRLPOOL 73189c271862b2e267cf4f3e414fbb96fe119f0b1e0b284a878f02428a5e212f06249e347d48070b07d6f955e95e117d2982bc75af5838ab586169e0cb0c2ae1
diff --git a/sci-libs/alglib/alglib-3.7.0.ebuild b/sci-libs/alglib/alglib-3.7.0.ebuild
new file mode 100644
index 000000000000..9eec1a7abd76
--- /dev/null
+++ b/sci-libs/alglib/alglib-3.7.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/alglib/alglib-3.7.0.ebuild,v 1.1 2013/06/22 12:08:51 jlec Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Numerical analysis and data processing library"
+HOMEPAGE="http://www.alglib.net/"
+SRC_URI="http://www.alglib.net/translator/re/${P}.cpp.tgz"
+
+SLOT="0"
+LICENSE="GPL-2+"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+"
+
+S="${WORKDIR}"/cpp/
+
+src_prepare() {
+ cp "${FILESDIR}"/CMakeLists.txt . || die
+ cmake-utils_src_prepare
+}
diff --git a/sci-libs/alglib/files/CMakeLists.txt b/sci-libs/alglib/files/CMakeLists.txt
new file mode 100644
index 000000000000..6455423b0fe9
--- /dev/null
+++ b/sci-libs/alglib/files/CMakeLists.txt
@@ -0,0 +1,32 @@
+project(alglib CXX)
+cmake_minimum_required(VERSION 2.8)
+
+INCLUDE(GNUInstallDirs)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
+SET(VERSION 3.7.0)
+SET(SOVERSION 3.7)
+
+FILE(GLOB ALGLIB_SRC_LIB "src/*.cpp")
+FILE(GLOB ALGLIB_HDR_LIB "src/*.h")
+
+ADD_LIBRARY(alglib SHARED ${ALGLIB_SRC_LIB})
+SET_TARGET_PROPERTIES(alglib PROPERTIES
+ VERSION ${VERSION}
+ SOVERSION ${SOVERSION})
+
+INSTALL(TARGETS alglib DESTINATION ${CMAKE_INSTALL_LIBDIR}/)
+INSTALL(FILES ${ALGLIB_HDR_LIB} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+
+#===========================================================
+ADD_EXECUTABLE(test_c tests/test_c.cpp)
+TARGET_LINK_LIBRARIES(test_c alglib)
+#INSTALL(TARGETS test_c DESTINATION ${CMAKE_INSTALL_BINDIR}/)
+#===========================================================
+ADD_EXECUTABLE(test_i tests/test_i.cpp)
+TARGET_LINK_LIBRARIES(test_i alglib)
+#INSTALL(TARGETS test_i DESTINATION ${CMAKE_INSTALL_BINDIR}/)
+#===========================================================
+
+enable_testing()
+add_test( test_c ${CMAKE_BUILD_DIR}/test_c)
+add_test( test_i ${CMAKE_BUILD_DIR}/test_i)
diff --git a/sci-libs/alglib/metadata.xml b/sci-libs/alglib/metadata.xml
new file mode 100644
index 000000000000..8fa350bffef2
--- /dev/null
+++ b/sci-libs/alglib/metadata.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ALGLIB is a cross-platform numerical analysis and data processing library. It
+supports several programming languages (C++, C#, Pascal, VBA) and several
+operating systems (Windows, Linux, Solaris). ALGLIB features include:
+
+* Linear algebra (direct algorithms, EVD/SVD)
+* Solvers (linear and nonlinear)
+* Interpolation
+* Optimization
+* Fast Fourier transforms
+* Numerical integration
+* Linear and nonlinear least-squares fitting
+* Ordinary differential equations
+* Special functions
+* Statistics (descriptive statistics, hypothesis testing)
+* Data analysis (classification/regression, including neural networks)
+* Multiple precision versions of linear algebra, interpolation optimization and
+* others algorithms (using MPFR for floating point computations)
+
+Why to choose ALGLIB? Because it is:
+
+* portable. It can be compiled almost anywhere using almost any compiler
+(see compatibility matrix for more info).
+* easy to use. It supports many programming languages. If you use one language,
+you don't need to study another (FORTRAN, for example) to compile and link an
+external library.
+* open source. It can be used for free under GPL 2+.
+* suited for commercial users too. Those who want to use ALGLIB in commercial
+applications can buy commercial license without copyleft requirement.
+</longdescription>
+</pkgmetadata>