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/geomview/
Date: Sat, 03 Oct 2020 20:57:21
Message-Id: 1601758619.2545f7f471daa791d070435f466b01591ca4f6ee.soap@gentoo
1 commit: 2545f7f471daa791d070435f466b01591ca4f6ee
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 3 20:56:59 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 3 20:56:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2545f7f4
7
8 sci-mathematics/geomview: Port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/741578
11 Package-Manager: Portage-3.0.8, Repoman-3.0.1
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 sci-mathematics/geomview/geomview-1.9.5-r1.ebuild | 29 ++++++++++++++---------
15 1 file changed, 18 insertions(+), 11 deletions(-)
16
17 diff --git a/sci-mathematics/geomview/geomview-1.9.5-r1.ebuild b/sci-mathematics/geomview/geomview-1.9.5-r1.ebuild
18 index 0ffb2d155b8..6d077450ffb 100644
19 --- a/sci-mathematics/geomview/geomview-1.9.5-r1.ebuild
20 +++ b/sci-mathematics/geomview/geomview-1.9.5-r1.ebuild
21 @@ -1,22 +1,25 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 +# Copyright 1999-2020 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 -EAPI=6
27 +EAPI=7
28
29 -inherit elisp-common eutils fdo-mime flag-o-matic
30 +inherit desktop elisp-common flag-o-matic xdg
31
32 DESCRIPTION="Interactive Geometry Viewer"
33 HOMEPAGE="http://geomview.sourceforge.net"
34 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
35 +SRC_URI="
36 + mirror://sourceforge/${PN}/${P}.tar.bz2
37 https://dev.gentoo.org/~jlec/distfiles/geomview.png.tar"
38 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
39 +
40 LICENSE="LGPL-2.1"
41 SLOT="0"
42 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
43 IUSE="motionaveraging debug emacs zlib"
44
45 -DEPEND="x11-libs/motif:0
46 +DEPEND="
47 virtual/glu
48 virtual/opengl
49 + x11-libs/motif:0
50 emacs? ( >=app-editors/emacs-23.1:* )
51 zlib? ( sys-libs/zlib )"
52 RDEPEND="${DEPEND}
53 @@ -25,10 +28,11 @@ RDEPEND="${DEPEND}
54 S="${WORKDIR}/${P/_/-}"
55
56 SITEFILE="50${PN}-gentoo.el"
57 -PATCHES=( "${FILESDIR}/${PN}-1.9.5-zlib.patch" )
58 +PATCHES=( "${FILESDIR}"/${PN}-1.9.5-zlib.patch )
59
60 src_configure() {
61 econf \
62 + --disable-static \
63 --with-htmlbrowser=xdg-open \
64 --with-pdfviewer=xdg-open \
65 $(use_enable debug d1debug) \
66 @@ -40,7 +44,7 @@ src_compile() {
67 default
68
69 if use emacs; then
70 - cp "${FILESDIR}/gvcl-mode.el" . || die
71 + cp "${FILESDIR}"/gvcl-mode.el . || die
72 elisp-compile *.el
73 fi
74 }
75 @@ -55,16 +59,19 @@ src_install() {
76
77 if use emacs; then
78 elisp-install ${PN} *.el *.elc
79 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
80 + elisp-site-file-install "${FILESDIR}"/${SITEFILE}
81 fi
82 +
83 + # no static archives
84 + find "${ED}" -name '*.la' -delete || die
85 }
86
87 pkg_postinst() {
88 - fdo-mime_desktop_database_update
89 + xdg_pkg_postinst
90 use emacs && elisp-site-regen
91 }
92
93 pkg_postrm() {
94 - fdo-mime_desktop_database_update
95 + xdg_pkg_postrm
96 use emacs && elisp-site-regen
97 }