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 8DB821382C5 for ; Sun, 31 Jan 2021 19:24:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BFB0BE088A; Sun, 31 Jan 2021 19:24:55 +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 A7EE9E0886 for ; Sun, 31 Jan 2021 19:24:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5CDF53410A8 for ; Sun, 31 Jan 2021 19:24:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 84EC6478 for ; Sun, 31 Jan 2021 19:24:52 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1612121078.e9309c11a0caa5cb3cfce81cbf54efcadedcfa33.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/ginac/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/ginac/ginac-1.7.11.ebuild X-VCS-Directories: sci-mathematics/ginac/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: e9309c11a0caa5cb3cfce81cbf54efcadedcfa33 X-VCS-Branch: master Date: Sun, 31 Jan 2021 19:24:52 +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: 9503cc7f-015d-434a-9dac-87a85e01a721 X-Archives-Hash: 37292937c129abc48ada4ad2f154c50d commit: e9309c11a0caa5cb3cfce81cbf54efcadedcfa33 Author: David Seifert gentoo org> AuthorDate: Sun Jan 31 19:24:38 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Sun Jan 31 19:24:38 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9309c11 sci-mathematics/ginac: Depend on python-any-r1 * Also fix src_test() Closes: https://bugs.gentoo.org/763516 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: David Seifert gentoo.org> sci-mathematics/ginac/ginac-1.7.11.ebuild | 66 +++++++++++++++++-------------- 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/sci-mathematics/ginac/ginac-1.7.11.ebuild b/sci-mathematics/ginac/ginac-1.7.11.ebuild index bd90fbd5c1b..8c06689bf02 100644 --- a/sci-mathematics/ginac/ginac-1.7.11.ebuild +++ b/sci-mathematics/ginac/ginac-1.7.11.ebuild @@ -1,9 +1,11 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit multilib flag-o-matic +PYTHON_COMPAT=( python3_{7..9} ) + +inherit python-any-r1 DESCRIPTION="C++ library and tools for symbolic calculations" SRC_URI="http://www.ginac.de/${P}.tar.bz2" @@ -12,58 +14,62 @@ HOMEPAGE="https://www.ginac.de/" LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" -IUSE="doc static-libs" +IUSE="doc examples" RDEPEND=">=sci-libs/cln-1.2.2" -DEPEND="${RDEPEND} +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} virtual/pkgconfig - doc? ( app-doc/doxygen - media-gfx/transfig - virtual/texi2dvi - dev-texlive/texlive-fontsrecommended - )" + doc? ( + app-doc/doxygen + dev-texlive/texlive-fontsrecommended + media-gfx/transfig + virtual/texi2dvi + )" PATCHES=( "${FILESDIR}"/${PN}-1.5.1-pkgconfig.patch ) src_configure() { - append-cxxflags -std=c++14 - econf --disable-rpath $(use_enable static-libs static) + econf \ + --disable-rpath \ + --disable-static } src_compile() { emake + if use doc; then - export VARTEXFONTS="${T}"/fonts - pushd doc/reference >> /dev/null || die "pushd doc/reference failed" - emake html pdf - popd >> /dev/null - pushd doc/tutorial >> /dev/null || die "pushd doc/tutorial failed" - emake ginac.pdf ginac.html - popd >> /dev/null + local -x VARTEXFONTS="${T}"/fonts + emake -C doc/reference html pdf + emake -C doc/tutorial ginac.pdf ginac.html fi } -src_test() { - pushd ../${P}_build > /dev/null - emake check - popd > /dev/null -} - src_install() { default - if ! use static-libs; then - rm "${D}"/usr/$(get_libdir)/lib${PN}.la || die "cannot rm lib${PN}.la" - fi + if use doc; then - pushd doc > /dev/null || die "pushd doc failed" + pushd doc >/dev/null || die newdoc tutorial/ginac.pdf tutorial.pdf newdoc reference/reference.pdf reference.pdf + docinto html/reference dodoc -r reference/html_files/. + docinto html newdoc tutorial/ginac.html tutorial.html + popd >/dev/null || die + fi + + if use examples; then + pushd doc >/dev/null || die docinto examples - dodoc "${S}"/doc/examples/*.cpp examples/ginac-examples.* - popd > /dev/null + dodoc examples/*.cpp examples/ginac-examples.* + docompress -x /usr/share/doc/${PF}/examples + popd >/dev/null || die fi + + # no static archives + find "${ED}" -name '*.la' -delete || die }