Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/form/
Date: Fri, 31 Jan 2020 14:47:49
Message-Id: 1580482029.375125ddda97fd30eac4542a97f67c50949fa49d.grozin@gentoo
1 commit: 375125ddda97fd30eac4542a97f67c50949fa49d
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 31 14:47:09 2020 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 31 14:47:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=375125dd
7
8 sci-mathematics/form: bump to 4.2.1
9
10 Package-Manager: Portage-2.3.86, Repoman-2.3.20
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 sci-mathematics/form/Manifest | 1 +
14 sci-mathematics/form/form-4.2.1.ebuild | 82 ++++++++++++++++++++++++++++++++++
15 sci-mathematics/form/metadata.xml | 7 ++-
16 3 files changed, 88 insertions(+), 2 deletions(-)
17
18 diff --git a/sci-mathematics/form/Manifest b/sci-mathematics/form/Manifest
19 index 0d47550f4bc..b6fd32665e0 100644
20 --- a/sci-mathematics/form/Manifest
21 +++ b/sci-mathematics/form/Manifest
22 @@ -1,2 +1,3 @@
23 DIST form-4.1.tar.gz 1260530 BLAKE2B ec279a069ea096089e9180541888f3212c6406311745a73cfd3f2e6da74f2fc88a93eea6d0d4af838fac6583e1eed5562455a40aca4cf502602552929453dfee SHA512 39ab2fa1e448d6d5e427cc2c92285cc27f84724addffc378f3b799fc2b3f6381b8dceb87cb980062b980885d8d81591c5c7ff7b0dbeae7b6d9a3cf0b03d58aae
24 DIST form-4.2.0.tar.gz 1386285 BLAKE2B 3f50fe992df2c5b0e36b278de4e65a353a75c4b2c57be0c55f9973a8177577ed76ee40f8628b13ae9c2b7d73f38a7b4710b96db38639faa8ff002f42a8ec32f8 SHA512 7566b89c1c1b74da58da92426f5e4beee271d4273df6cbe1d1de1a17377125b745103852c363dfe8ff1b0e9cb9ba4c84187406e8f77b23f5198fd592f5dfe341
25 +DIST form-4.2.1.tar.gz 1444257 BLAKE2B 27ac9ee1412e6f478324b170e37e6e31822b74f902a5739d5fa00558aa4c9f7a977bd5fe3d6982313f1232a774c592d44af07fec8a290266c31bf3a100e87d1a SHA512 5569ae3e487194b0d082f4a032fb4b8d57238218d92d9b04d5f51db2a73e065eb1efdc26011bda46723e902fa3f324010ca2f8e91ba9a077e87b0a07b40cf594
26
27 diff --git a/sci-mathematics/form/form-4.2.1.ebuild b/sci-mathematics/form/form-4.2.1.ebuild
28 new file mode 100644
29 index 00000000000..c42c2a499f2
30 --- /dev/null
31 +++ b/sci-mathematics/form/form-4.2.1.ebuild
32 @@ -0,0 +1,82 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools
39 +
40 +DESCRIPTION="Symbolic Manipulation System"
41 +HOMEPAGE="https://www.nikhef.nl/~form/ https://github.com/vermaseren/form/"
42 +SRC_URI="https://github.com/vermaseren/${PN}/releases/download/v${PV}/${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="devref doc doxygen gmp mpi threads zlib"
48 +
49 +RDEPEND="
50 + gmp? ( dev-libs/gmp:0= )
51 + mpi? ( virtual/mpi )
52 + zlib? ( sys-libs/zlib )"
53 +DEPEND="${RDEPEND}
54 + devref? ( dev-texlive/texlive-latex )
55 + doc? ( dev-texlive/texlive-latex )
56 + doxygen? ( app-doc/doxygen )"
57 +
58 +src_prepare() {
59 + default
60 + sed -i 's/LINKFLAGS = -s/LINKFLAGS =/' sources/Makefile.am || die
61 + eautoreconf
62 +}
63 +
64 +src_configure() {
65 + econf \
66 + --enable-scalar \
67 + --enable-largefile \
68 + --disable-debug \
69 + --disable-static-link \
70 + --with-api=posix \
71 + $(use_with gmp ) \
72 + $(use_enable mpi parform ) \
73 + $(use_enable threads threaded ) \
74 + $(use_with zlib ) \
75 + CC="$(tc-getCC)" \
76 + CXX="$(tc-getCXX)" \
77 + CFLAGS="${CFLAGS}" \
78 + LDFLAGS="${LDFLAGS}" \
79 + CXXFLAGS="${CXXFLAGS}"
80 +}
81 +
82 +src_compile() {
83 + default
84 + if use devref; then
85 + pushd doc/devref > /dev/null || die "doc/devref does not exist"
86 + LANG=C emake pdf
87 + popd > /dev/null
88 + fi
89 + if use doc; then
90 + pushd doc/manual > /dev/null || die "doc/manual does not exist"
91 + LANG=C emake pdf
92 + popd > /dev/null
93 + fi
94 + if use doxygen; then
95 + pushd doc/doxygen > /dev/null || die "doc/doxygen does not exist"
96 + emake html
97 + popd > /dev/null
98 + fi
99 +}
100 +
101 +src_install() {
102 + default
103 + if use devref; then
104 + insinto /usr/share/doc/${PF}
105 + doins doc/devref/devref.pdf
106 + fi
107 + if use doc; then
108 + insinto /usr/share/doc/${PF}
109 + doins doc/manual/manual.pdf
110 + fi
111 + if use doxygen; then
112 + dohtml -r doc/doxygen/html/*
113 + fi
114 +}
115
116 diff --git a/sci-mathematics/form/metadata.xml b/sci-mathematics/form/metadata.xml
117 index 046e2a6564f..e75e527199a 100644
118 --- a/sci-mathematics/form/metadata.xml
119 +++ b/sci-mathematics/form/metadata.xml
120 @@ -6,10 +6,13 @@
121 <name>Gentoo Mathematics Project</name>
122 </maintainer>
123 <longdescription lang="en">
124 -A system which can efficiently manipulate huge formulas limited only by available disk space.
125 -</longdescription>
126 + A system which can efficiently manipulate huge formulas limited only by available disk space.
127 + </longdescription>
128 <use>
129 <flag name="devref">Build and install developers reference</flag>
130 <flag name="doxygen">Build and install API documentation</flag>
131 </use>
132 + <upstream>
133 + <remote-id type="github">vermaseren/form</remote-id>
134 + </upstream>
135 </pkgmetadata>