Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/ginac/
Date: Sun, 31 Jan 2021 19:24:56
Message-Id: 1612121078.e9309c11a0caa5cb3cfce81cbf54efcadedcfa33.soap@gentoo
1 commit: e9309c11a0caa5cb3cfce81cbf54efcadedcfa33
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 31 19:24:38 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 31 19:24:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9309c11
7
8 sci-mathematics/ginac: Depend on python-any-r1
9
10 * Also fix src_test()
11
12 Closes: https://bugs.gentoo.org/763516
13 Package-Manager: Portage-3.0.14, Repoman-3.0.2
14 Signed-off-by: David Seifert <soap <AT> gentoo.org>
15
16 sci-mathematics/ginac/ginac-1.7.11.ebuild | 66 +++++++++++++++++--------------
17 1 file changed, 36 insertions(+), 30 deletions(-)
18
19 diff --git a/sci-mathematics/ginac/ginac-1.7.11.ebuild b/sci-mathematics/ginac/ginac-1.7.11.ebuild
20 index bd90fbd5c1b..8c06689bf02 100644
21 --- a/sci-mathematics/ginac/ginac-1.7.11.ebuild
22 +++ b/sci-mathematics/ginac/ginac-1.7.11.ebuild
23 @@ -1,9 +1,11 @@
24 -# Copyright 1999-2020 Gentoo Authors
25 +# Copyright 1999-2021 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=7
29
30 -inherit multilib flag-o-matic
31 +PYTHON_COMPAT=( python3_{7..9} )
32 +
33 +inherit python-any-r1
34
35 DESCRIPTION="C++ library and tools for symbolic calculations"
36 SRC_URI="http://www.ginac.de/${P}.tar.bz2"
37 @@ -12,58 +14,62 @@ HOMEPAGE="https://www.ginac.de/"
38 LICENSE="GPL-2+"
39 SLOT="0"
40 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
41 -IUSE="doc static-libs"
42 +IUSE="doc examples"
43
44 RDEPEND=">=sci-libs/cln-1.2.2"
45 -DEPEND="${RDEPEND}
46 +DEPEND="${RDEPEND}"
47 +BDEPEND="
48 + ${PYTHON_DEPS}
49 virtual/pkgconfig
50 - doc? ( app-doc/doxygen
51 - media-gfx/transfig
52 - virtual/texi2dvi
53 - dev-texlive/texlive-fontsrecommended
54 - )"
55 + doc? (
56 + app-doc/doxygen
57 + dev-texlive/texlive-fontsrecommended
58 + media-gfx/transfig
59 + virtual/texi2dvi
60 + )"
61
62 PATCHES=( "${FILESDIR}"/${PN}-1.5.1-pkgconfig.patch )
63
64 src_configure() {
65 - append-cxxflags -std=c++14
66 - econf --disable-rpath $(use_enable static-libs static)
67 + econf \
68 + --disable-rpath \
69 + --disable-static
70 }
71
72 src_compile() {
73 emake
74 +
75 if use doc; then
76 - export VARTEXFONTS="${T}"/fonts
77 - pushd doc/reference >> /dev/null || die "pushd doc/reference failed"
78 - emake html pdf
79 - popd >> /dev/null
80 - pushd doc/tutorial >> /dev/null || die "pushd doc/tutorial failed"
81 - emake ginac.pdf ginac.html
82 - popd >> /dev/null
83 + local -x VARTEXFONTS="${T}"/fonts
84 + emake -C doc/reference html pdf
85 + emake -C doc/tutorial ginac.pdf ginac.html
86 fi
87 }
88
89 -src_test() {
90 - pushd ../${P}_build > /dev/null
91 - emake check
92 - popd > /dev/null
93 -}
94 -
95 src_install() {
96 default
97 - if ! use static-libs; then
98 - rm "${D}"/usr/$(get_libdir)/lib${PN}.la || die "cannot rm lib${PN}.la"
99 - fi
100 +
101 if use doc; then
102 - pushd doc > /dev/null || die "pushd doc failed"
103 + pushd doc >/dev/null || die
104 newdoc tutorial/ginac.pdf tutorial.pdf
105 newdoc reference/reference.pdf reference.pdf
106 +
107 docinto html/reference
108 dodoc -r reference/html_files/.
109 +
110 docinto html
111 newdoc tutorial/ginac.html tutorial.html
112 + popd >/dev/null || die
113 + fi
114 +
115 + if use examples; then
116 + pushd doc >/dev/null || die
117 docinto examples
118 - dodoc "${S}"/doc/examples/*.cpp examples/ginac-examples.*
119 - popd > /dev/null
120 + dodoc examples/*.cpp examples/ginac-examples.*
121 + docompress -x /usr/share/doc/${PF}/examples
122 + popd >/dev/null || die
123 fi
124 +
125 + # no static archives
126 + find "${ED}" -name '*.la' -delete || die
127 }