diff options
author | David Seifert <soap@gentoo.org> | 2020-10-03 22:56:54 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-10-03 22:56:54 +0200 |
commit | 81f04b4256e50a07739175703d4fdf673e4d8504 (patch) | |
tree | 447173ab8892c941128eb0b7ae84ded1784e96d0 /sci-visualization | |
parent | sci-libs/xylib: Remove old 1.2 (diff) | |
download | gentoo-81f04b4256e50a07739175703d4fdf673e4d8504.tar.gz gentoo-81f04b4256e50a07739175703d4fdf673e4d8504.tar.bz2 gentoo-81f04b4256e50a07739175703d4fdf673e4d8504.zip |
sci-visualization/fityk: Port to EAPI 7
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/fityk/fityk-1.3.1.ebuild | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/sci-visualization/fityk/fityk-1.3.1.ebuild b/sci-visualization/fityk/fityk-1.3.1.ebuild index 3900bebeeb70..9a0049bb5d62 100644 --- a/sci-visualization/fityk/fityk-1.3.1.ebuild +++ b/sci-visualization/fityk/fityk-1.3.1.ebuild @@ -1,11 +1,11 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 WX_GTK_VER=3.0 -inherit fdo-mime wxwidgets +inherit wxwidgets xdg DESCRIPTION="General-purpose nonlinear curve fitting and data analysis" HOMEPAGE="http://fityk.nieto.pl/" @@ -14,51 +14,34 @@ SRC_URI="https://github.com/wojdyr/${PN}/releases/download/v${PV}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="gnuplot nlopt readline static-libs wxwidgets" +IUSE="gnuplot nlopt readline wxwidgets" -CDEPEND=" +DEPEND=" >=dev-lang/lua-5.1:0 dev-libs/boost:= >=sci-libs/xylib-1 nlopt? ( sci-libs/nlopt ) readline? ( sys-libs/readline:0= ) wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )" -DEPEND="${CDEPEND} - dev-lang/swig" -RDEPEND="${CDEPEND} +RDEPEND="${DEPEND} gnuplot? ( sci-visualization/gnuplot )" - -pkg_setup() { - use wxwidgets && setup-wxwidgets -} +BDEPEND="dev-lang/swig" src_configure() { - common_confargs=( - --with-wx-config=wx-config-${WX_GTK_VER} - ) + use wxwidgets && setup-wxwidgets econf \ - "${common_confargs[@]}" \ --disable-python \ + --disable-static \ $(use_enable nlopt) \ $(use_enable wxwidgets GUI) \ $(use_with readline) \ - $(use_enable static-libs static) + --with-wx-config="${WX_CONFIG}" } src_install() { default - # No .pc file / libfityk.a has dependencies -> need .la file - if ! use static-libs; then - find "${D}" -name '*.la' -delete || die - fi -} - -pkg_postinst() { - fdo-mime_desktop_database_update -} - -pkg_postrm() { - fdo-mime_desktop_database_update + # no static archives + find "${ED}" -name '*.la' -delete || die } |