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-chemistry/ghemical/
Date: Sun, 23 Jun 2019 13:11:10
Message-Id: 1561295442.e6ab14d4a9ed77993f1934a7b4aff74ae393ef79.soap@gentoo
1 commit: e6ab14d4a9ed77993f1934a7b4aff74ae393ef79
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 23 13:10:42 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 23 13:10:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6ab14d4
7
8 sci-chemistry/ghemical: Port to EAPI 7
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.15
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sci-chemistry/ghemical/ghemical-3.0.0.ebuild | 23 ++++++++++-------------
14 1 file changed, 10 insertions(+), 13 deletions(-)
15
16 diff --git a/sci-chemistry/ghemical/ghemical-3.0.0.ebuild b/sci-chemistry/ghemical/ghemical-3.0.0.ebuild
17 index 5704b7df145..4186af7e725 100644
18 --- a/sci-chemistry/ghemical/ghemical-3.0.0.ebuild
19 +++ b/sci-chemistry/ghemical/ghemical-3.0.0.ebuild
20 @@ -1,7 +1,7 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 +# Copyright 1999-2019 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 +EAPI=7
27
28 inherit autotools desktop
29
30 @@ -18,12 +18,12 @@ RDEPEND="
31 dev-libs/glib:2
32 gnome-base/libglade:2.0
33 sci-chemistry/mpqc
34 - >=sci-libs/libghemical-3.0.0
35 - >=x11-libs/liboglappth-1.0.0
36 + >=sci-libs/libghemical-3.0.0:=
37 + >=x11-libs/liboglappth-1.0.0:=
38 virtual/opengl
39 - x11-libs/pango
40 + x11-libs/pango:0=
41 x11-libs/gtk+:2
42 - x11-libs/gtkglext
43 + x11-libs/gtkglext:0=
44 openbabel? ( sci-chemistry/openbabel )"
45 DEPEND="${RDEPEND}
46 virtual/pkgconfig"
47 @@ -39,11 +39,8 @@ src_configure() {
48 # With amd64, if you want gamess I recommend adding gamess and gtk-gamess to package.provided for now.
49
50 # Change the built-in help browser.
51 - if use seamonkey ; then
52 - sed -i -e 's|mozilla|seamonkey|g' src/gtk_app.cpp || die "sed failed for seamonkey!"
53 - else
54 - sed -i -e 's|mozilla|firefox|g' src/gtk_app.cpp || die "sed failed for firefox!"
55 - fi
56 + sed -e "s|mozilla|$(usex seamonkey seamonkey firefox)|g" \
57 + -i src/gtk_app.cpp || die "sed failed for $(usex seamonkey seamonkey firefox)!"
58
59 econf \
60 $(use_enable openbabel) \
61 @@ -51,6 +48,6 @@ src_configure() {
62 }
63
64 src_install() {
65 - emake DESTDIR="${D}" install
66 - make_desktop_entry /usr/bin/ghemical Ghemical /usr/share/ghemical/${PV}/pixmaps/ghemical.png
67 + default
68 + make_desktop_entry ghemical Ghemical /usr/share/ghemical/${PV}/pixmaps/ghemical.png
69 }