commit:     b198e634ab4d1be829cedb573726025913bb328a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 27 23:39:41 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 28 01:13:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b198e634

sci-visualization/quickplot: port to EAPI 7, drop .la, drop static-libs

* Port to EAPI 7
* Drop autotools-utils, eutils
* Drop .la
* Drop static-libs

Revbumping to ensure we catch any issues through reports, but
shouldn't be strictly necessary.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...ot-0.10.6.ebuild => quickplot-0.10.6-r1.ebuild} | 27 +++++++++++-----------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/sci-visualization/quickplot/quickplot-0.10.6.ebuild 
b/sci-visualization/quickplot/quickplot-0.10.6-r1.ebuild
similarity index 69%
rename from sci-visualization/quickplot/quickplot-0.10.6.ebuild
rename to sci-visualization/quickplot/quickplot-0.10.6-r1.ebuild
index b3e060eccce..0fb21de2d5b 100644
--- a/sci-visualization/quickplot/quickplot-0.10.6.ebuild
+++ b/sci-visualization/quickplot/quickplot-0.10.6-r1.ebuild
@@ -1,11 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-AUTOTOOLS_AUTORECONF=true
-
-inherit autotools-utils eutils
+inherit autotools desktop
 
 DESCRIPTION="A fast interactive 2D plotter"
 HOMEPAGE="http://quickplot.sourceforge.net/";
@@ -20,23 +18,26 @@ RDEPEND="
        media-libs/libsndfile
        >=sys-libs/readline-0.6.2:0=
        x11-libs/gtk+:3"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
 src_prepare() {
+       default
+
        sed '/libquickplot_la_LIBADD/s:$: -lm:g' -i Makefile.am || die
-       autotools-utils_src_prepare
+
+       eautoreconf
 }
 
 src_configure() {
-       local myeconfargs=(
-               --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
-       )
-       autotools-utils_src_configure
+       econf --disable-static
 }
 
 src_install() {
-       autotools-utils_src_install
+       default
+
+       find "${ED}" -name '*.la' -delete || die
+
        make_desktop_entry 'quickplot --no-pipe' Quickplot quickplot Graphics
        mv "${ED}"/usr/share/applications/quickplot*.desktop \
                "${ED}"/usr/share/applications/quickplot.desktop || die

Reply via email to