From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-libs/blitz/Manifest | 7 ++ dev-libs/blitz/blitz-0.10-r1.ebuild | 65 +++++++++++++ dev-libs/blitz/blitz-0.10.ebuild | 61 ++++++++++++ dev-libs/blitz/files/blitz-0.10-docs.patch | 88 +++++++++++++++++ dev-libs/blitz/files/blitz-0.10-gcc47.patch | 33 +++++++ .../files/blitz-0.10-set-default-arg-value.patch | 107 +++++++++++++++++++++ dev-libs/blitz/metadata.xml | 24 +++++ 7 files changed, 385 insertions(+) create mode 100644 dev-libs/blitz/Manifest create mode 100644 dev-libs/blitz/blitz-0.10-r1.ebuild create mode 100644 dev-libs/blitz/blitz-0.10.ebuild create mode 100644 dev-libs/blitz/files/blitz-0.10-docs.patch create mode 100644 dev-libs/blitz/files/blitz-0.10-gcc47.patch create mode 100644 dev-libs/blitz/files/blitz-0.10-set-default-arg-value.patch create mode 100644 dev-libs/blitz/metadata.xml (limited to 'dev-libs/blitz') diff --git a/dev-libs/blitz/Manifest b/dev-libs/blitz/Manifest new file mode 100644 index 000000000000..b80573d19043 --- /dev/null +++ b/dev-libs/blitz/Manifest @@ -0,0 +1,7 @@ +AUX blitz-0.10-docs.patch 2824 BLAKE2B f352937865702b8f68186bb2e177c7a628e31662bacc6d49f0d0f800f0f14b16a1d00aefb7c5b09ac73625fc3024f62880bd969583107d48ad4b5b0db4f7186e SHA512 c20fe575a5466c11ec386a3e826622035826b0fea133c3f212809d5b39f0ea058418b347e425daded48141b5ef1446af655f221a60e1919f3867442673ff9707 +AUX blitz-0.10-gcc47.patch 1534 BLAKE2B 9a8db3f4f8ddd5d041615d87defc9017bd868b933926d733c9471293791e9e4166fcae0d60932a8416293e6d05a16d3182f1f0d3fc66914b513100fccb737e9a SHA512 1cc37eba48e7e486dd53f9441b375be2f8140fe634e2fbf3a1bfb0225a7eb0810f95b3f02c66c674d88a97a13f598677867ad77472dc0cd7a3b936a5e3c185de +AUX blitz-0.10-set-default-arg-value.patch 4809 BLAKE2B cc0b67bf45b9735520b23a899c91ad170e8f2f16ad7b5517ba9e1f7363bd90bba667ad2f25453a80c9d0ed7423397e08c4250d9b673a091631fcd8e24cff9fde SHA512 8181b3740b561f126ce503cc74ed09f9cd1f54cadd29634b2a2771c00cdf6ecc51f82441d30c55703e5576d929dc555a6c52def65b542ffea66a86eca4d6c1f1 +DIST blitz-0.10.tar.gz 3777276 BLAKE2B 0817a5189c0967c073a3da8fecef6159d53c058e93222bf03f9b33a51bc9b5a6a1976f94d8a6ca6f33ddcefe222eece011443fb2f29555ee2e156c24749249ba SHA512 04fb0c8735d8ae173e6e907bd04fd739c482b7816c25b7dfe58c8641b90c17321e9a6849ced73a04ca9cc55439070de1a1e395497887317b553b0550fa0a2462 +EBUILD blitz-0.10-r1.ebuild 1620 BLAKE2B 5ddd7fbac1cd92c40961180929f415dc41a33323781ec3c269d5111aca9d60a772a8daea69bb5c10debb71f5657ad9b4fb92ef3eb97f1bcd550bf401e00a889b SHA512 2979767087474edf5cd565c29a3889341a2693fc6731593e09df23babd9beedd93a1d8e31918fa2fbfa40752cbb1d7295edc8d95fa8b7868db6bd3bd4fce3692 +EBUILD blitz-0.10.ebuild 1556 BLAKE2B 7ccd37706a64dfd643d4d009b681b8eec0f7ccdf3b1abd2ab93f3b4052654131fc0d289ba92d13f54f2dd36901cf6247458d6f37bcdcaae18668babd8fbed5bf SHA512 94358c22d0aa0cb652a5372e962ddd35932f7e8cd6d52e86e397c8e8a3663b678aca4875580aea19f66092f454740e193bacc64e18b580dfa640d5dc786e7e84 +MISC metadata.xml 950 BLAKE2B 9b19f47d88c5569d38de494da4e263c860bf1c19baf9193d190109d42b9c5c311a2d90a4796837f8f118f4c9b2929afa730a32030af7cbb8a5223c6c8dc86953 SHA512 9d38d81706a42f393c66b34dbfd292daf3e16556ca47c55039abaa1a6dfe18201a3420698a1a93310a1cb5f8c2ca6956737c9811aefb2dd79e95482c9cc9d91b diff --git a/dev-libs/blitz/blitz-0.10-r1.ebuild b/dev-libs/blitz/blitz-0.10-r1.ebuild new file mode 100644 index 000000000000..212bf8408092 --- /dev/null +++ b/dev-libs/blitz/blitz-0.10-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +inherit autotools-utils + +DESCRIPTION="High-performance C++ numeric library" +HOMEPAGE="http://blitz.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="|| ( LGPL-3 Artistic-2 BSD )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~ppc-macos ~x86-linux ~x86-macos" + +IUSE="boost debug doc examples static-libs" + +RDEPEND="boost? ( >=dev-libs/boost-1.40 )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[dot] )" + +PATCHES=( + "${FILESDIR}/${P}-docs.patch" + "${FILESDIR}/${P}-gcc47.patch" + "${FILESDIR}/${P}-set-default-arg-value.patch" +) + +src_configure() { + # blas / fortran only needed for benchmarks + use doc && doxygen -u doc/doxygen/Doxyfile.in + local myeconfargs=( + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" + --enable-shared + --disable-cxx-flags-preset + --disable-fortran + --without-blas + $(use_enable boost serialization) + $(use_enable debug) + $(use_enable doc doxygen) + $(use_enable doc html-docs) + $(use_with boost boost "${EPREFIX}/usr") + $(use_with boost boost-serialization) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile LDFLAGS="${LDFLAGS}" lib + use doc && autotools-utils_src_compile info html pdf +} + +src_test() { + pushd ${AUTOTOOLS_BUILD_DIR} > /dev/null + emake check-testsuite check-examples + popd > /dev/null +} + +src_install () { + autotools-utils_src_install $(use doc && echo install-html install-pdf) + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.{cpp,f} + fi +} diff --git a/dev-libs/blitz/blitz-0.10.ebuild b/dev-libs/blitz/blitz-0.10.ebuild new file mode 100644 index 000000000000..02744f2ceeb7 --- /dev/null +++ b/dev-libs/blitz/blitz-0.10.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils multilib + +DESCRIPTION="High-performance C++ numeric library" +HOMEPAGE="http://blitz.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="|| ( LGPL-3 Artistic-2 BSD )" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~ppc-macos ~x86-linux ~x86-macos" +IUSE="boost debug doc examples static-libs" + +RDEPEND="boost? ( >=dev-libs/boost-1.40 )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[dot] )" + +PATCHES=( "${FILESDIR}"/${P}-{docs,gcc47,set-default-arg-value}.patch ) + +src_configure() { + # blas / fortran only needed for benchmarks + use doc && doxygen -u doc/doxygen/Doxyfile.in + local myeconfargs=( + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" + --enable-shared + --disable-cxx-flags-preset + --disable-fortran + --without-blas + $(use_enable boost serialization) + $(use_enable debug) + $(use_enable doc doxygen) + $(use_enable doc html-docs) + $(use_with boost boost "${EPREFIX}/usr") + $(use_with boost boost-serialization) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile lib + use doc && autotools-utils_src_compile info html pdf +} + +src_test() { + pushd ${AUTOTOOLS_BUILD_DIR} > /dev/null + emake check-testsuite check-examples + popd > /dev/null +} + +src_install () { + autotools-utils_src_install $(use doc&& echo install-html install-pdf) + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.{cpp,f} + fi +} diff --git a/dev-libs/blitz/files/blitz-0.10-docs.patch b/dev-libs/blitz/files/blitz-0.10-docs.patch new file mode 100644 index 000000000000..dd0dca77af36 --- /dev/null +++ b/dev-libs/blitz/files/blitz-0.10-docs.patch @@ -0,0 +1,88 @@ +* respect user's docdir,htmldir,pdfdir at configuration time +* install recursive for doxygen generated +* works for out-of-source directory installation + +bicatali@gentoo.org Aug 2012 + +diff -Nur doc.orig/doxygen/Makefile.am doc/doxygen/Makefile.am +--- doc.orig/doxygen/Makefile.am 2012-05-11 13:11:13.000000000 -0700 ++++ doc/doxygen/Makefile.am 2012-08-13 13:44:27.616583722 -0700 +@@ -2,7 +2,6 @@ + + # Support doxygen documentation ? + +-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/doxygen + + DISTCLEANFILES = Doxyfile doxygen-warning + +@@ -84,29 +83,27 @@ + $(RM) -rf latex; \ + fi + +-# Install hooks +-make-install-dirs: +- @if test '!' -d $(DESTDIR)$(docdir) ; \ +- then mkdir -p $(DESTDIR)$(docdir) ; \ +- fi + +-install-data-hook: make-install-dirs ++install-data-hook: + @if test -d html; then \ +- echo Installing HTML documentation into $(DESTDIR)$(docdir) ; \ +- $(INSTALL_DATA) html/* $(DESTDIR)$(docdir) ; \ ++ echo Installing HTML documentation into $(DESTDIR)$(htmldir) ; \ ++ $(MKDIR_P) $(DESTDIR)$(htmldir) ; \ ++ cp -r html/* $(DESTDIR)$(htmldir) ; \ + fi + @if test -f $(PACKAGE).pdf; then \ +- echo Installing PDF manual into $(DESTDIR)$(docdir) ; \ +- $(INSTALL_DATA) $(PACKAGE).pdf $(DESTDIR)$(docdir) ; \ ++ echo Installing PDF manual into $(DESTDIR)$(pdfdir) ; \ ++ $(MKDIR_P) $(DESTDIR)$(pdfdir) ; \ ++ $(INSTALL_DATA) $(PACKAGE).pdf $(DESTDIR)$(pdfdir) ; \ + fi + @if test -f $(PACKAGE).ps; then \ +- echo Installing PS manual into $(DESTDIR)$(docdir) ; \ +- $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(docdir) ; \ ++ echo Installing PS manual into $(DESTDIR)$(psdir) ; \ ++ $(MKDIR_P) $(DESTDIR)$(psdir) ; \ ++ $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir) ; \ + fi + + uninstall-hook: + @echo Uninstalling doxygen documentation directory ; \ +- rm -rf "$(DESTDIR)$(docdir)"; ++ rm -rf "$(DESTDIR)$(htmldir)" "$(DESTDIR)$(psdir)" "$(DESTDIR)$(pdfdir)" ; + + + +diff -Nur doc.orig/Makefile.am doc/Makefile.am +--- doc.orig/Makefile.am 2012-05-11 13:11:13.000000000 -0700 ++++ doc/Makefile.am 2012-08-13 13:54:04.490647132 -0700 +@@ -4,8 +4,6 @@ + + SUBDIRS = examples stencils doxygen + +-# docdir directory to install the doc (pdf ps html) +-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION) + + DVIPS=export TEXPICTS=$(srcdir); dvips + AM_MAKEINFOFLAGS = --no-split -I$(srcdir) +@@ -78,7 +76,7 @@ + # Install also the images into the directory html + install-html-local: + test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" +- $(INSTALL_DATA) *.gif *.jpg $(DESTDIR)$(htmldir) ++ $(INSTALL_DATA) $(srcdir)/*.gif $(srcdir)/*.jpg $(DESTDIR)$(htmldir) + + .PHONY: html + +@@ -86,7 +84,7 @@ + + # Install also the images into the directory containing the html files + install-html-local: +- $(INSTALL_DATA) *.gif *.jpg blitz.html ++ $(INSTALL_DATA) $(srcdir)/*.gif $(srcdir)/*.jpg $(top_builddir)/doc/blitz.html + + endif + diff --git a/dev-libs/blitz/files/blitz-0.10-gcc47.patch b/dev-libs/blitz/files/blitz-0.10-gcc47.patch new file mode 100644 index 000000000000..d0b35665567b --- /dev/null +++ b/dev-libs/blitz/files/blitz-0.10-gcc47.patch @@ -0,0 +1,33 @@ +diff -ur blitz-0.10/blitz/bzdebug.h blitz-0.10.new/blitz/bzdebug.h +--- blitz-0.10/blitz/bzdebug.h 2012-05-11 22:11:13.000000000 +0200 ++++ blitz-0.10.new/blitz/bzdebug.h 2012-06-28 15:42:38.060656045 +0200 +@@ -117,15 +117,15 @@ + } + } + +- #define BZASSERT(X) checkAssert(X, __FILE__, __LINE__) +- #define BZPRECONDITION(X) checkAssert(X, __FILE__, __LINE__) +- #define BZPOSTCONDITION(X) checkAssert(X, __FILE__, __LINE__) +- #define BZSTATECHECK(X,Y) checkAssert(X == Y, __FILE__, __LINE__) ++ #define BZASSERT(X) blitz::checkAssert(X, __FILE__, __LINE__) ++ #define BZPRECONDITION(X) blitz::checkAssert(X, __FILE__, __LINE__) ++ #define BZPOSTCONDITION(X) blitz::checkAssert(X, __FILE__, __LINE__) ++ #define BZSTATECHECK(X,Y) blitz::checkAssert(X == Y, __FILE__, __LINE__) + #define BZPRECHECK(X,Y) \ + { \ + if ((assertFailMode == false) && (!(X))) \ + BZ_STD_SCOPE(cerr) << Y << BZ_STD_SCOPE(endl); \ +- checkAssert(X, __FILE__, __LINE__); \ ++ blitz::checkAssert(X, __FILE__, __LINE__); \ + } + + #define BZ_DEBUG_MESSAGE(X) \ +@@ -138,7 +138,7 @@ + } + + #define BZ_DEBUG_PARAM(X) X +- #define BZ_PRE_FAIL checkAssert(0) ++ #define BZ_PRE_FAIL blitz::checkAssert(0) + #define BZ_ASM_DEBUG_MARKER + + #elif defined(BZ_DEBUG) diff --git a/dev-libs/blitz/files/blitz-0.10-set-default-arg-value.patch b/dev-libs/blitz/files/blitz-0.10-set-default-arg-value.patch new file mode 100644 index 000000000000..6d10b399a1af --- /dev/null +++ b/dev-libs/blitz/files/blitz-0.10-set-default-arg-value.patch @@ -0,0 +1,107 @@ +Set default variable to allow both --enable-x/--disable-x and + --with-x/--without-x to work as expected. + +bicatali@gentoo.org 08/2012 + +--- configure.ac.orig 2012-08-20 17:46:41.000000000 +0100 ++++ configure.ac 2012-08-20 17:56:23.000000000 +0100 +@@ -37,7 +37,7 @@ + # Option to disable Fortran (benchmarks will not compile) + AC_MSG_CHECKING([whether to enable Fortran compilation for benchmark codes]) + AC_ARG_ENABLE(fortran, +- AS_HELP_STRING([--enable-fortran],[Enable Fortran compilation]),,[ ++ AS_HELP_STRING([--enable-fortran],[Enable Fortran compilation]),enable_fortran=$enableval,[ + enable_fortran="yes"]) + AC_MSG_RESULT([$enable_fortran]) + AM_CONDITIONAL(FORTRAN_ENABLED, [test $enable_fortran = yes]) +@@ -96,7 +96,7 @@ + # Option to enable thread-safety (requires thread support or OpenMP) + AC_MSG_CHECKING([whether to enable Blitz thread-safety features]) + AC_ARG_ENABLE(threadsafe, +- AS_HELP_STRING([--enable-threadsafe],[Enable thread-safety features]),,[ ++ AS_HELP_STRING([--enable-threadsafe],[Enable thread-safety features]),enable_threadsafe=$enableval,[ + enable_threadsafe="no"]) + AC_MSG_RESULT([$enable_threadsafe]) + if test "$enable_threadsafe" = yes; then +@@ -106,17 +106,22 @@ + AC_MSG_CHECKING([if we are using Intel Threading Building Blocks]) + AC_ARG_WITH([tbb], + AS_HELP_STRING([--with-tbb],[Use Intel Threading Building Blocks atomic types]), +- [ ++ [if test x$withval != xno; then + AC_MSG_RESULT([yes]) + AC_CHECK_HEADERS([tbb/atomic.h],,AC_MSG_ERROR([tbb/atomic.h not found])) + AC_DEFINE([THREADSAFE_USE_TBB],[1],[Use TBB atomic types]) ++ else ++ AC_MSG_RESULT([no]) ++ fi + ],AC_MSG_RESULT([no])) + + AC_MSG_CHECKING([for SIMD instruction width]) + AC_ARG_ENABLE([simd-width], + AS_HELP_STRING([--enable-simd-width=n],[Facilitate compiler vectorization optimizations for SIMD instruction width of n bytes.]), +- [ AC_ALIGNMENT_DIRECTIVE +- AC_DEFINE([USE_ALIGNMENT_PRAGMAS],[1],[Specifies whether compiler alignment pragmas should be used]) ], ++ [if test x$enableval != xno; then ++ AC_ALIGNMENT_DIRECTIVE ++ AC_DEFINE([USE_ALIGNMENT_PRAGMAS],[1],[Specifies whether compiler alignment pragmas should be used]) ++ fi ], + [enable_simd_width=no] + ) + AC_MSG_RESULT([$enable_simd_width]) +@@ -130,12 +135,15 @@ + AC_MSG_CHECKING([whether to pad array lengths to SIMD instruction width]) + AC_ARG_ENABLE([array-length-padding], + AS_HELP_STRING([--enable-array-length-padding],[Sets the default array padding policy to pad all lowest-rank lengths to nearest larger SIMD width. Caution: This means that arrays will in general be non-contiguous.]), +- [ ++ [if test x$enableval != xno; then + AC_MSG_RESULT([yes]) + if test "$enable_simd_width" == [1] ; then + AC_MSG_WARN([This option is useless without a SIMD width >1.]) + fi + AC_DEFINE([PAD_ARRAYS],1,[Pad array lengths to SIMD width.]) ++ else ++ AC_MSG_RESULT([no]) ++ fi + ],AC_MSG_RESULT([no])) + + AC_MSG_CHECKING([whether to enable Blitz 64-bit dimensions]) +@@ -147,10 +155,14 @@ + AC_MSG_CHECKING([whether to enable serialization support]) + AC_ARG_ENABLE([serialization], + AS_HELP_STRING([--enable-serialization],[Enable serialization support using Boost::Serialization]), [ ++ if test x$enableval != xno; then + AC_MSG_RESULT([yes]) + AX_BOOST_BASE([1.40.0]) + AX_BOOST_SERIALIZATION + AC_CHECK_HEADERS([boost/mpi.hpp]) ++ else ++ AC_MSG_RESULT([no]) ++ fi + ], AC_MSG_RESULT([no])) + + # check for PAPI library +diff -Nur m4.orig/ac_prog_doxygen.m4 m4/ac_prog_doxygen.m4 +--- m4.orig/ac_prog_doxygen.m4 2012-08-20 18:03:12.000000000 +0100 ++++ m4/ac_prog_doxygen.m4 2012-08-20 18:00:46.000000000 +0100 +@@ -3,16 +3,16 @@ + AC_DEFUN([AC_PROG_DOXYGEN], + [ + AC_ARG_ENABLE(doxygen, +-AS_HELP_STRING([--enable-doxygen],[enable documentation generation with doxygen (no)]),[],[enable_doxygen=no]) ++AS_HELP_STRING([--enable-doxygen],[enable documentation generation with doxygen (no)]),[enable_doxygen=$enableval],[enable_doxygen=no]) + + AC_ARG_ENABLE(dot, +-AS_HELP_STRING([--enable-dot],[use 'dot' to generate graphs in doxygen (no)]),[],[enable_dot=no]) ++AS_HELP_STRING([--enable-dot],[use 'dot' to generate graphs in doxygen (no)]),[enable_dot=$enableval],[enable_dot=no]) + AC_ARG_ENABLE(html-docs, + AS_HELP_STRING([--enable-html-docs],[enable HTML generation with doxygen (no)]), +-[],[ enable_html_docs=no]) ++[enable_html_docs=$enableval],[ enable_html_docs=no]) + AC_ARG_ENABLE(latex-docs, + AS_HELP_STRING([--enable-latex-docs], +-[enable LaTeX documentation generation with doxygen (no)]),[],[enable_latex_docs=no]) ++[enable LaTeX documentation generation with doxygen (no)]),[enable_latex_docs=$enableval],[enable_latex_docs=no]) + + if test "x$enable_doxygen" = xno; then + enable_doc=no diff --git a/dev-libs/blitz/metadata.xml b/dev-libs/blitz/metadata.xml new file mode 100644 index 000000000000..ff6aefb9c92b --- /dev/null +++ b/dev-libs/blitz/metadata.xml @@ -0,0 +1,24 @@ + + + + + cpp@gentoo.org + Gentoo C++ Project + + + Blitz++ is a meta-template library for array + manipulation in C++ with a speed comparable to Fortran + implementations, while preserving an object-oriented + interface. These results are being obtained not through better + optimizing compilers, preprocessors, or language extensions, but + through the use of template techniques. By using templates cleverly, + optimizations such as loop fusion, unrolling, tiling, and algorithm + specialization can be performed automatically at compile time. + + + Enable usage of boost::serialization + + + blitz + + -- cgit v1.2.3