diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-libs/itpp | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-libs/itpp')
-rw-r--r-- | sci-libs/itpp/Manifest | 3 | ||||
-rw-r--r-- | sci-libs/itpp/files/itpp-4.0.6-gcc44.patch | 60 | ||||
-rw-r--r-- | sci-libs/itpp/files/itpp-4.0.7-fastica-fix-endless-loop.patch | 93 | ||||
-rw-r--r-- | sci-libs/itpp/files/itpp-4.2-automake-1.12.patch | 16 | ||||
-rw-r--r-- | sci-libs/itpp/files/itpp-4.2-fastica-correct-dim.patch | 26 | ||||
-rw-r--r-- | sci-libs/itpp/files/itpp-4.2-pkg-config.patch | 27 | ||||
-rw-r--r-- | sci-libs/itpp/files/itpp-4.2-test-fftw.patch | 14 | ||||
-rw-r--r-- | sci-libs/itpp/itpp-4.2-r1.ebuild | 66 | ||||
-rw-r--r-- | sci-libs/itpp/itpp-4.2-r2.ebuild | 69 | ||||
-rw-r--r-- | sci-libs/itpp/itpp-4.3.0.ebuild | 45 | ||||
-rw-r--r-- | sci-libs/itpp/itpp-4.3.1-r1.ebuild | 53 | ||||
-rw-r--r-- | sci-libs/itpp/itpp-4.3.1.ebuild | 45 | ||||
-rw-r--r-- | sci-libs/itpp/metadata.xml | 16 |
13 files changed, 533 insertions, 0 deletions
diff --git a/sci-libs/itpp/Manifest b/sci-libs/itpp/Manifest new file mode 100644 index 000000000000..9cead3b0979a --- /dev/null +++ b/sci-libs/itpp/Manifest @@ -0,0 +1,3 @@ +DIST itpp-4.2.tar.bz2 1050157 SHA256 732c7de212dddfd8669ef3e4d164d5d9a2f81302f3921ddd0176cfa8c49c556c SHA512 319296c5d929201fcdfb32ad59b3304d3620d921c1d08feb1d138fecb37305f71f825b4fc45d563ba817eb6ac92fb9223c32d4260013ef1d30a2e1e8edf52a2f WHIRLPOOL 4af9e5326b9a94013c173d650ac5c92105e21731ef6398e707808219831158bd995060a860d31d6874a56b96123bb5e646600f45ee6f4fb185d3e9c1b349ddc7 +DIST itpp-4.3.0.tar.bz2 1196432 SHA256 009b38929eef60be12abd6f516da535d9ea01872cd4b8ec537cfe40311ad5f64 SHA512 e2ad944cdb1325676465920d692577f86885252f9e9eb068084b0edaca17dffd33793e5c502572c21f77b47f8d8f45522ea6a945eb5548553305ab23904a04fa WHIRLPOOL 87a823313363806e894297f23b20bb0cdc11e72cf3388d25cf57c27820793f7c5c41e4a593a954dc431d2f473052defc5bedbdc9e547830d5ceb54f31cb0e6b0 +DIST itpp-4.3.1.tar.bz2 1289687 SHA256 50717621c5dfb5ed22f8492f8af32b17776e6e06641dfe3a3a8f82c8d353b877 SHA512 b46d048fa7f33e80d2291a5e38e205c159791ea200f92c70d69e8ad8447ac2f0c847fece566a99af739853a1643cb16e226b4200c8bf115417f324e6d38c66bd WHIRLPOOL e4791babcdb9e874a29b8f628af000e93fc316a7da0199713e7b840317d1b1109e4350c7582a3f88db3fe8be03ff8ee93b40712b77f61faa155acc668f39c0e0 diff --git a/sci-libs/itpp/files/itpp-4.0.6-gcc44.patch b/sci-libs/itpp/files/itpp-4.0.6-gcc44.patch new file mode 100644 index 000000000000..6514363a4b48 --- /dev/null +++ b/sci-libs/itpp/files/itpp-4.0.6-gcc44.patch @@ -0,0 +1,60 @@ +diff -ur itpp-4.0.6.orig/itpp/base/timing.cpp itpp-4.0.6/itpp/base/timing.cpp +--- itpp-4.0.6.orig/itpp/base/timing.cpp 2008-10-08 14:52:24.000000000 +0300 ++++ itpp-4.0.6/itpp/base/timing.cpp 2009-07-30 10:32:45.000000000 +0300 +@@ -27,6 +27,8 @@ + * ------------------------------------------------------------------------- + */ + ++#include <cstdio> ++ + #ifndef _MSC_VER + # include <itpp/config.h> + #else +diff -ur itpp-4.0.6.orig/itpp/base/vec.cpp itpp-4.0.6/itpp/base/vec.cpp +--- itpp-4.0.6.orig/itpp/base/vec.cpp 2008-10-08 14:52:24.000000000 +0300 ++++ itpp-4.0.6/itpp/base/vec.cpp 2009-07-30 10:35:45.000000000 +0300 +@@ -27,6 +27,8 @@ + * ------------------------------------------------------------------------- + */ + ++#include <cstdio> ++ + #include <itpp/base/vec.h> + #include <itpp/base/converters.h> + #include <limits> +diff -ur itpp-4.0.6.orig/itpp/fixed/cfix.cpp itpp-4.0.6/itpp/fixed/cfix.cpp +--- itpp-4.0.6.orig/itpp/fixed/cfix.cpp 2008-10-08 14:52:24.000000000 +0300 ++++ itpp-4.0.6/itpp/fixed/cfix.cpp 2009-07-30 10:37:21.000000000 +0300 +@@ -27,6 +27,8 @@ + * ------------------------------------------------------------------------- + */ + ++#include <cstdio> ++ + #include <itpp/fixed/cfix.h> + #include <itpp/base/itassert.h> + #include <iostream> +diff -ur itpp-4.0.6.orig/itpp/fixed/fix.cpp itpp-4.0.6/itpp/fixed/fix.cpp +--- itpp-4.0.6.orig/itpp/fixed/fix.cpp 2008-10-08 14:52:24.000000000 +0300 ++++ itpp-4.0.6/itpp/fixed/fix.cpp 2009-07-30 10:37:39.000000000 +0300 +@@ -27,6 +27,8 @@ + * ------------------------------------------------------------------------- + */ + ++#include <cstdio> ++ + #include <itpp/fixed/fix.h> + #include <itpp/base/itassert.h> + #include <iostream> +diff -ur itpp-4.0.6.orig/itpp/fixed/fixed.cpp itpp-4.0.6/itpp/fixed/fixed.cpp +--- itpp-4.0.6.orig/itpp/fixed/fixed.cpp 2008-10-08 14:52:24.000000000 +0300 ++++ itpp-4.0.6/itpp/fixed/fixed.cpp 2009-07-30 10:37:03.000000000 +0300 +@@ -27,6 +27,8 @@ + * ------------------------------------------------------------------------- + */ + ++#include <cstdio> ++ + #include <itpp/fixed/fixed.h> + + diff --git a/sci-libs/itpp/files/itpp-4.0.7-fastica-fix-endless-loop.patch b/sci-libs/itpp/files/itpp-4.0.7-fastica-fix-endless-loop.patch new file mode 100644 index 000000000000..8d232a421d64 --- /dev/null +++ b/sci-libs/itpp/files/itpp-4.0.7-fastica-fix-endless-loop.patch @@ -0,0 +1,93 @@ +diff -ru libitpp-4.0.7/itpp/signal/fastica.cpp libitpp-4.0.7.patched/itpp/signal/fastica.cpp +--- libitpp-4.0.7/itpp/signal/fastica.cpp 2009-12-27 01:38:47.000000000 +0100 ++++ libitpp-4.0.7.patched/itpp/signal/fastica.cpp 2010-07-08 16:32:04.000000000 +0200 +@@ -90,7 +90,7 @@ + static mat mpower(const mat A, const double y); + static ivec getSamples(const int max, const double percentage); + static vec sumcol(const mat A); +-static void fpica(const mat X, const mat whiteningMatrix, const mat dewhiteningMatrix, const int approach, const int numOfIC, const int g, const int finetune, const double a1, const double a2, double myy, const int stabilization, const double epsilon, const int maxNumIterations, const int maxFinetune, const int initState, mat guess, double sampleSize, mat & A, mat & W); ++static bool fpica(const mat X, const mat whiteningMatrix, const mat dewhiteningMatrix, const int approach, const int numOfIC, const int g, const int finetune, const double a1, const double a2, double myy, const int stabilization, const double epsilon, const int maxNumIterations, const int maxFinetune, const int initState, mat guess, double sampleSize, mat & A, mat & W); + /*! @} */ + + namespace itpp +@@ -124,7 +124,7 @@ + } + + // Call main function +-void Fast_ICA::separate(void) ++bool Fast_ICA::separate(void) + { + + int Dim = numOfIC; +@@ -159,13 +159,14 @@ + + } + ++ bool result = true; + if (PCAonly == false) { + + Dim = whitesig.rows(); + + if (numOfIC > Dim) numOfIC = Dim; + +- fpica(whitesig, whiteningMatrix, dewhiteningMatrix, approach, numOfIC, g, finetune, a1, a2, mu, stabilization, epsilon, maxNumIterations, maxFineTune, initState, guess, sampleSize, A, W); ++ result = fpica(whitesig, whiteningMatrix, dewhiteningMatrix, approach, numOfIC, g, finetune, a1, a2, mu, stabilization, epsilon, maxNumIterations, maxFineTune, initState, guess, sampleSize, A, W); + + icasig = W * mixedSig; + +@@ -174,6 +175,7 @@ + else { // PCA only : returns E as IcaSig + icasig = VecPr; + } ++ return result; + } + + void Fast_ICA::set_approach(int in_approach) { approach = in_approach; if (approach == FICA_APPROACH_DEFL) finetune = true; } +@@ -437,7 +439,7 @@ + + } + +-static void fpica(const mat X, const mat whiteningMatrix, const mat dewhiteningMatrix, const int approach, const int numOfIC, const int g, const int finetune, const double a1, const double a2, double myy, const int stabilization, const double epsilon, const int maxNumIterations, const int maxFinetune, const int initState, mat guess, double sampleSize, mat & A, mat & W) ++static bool fpica(const mat X, const mat whiteningMatrix, const mat dewhiteningMatrix, const int approach, const int numOfIC, const int g, const int finetune, const double a1, const double a2, double myy, const int stabilization, const double epsilon, const int maxNumIterations, const int maxFinetune, const int initState, mat guess, double sampleSize, mat & A, mat & W) + { + + int vectorSize = X.rows(); +@@ -511,7 +513,7 @@ + A = dewhiteningMatrix * B; + W = transpose(B) * whiteningMatrix; + +- return; ++ return false; + } + + B = B * mpower(transpose(B) * B , -0.5); +@@ -769,7 +771,7 @@ + + } // IF round + +- break; ++ return false; + + } // IF numFailures > failureLimit + +@@ -990,5 +992,5 @@ + } // While round <= numOfIC + + } // ELSE Deflation +- ++ return true; + } // FPICA +diff -ru libitpp-4.0.7/itpp/signal/fastica.h libitpp-4.0.7.patched/itpp/signal/fastica.h +--- libitpp-4.0.7/itpp/signal/fastica.h 2009-12-27 01:38:47.000000000 +0100 ++++ libitpp-4.0.7.patched/itpp/signal/fastica.h 2010-07-08 16:24:37.000000000 +0200 +@@ -134,8 +134,9 @@ + \brief Explicit launch of main FastICA function + + Explicit launch of the Fast_ICA algorithm. ++ \returns true if algorithm converged and false otherwise + */ +- void separate(void); ++ bool separate(void); + + /*! + \brief Set approach : FICA_APPROACH_DEFL or FICA_APPROACH_SYMM (default) diff --git a/sci-libs/itpp/files/itpp-4.2-automake-1.12.patch b/sci-libs/itpp/files/itpp-4.2-automake-1.12.patch new file mode 100644 index 000000000000..f383d6fda591 --- /dev/null +++ b/sci-libs/itpp/files/itpp-4.2-automake-1.12.patch @@ -0,0 +1,16 @@ + configure.ac | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 4f06171..a1e8448 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -27,6 +27,8 @@ AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_AUX_DIR([build-aux]) + AM_INIT_AUTOMAKE([-Wall -Werror]) + ++AM_PROG_AR ++ + # Shared library versioning + GENERIC_LIBRARY_VERSION="7:0:0" + # | | | diff --git a/sci-libs/itpp/files/itpp-4.2-fastica-correct-dim.patch b/sci-libs/itpp/files/itpp-4.2-fastica-correct-dim.patch new file mode 100644 index 000000000000..a852abc5cc4c --- /dev/null +++ b/sci-libs/itpp/files/itpp-4.2-fastica-correct-dim.patch @@ -0,0 +1,26 @@ +diff -ru itpp-4.2/itpp/signal/fastica.cpp itpp-4.2.new//itpp/signal/fastica.cpp +--- itpp-4.2/itpp/signal/fastica.cpp 2011-06-07 17:47:32.261000884 +0200 ++++ itpp-4.2.new//itpp/signal/fastica.cpp 2011-06-07 17:31:25.757000915 +0200 +@@ -147,6 +147,9 @@ + + whitenv(mixedSigC, E, diag(D), whitesig, whiteningMatrix, dewhiteningMatrix); + ++ Dim = whitesig.rows(); ++ ++ if (numOfIC > Dim) numOfIC = Dim; + + ivec NcFirst = to_ivec(zeros(numOfIC)); + vec NcVp = D; +@@ -161,10 +164,6 @@ + bool result = true; + if (PCAonly == false) { + +- Dim = whitesig.rows(); +- +- if (numOfIC > Dim) numOfIC = Dim; +- + result = fpica(whitesig, whiteningMatrix, dewhiteningMatrix, approach, numOfIC, g, finetune, a1, a2, mu, stabilization, epsilon, maxNumIterations, maxFineTune, initState, guess, sampleSize, A, W); + + icasig = W * mixedSig; +Nur in itpp-4.2/itpp/signal: fastica.cpp.orig. +Nur in itpp-4.2/itpp/signal: fastica.h.orig. diff --git a/sci-libs/itpp/files/itpp-4.2-pkg-config.patch b/sci-libs/itpp/files/itpp-4.2-pkg-config.patch new file mode 100644 index 000000000000..5a18952707bb --- /dev/null +++ b/sci-libs/itpp/files/itpp-4.2-pkg-config.patch @@ -0,0 +1,27 @@ + configure.ac | 2 +- + itpp.pc.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 4f06171..d3d7b76 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -322,7 +322,7 @@ test "x$FFT_LIBS" != x && LIBS="$FFT_LIBS $LIBS" + CPPFLAGS="`echo \"$CPPFLAGS\" | sed -e 's/ */ /g' -e 's/^ //' -e 's/ $//'`" + LDFLAGS="`echo \"$LDFLAGS\" | sed -e 's/ */ /g' -e 's/^ //' -e 's/ $//'`" + LIBS="`echo \"$LIBS\" | sed -e 's/ */ /g' -e 's/^ //' -e 's/ $//'`" +-LDLIBS="`echo \"$LDFLAGS $LIBS\" | sed -e 's/^ //' -e 's/ $//'`" ++LDLIBS="`echo \"$LIBS\" | sed -e 's/^ //' -e 's/ $//'`" + + if test $enable_explicit_deps = yes; then + EXPLICIT_LIBS=" $LDLIBS" # the leading space is important here... +diff --git a/itpp.pc.in b/itpp.pc.in +index 4018865..48a9543 100644 +--- a/itpp.pc.in ++++ b/itpp.pc.in +@@ -9,4 +9,4 @@ Version: @PACKAGE_VERSION@ + URL: http://itpp.sourceforge.net/ + Libs: -L${libdir} -l@PACKAGE@@EXPLICIT_LIBS@ + Libs.private:@PRIVATE_LIBS@ +-Cflags: -I${includedir} @CXXFLAGS_OPT@ ++Cflags: -I${includedir} diff --git a/sci-libs/itpp/files/itpp-4.2-test-fftw.patch b/sci-libs/itpp/files/itpp-4.2-test-fftw.patch new file mode 100644 index 000000000000..b7bb11dcc4ff --- /dev/null +++ b/sci-libs/itpp/files/itpp-4.2-test-fftw.patch @@ -0,0 +1,14 @@ +--- itpp/branches/itpp-4-2/tests/Makefile.am 2010/09/21 18:23:47 1807 ++++ itpp/branches/itpp-4-2/tests/Makefile.am 2010/12/30 23:47:09 1837 +@@ -20,9 +20,9 @@ + + OPTIM_TESTS = newton_search_test + +-SIGNAL_TESTS = filter_test source_test window_test ++SIGNAL_TESTS = filter_test source_test + SIGNAL_LAP_TESTS = fastica_test poly_test +-SIGNAL_FFT_TESTS = freq_filt_test sigfun_test transforms_test ++SIGNAL_FFT_TESTS = freq_filt_test sigfun_test transforms_test window_test + SIGNAL_LAP_FFT_TESTS = filter_design_test + + STAT_TESTS = histogram_test diff --git a/sci-libs/itpp/itpp-4.2-r1.ebuild b/sci-libs/itpp/itpp-4.2-r1.ebuild new file mode 100644 index 000000000000..a438f035b0bb --- /dev/null +++ b/sci-libs/itpp/itpp-4.2-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +AUTOTOOLS_AUTORECONF=yes + +inherit autotools-utils flag-o-matic toolchain-funcs + +DESCRIPTION="C++ library of mathematical, signal processing and communication" +HOMEPAGE="http://itpp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-3" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="blas debug doc fftw lapack minimal static-libs" + +RDEPEND=" + blas? ( virtual/blas lapack? ( virtual/lapack ) ) + !minimal? ( fftw? ( >=sci-libs/fftw-3 ) )" +DEPEND="${RDEPEND} + blas? ( virtual/pkgconfig ) + doc? ( app-doc/doxygen virtual/latex-base ) + lapack? ( virtual/pkgconfig )" + +PATCHES=( + "${FILESDIR}"/${PN}-4.0.7-fastica-fix-endless-loop.patch + "${FILESDIR}"/${P}-fastica-correct-dim.patch + "${FILESDIR}"/${P}-test-fftw.patch + ) + +src_prepare() { + # turn off performance critical debug code + use debug || append-cppflags -DNDEBUG + sed \ + -e 's:-pipe::g' \ + -e 's:-Werror::g' \ + -i configure* || die + autotools-utils_src_prepare +} + +src_configure() { + local blasconf="no" + use blas && blasconf="$($(tc-getPKG_CONFIG) --libs blas)" + local lapackconf="no" + use lapack && lapackconf="$($(tc-getPKG_CONFIG) --libs blas lapack)" + + local myeconfargs=( + --docdir="${EPREFIX}/usr/share/doc/${PF}" + --enable-shared + $(use_enable doc html-doc) + $(use_enable debug) + $(use_enable !minimal comm) + $(use_enable !minimal fixed) + $(use_enable !minimal optim) + $(use_enable !minimal protocol) + $(use_enable !minimal signal) + $(use_enable !minimal srccode) + $(use_with fftw fft) + --with-blas="${blasconf}" + --with-lapack="${lapackconf}" + ) + autotools-utils_src_configure +} diff --git a/sci-libs/itpp/itpp-4.2-r2.ebuild b/sci-libs/itpp/itpp-4.2-r2.ebuild new file mode 100644 index 000000000000..ee3ea76abd01 --- /dev/null +++ b/sci-libs/itpp/itpp-4.2-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +AUTOTOOLS_AUTORECONF=yes + +inherit autotools-utils flag-o-matic toolchain-funcs + +DESCRIPTION="C++ library of mathematical, signal processing and communication" +HOMEPAGE="http://itpp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-3" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="blas debug doc fftw lapack minimal static-libs" + +RDEPEND=" + blas? ( virtual/blas lapack? ( virtual/lapack ) ) + !minimal? ( fftw? ( >=sci-libs/fftw-3 ) )" +DEPEND="${RDEPEND} + >=sys-devel/automake-1.11.1 + blas? ( virtual/pkgconfig ) + doc? ( app-doc/doxygen virtual/latex-base ) + lapack? ( virtual/pkgconfig )" + +PATCHES=( + "${FILESDIR}"/${PN}-4.0.7-fastica-fix-endless-loop.patch + "${FILESDIR}"/${P}-fastica-correct-dim.patch + "${FILESDIR}"/${P}-test-fftw.patch + "${FILESDIR}"/${P}-automake-1.12.patch + "${FILESDIR}"/${P}-pkg-config.patch + ) + +src_prepare() { + # turn off performance critical debug code + use debug || append-cppflags -DNDEBUG + sed \ + -e 's:-pipe::g' \ + -e 's:-Werror::g' \ + -i configure* || die + autotools-utils_src_prepare +} + +src_configure() { + local blasconf="no" + use blas && blasconf="$($(tc-getPKG_CONFIG) --libs blas)" + local lapackconf="no" + use lapack && lapackconf="$($(tc-getPKG_CONFIG) --libs blas lapack)" + + local myeconfargs=( + --docdir="${EPREFIX}/usr/share/doc/${PF}" + --enable-shared + $(use_enable doc html-doc) + $(use_enable debug) + $(use_enable !minimal comm) + $(use_enable !minimal fixed) + $(use_enable !minimal optim) + $(use_enable !minimal protocol) + $(use_enable !minimal signal) + $(use_enable !minimal srccode) + $(use_with fftw fft) + --with-blas="${blasconf}" + --with-lapack="${lapackconf}" + ) + autotools-utils_src_configure +} diff --git a/sci-libs/itpp/itpp-4.3.0.ebuild b/sci-libs/itpp/itpp-4.3.0.ebuild new file mode 100644 index 000000000000..db31a1c1c38b --- /dev/null +++ b/sci-libs/itpp/itpp-4.3.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +DESCRIPTION="C++ library of mathematical, signal processing and communication" +HOMEPAGE="http://itpp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-3" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +RDEPEND=" + virtual/blas + virtual/lapack + >=sci-libs/fftw-3" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen virtual/latex-base )" + +DOCS=(ChangeLog NEWS AUTHORS README) + +src_prepare() { + # gentoo redefines the CMAKE_BUILD_TYPE + sed -i \ + -e 's/CMAKE_BUILD_TYPE STREQUAL Release/NOT CMAKE_BUILD_TYPE STREQUAL Debug/' \ + CMakeLists.txt || die + # respect gentoo doc dir + sed -i \ + -e "s:share/doc/itpp:share/doc/${PF}:" \ + itpp/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DBLA_VENDOR=Generic + $(cmake-utils_use doc HTML_DOCS) + ) + cmake-utils_src_configure +} diff --git a/sci-libs/itpp/itpp-4.3.1-r1.ebuild b/sci-libs/itpp/itpp-4.3.1-r1.ebuild new file mode 100644 index 000000000000..6a8a60a5ea7c --- /dev/null +++ b/sci-libs/itpp/itpp-4.3.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils multilib + +DESCRIPTION="C++ library of mathematical, signal processing and communication" +HOMEPAGE="http://itpp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-3" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +RDEPEND=" + virtual/blas + virtual/lapack + >=sci-libs/fftw-3" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen virtual/latex-base )" + +DOCS=(ChangeLog NEWS AUTHORS README) + +src_prepare() { + # gentoo redefines the CMAKE_BUILD_TYPE + sed -i \ + -e 's/CMAKE_BUILD_TYPE STREQUAL Release/NOT CMAKE_BUILD_TYPE STREQUAL Debug/' \ + CMakeLists.txt || die + # respect gentoo doc dir + sed -i \ + -e "s:share/doc/itpp:share/doc/${PF}:" \ + itpp/CMakeLists.txt || die + + # respect gentoo libdir + sed -i "s#/lib#/$(get_libdir)#" itpp-config.cmake.in + sed -i "s#/lib#/$(get_libdir)#" itpp.pc.cmake.in + sed -i \ + -e "s#LIBRARY DESTINATION lib#LIBRARY DESTINATION $(get_libdir)#" \ + -e "s#ARCHIVE DESTINATION lib#ARCHIVE DESTINATION $(get_libdir)#" \ + itpp/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DBLA_VENDOR=Generic + $(cmake-utils_use doc HTML_DOCS) + ) + cmake-utils_src_configure +} diff --git a/sci-libs/itpp/itpp-4.3.1.ebuild b/sci-libs/itpp/itpp-4.3.1.ebuild new file mode 100644 index 000000000000..38ce5e1194bc --- /dev/null +++ b/sci-libs/itpp/itpp-4.3.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +DESCRIPTION="C++ library of mathematical, signal processing and communication" +HOMEPAGE="http://itpp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-3" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +RDEPEND=" + virtual/blas + virtual/lapack + >=sci-libs/fftw-3" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen virtual/latex-base )" + +DOCS=(ChangeLog NEWS AUTHORS README) + +src_prepare() { + # gentoo redefines the CMAKE_BUILD_TYPE + sed -i \ + -e 's/CMAKE_BUILD_TYPE STREQUAL Release/NOT CMAKE_BUILD_TYPE STREQUAL Debug/' \ + CMakeLists.txt || die + # respect gentoo doc dir + sed -i \ + -e "s:share/doc/itpp:share/doc/${PF}:" \ + itpp/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DBLA_VENDOR=Generic + $(cmake-utils_use doc HTML_DOCS) + ) + cmake-utils_src_configure +} diff --git a/sci-libs/itpp/metadata.xml b/sci-libs/itpp/metadata.xml new file mode 100644 index 000000000000..c52430f8e962 --- /dev/null +++ b/sci-libs/itpp/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <longdescription lang="en"> + IT++ is a C++ library of mathematical, signal processing and + communication classes and functions. Its main use is in simulation + of communication systems and for performing research in the area of + communications. The kernel of the library consists of generic vector + and matrix classes, and a set of accompanying routines. Such a + kernel makes IT++ similar to MATLAB or GNU Octave . +</longdescription> + <upstream> + <remote-id type="sourceforge">itpp</remote-id> + </upstream> +</pkgmetadata> |