commit:     80876076e9f1b2a24224ebb8c23cc8e12d59ce42
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Mon Jan 18 09:20:07 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Jan 18 09:20:07 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=80876076

sci-libs/lwpr: fix homepage, EAPI bump

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 sci-libs/lwpr/lwpr-1.2.5.ebuild | 41 +++++++++++++++++++----------------------
 1 file changed, 19 insertions(+), 22 deletions(-)

diff --git a/sci-libs/lwpr/lwpr-1.2.5.ebuild b/sci-libs/lwpr/lwpr-1.2.5.ebuild
index 9ae5de227..e9ec9f214 100644
--- a/sci-libs/lwpr/lwpr-1.2.5.ebuild
+++ b/sci-libs/lwpr/lwpr-1.2.5.ebuild
@@ -1,44 +1,41 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-AUTOTOOLS_IN_SOURCE_BUILD=1
-inherit autotools-utils
+DOCS_BUILDER="doxygen"
+
+inherit autotools docs
 
 DESCRIPTION="The Locally Weighted Projection Regression Library"
-HOMEPAGE="http://www.ipab.inf.ed.ac.uk/slmc/software/lwpr/";
+HOMEPAGE="https://web.inf.ed.ac.uk/slmc";
 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples octave static-libs"
+IUSE="examples octave static-libs"
 
-RDEPEND="
-       octave? ( >=sci-mathematics/octave-3 )"
-DEPEND="${RDEPEND}
-       doc? ( app-doc/doxygen )"
+RDEPEND="octave? ( >=sci-mathematics/octave-3 )"
+DEPEND="${RDEPEND}"
 
 src_configure() {
-       local myeconfargs=(
-               --enable-threads=3
-               $(use_with octave octave "$(octave-config -p PREFIX)")
-       )
-       autotools-utils_src_configure
+       econf \
+               --enable-threads=3 \
+               $(use_with octave octave)
 }
 
 src_compile() {
-       autotools-utils_src_compile
-       if use doc; then
-               doxygen Doxyfile || die "doxygen failed"
-       fi
+       default
+       docs_compile
 }
 
 src_install() {
-       autotools-utils_src_install \
-                mexflags="-DMATLAB -I../include -L./.libs -llwproctave"
-       use doc && dodoc doc/lwpr_doc.pdf && dohtml html/*
+       default
+       if use doc; then
+       dodoc doc/lwpr_doc.pdf
+       dodoc html/*
+       fi
        if use examples ; then
                insinto /usr/share/doc/${PF}/examples
                doins example_c/cross.c example_cpp/cross.cc

Reply via email to