From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 47CA1138350 for ; Sun, 8 Mar 2020 17:47:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60212E0882; Sun, 8 Mar 2020 17:47:01 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2B71BE0882 for ; Sun, 8 Mar 2020 17:47:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A4BD434F6CD for ; Sun, 8 Mar 2020 17:46:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 23B35185 for ; Sun, 8 Mar 2020 17:46:57 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1583689593.284c9a2368f262f99f27284aac1f016b7862a442.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/symengine/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/symengine/symengine-0.5.0-r1.ebuild X-VCS-Directories: sci-libs/symengine/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 284c9a2368f262f99f27284aac1f016b7862a442 X-VCS-Branch: master Date: Sun, 8 Mar 2020 17:46:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 15382784-61e0-43a1-a8fa-b89f195f9c07 X-Archives-Hash: 64d1f6b78afe97482007230dcb8db135 commit: 284c9a2368f262f99f27284aac1f016b7862a442 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Mar 8 17:13:32 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Mar 8 17:46:33 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=284c9a23 sci-libs/symengine: Add missing USE flint dependency Closes: https://bugs.gentoo.org/711878 Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner gentoo.org> sci-libs/symengine/symengine-0.5.0-r1.ebuild | 81 ++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/sci-libs/symengine/symengine-0.5.0-r1.ebuild b/sci-libs/symengine/symengine-0.5.0-r1.ebuild new file mode 100644 index 00000000000..f1f0af9df4f --- /dev/null +++ b/sci-libs/symengine/symengine-0.5.0-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_BUILD_TYPE=Release +inherit cmake flag-o-matic toolchain-funcs + +DESCRIPTION="Fast symbolic manipulation library, written in C++" +HOMEPAGE="https://github.com/sympy/symengine" +SRC_URI="https://github.com/sympy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/0.4" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="arb benchmarks boost debug doc ecm flint llvm mpc mpfr openmp test tcmalloc threads" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/gmp:= + sys-libs/binutils-libs:= + arb? ( sci-mathematics/arb:= ) + boost? ( dev-libs/boost:= ) + ecm? ( sci-mathematics/gmp-ecm ) + flint? ( sci-mathematics/flint:= ) + mpc? ( dev-libs/mpc:= ) + tcmalloc? ( dev-util/google-perftools ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[dot] ) +" + +pkg_pretend() { + use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp +} + +src_prepare() { + cmake_src_prepare + sed -e "s|DESTINATION doc| DESTINATION share/doc/${PF}/html|" \ + -e "s|/lib|/$(get_libdir)|g" \ + -e "s|lib/|$(get_libdir)/|g" \ + -e "/DESTINATION/s|lib|$(get_libdir)|g" \ + -i CMakeLists.txt symengine/CMakeLists.txt \ + symengine/utilities/teuchos/CMakeLists.txt || die +} + +src_configure() { + # not in portage yet: piranha + local int_class + if use arb || use flint; then + int_class=flint + elif use mpfr; then + int_class=gmpxx + elif use boost; then + int_class=boostmp + else + int_class=gmp + fi + local mycmakeargs=( + -DINTEGER_CLASS="${int_class}" + -DBUILD_BENCHMARKS="$(usex benchmarks)" + -DBUILD_DOXYGEN="$(usex doc)" + -DBUILD_TESTS="$(usex test)" + -DWITH_ARB="$(usex arb)" + -DWITH_BFD="$(usex debug)" + -DWITH_SYMENGINE_ASSERT="$(usex debug)" + -DWITH_SYMENGINE_THREAD_SAFE="$(usex threads)" + -DWITH_FLINT="$(usex flint)" + -DWITH_OPENMP="$(usex openmp)" + -DWITH_MPFR="$(usex mpfr)" + -DWITH_MPC="$(usex mpc)" + -DWITH_LLVM="$(usex llvm)" + -DWITH_PTHREAD="$(usex threads)" + -DWITH_TCMALLOC="$(usex tcmalloc)" + -DWITH_ECM="$(usex ecm)" + ) + use arb && mycmakeargs+=( -DARB_INCLUDE_DIR="${EPREFIX}/usr/include" ) + + test-flag-CXX -std=c++11 && append-cxxflags -std=c++11 + cmake_src_configure +}