1 |
commit: 84e724fb340c02ae318e047889a44fb7cd797317 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 16 20:16:37 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 16 20:16:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84e724fb |
7 |
|
8 |
sci-chemistry/moldy: Port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/742002 |
11 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
sci-chemistry/moldy/moldy-2.16e-r2.ebuild | 29 +++++++++++++++-------------- |
15 |
1 file changed, 15 insertions(+), 14 deletions(-) |
16 |
|
17 |
diff --git a/sci-chemistry/moldy/moldy-2.16e-r2.ebuild b/sci-chemistry/moldy/moldy-2.16e-r2.ebuild |
18 |
index 0d339986030..81b2d5bf314 100644 |
19 |
--- a/sci-chemistry/moldy/moldy-2.16e-r2.ebuild |
20 |
+++ b/sci-chemistry/moldy/moldy-2.16e-r2.ebuild |
21 |
@@ -1,9 +1,9 @@ |
22 |
-# Copyright 1999-2012 Gentoo Foundation |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
-EAPI=4 |
27 |
+EAPI=7 |
28 |
|
29 |
-inherit eutils toolchain-funcs |
30 |
+inherit toolchain-funcs |
31 |
|
32 |
DESCRIPTION="Molecular dynamics simulations platform" |
33 |
HOMEPAGE="http://www.ccp5.ac.uk/moldy/moldy.html" |
34 |
@@ -12,15 +12,16 @@ SRC_URI="ftp://ftp.earth.ox.ac.uk/pub/keith/${P}.tar.gz" |
35 |
LICENSE="GPL-2" |
36 |
SLOT="0" |
37 |
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
38 |
-IUSE="doc examples" |
39 |
+IUSE="doc" |
40 |
|
41 |
-DEPEND="doc? ( virtual/latex-base )" |
42 |
-RDEPEND="" |
43 |
+BDEPEND="doc? ( virtual/latex-base )" |
44 |
|
45 |
S="${WORKDIR}" |
46 |
|
47 |
+PATCHES=( "${FILESDIR}"/${PV}-as-needed.patch ) |
48 |
+ |
49 |
src_prepare() { |
50 |
- epatch "${FILESDIR}"/${PV}-as-needed.patch |
51 |
+ default |
52 |
sed \ |
53 |
-e 's:-O2::g' \ |
54 |
-e 's:-ffast-math::g' \ |
55 |
@@ -47,6 +48,7 @@ src_configure() { |
56 |
|
57 |
src_compile() { |
58 |
emake |
59 |
+ |
60 |
# To prevent sandbox violations by metafont |
61 |
if use doc; then |
62 |
VARTEXFONTS="${T}"/fonts emake moldy.pdf |
63 |
@@ -58,13 +60,12 @@ src_install() { |
64 |
emake prefix="${ED}"/usr install |
65 |
dodoc BENCHMARK READ.ME RELNOTES |
66 |
|
67 |
- if use examples; then |
68 |
- rm Makefile.in configure.in config.h.in |
69 |
- insinto /usr/share/${PN}/examples/ |
70 |
- doins *.in *.out control.* |
71 |
- fi |
72 |
+ rm Makefile.in configure.in config.h.in || die |
73 |
+ insinto /usr/share/${PN}/examples/ |
74 |
+ doins *.in *.out control.* |
75 |
+ |
76 |
if use doc; then |
77 |
- insinto /usr/share/doc/${PF}/pdf |
78 |
- newins moldy.pdf moldy-manual.pdf |
79 |
+ docinto pdf |
80 |
+ newdoc moldy.pdf moldy-manual.pdf |
81 |
fi |
82 |
} |