summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-11-29 15:24:02 +0100
committerMarek Szuba <marecki@gentoo.org>2020-11-29 16:10:43 +0100
commitd216c3cff2e2d6eea14b9f2f8061946fe575445f (patch)
treebf4b0bcf016f1d1f03b8f818720b5c5b3135d8ac
parentapp-misc/ckb: remove old versions (diff)
downloadgentoo-d216c3cff2e.tar.gz
gentoo-d216c3cff2e.tar.bz2
gentoo-d216c3cff2e.zip
sci-visualization/fityk: migrate to lua-single.eclass
Builds and tests fine against all three Lua versions upstream Autoconf script accepts. Closes: https://bugs.gentoo.org/752852 Signed-off-by: Marek Szuba <marecki@gentoo.org>
-rw-r--r--profiles/package.mask1
-rw-r--r--sci-visualization/fityk/fityk-1.3.1-r100.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/profiles/package.mask b/profiles/package.mask
index 2a997cd3adb5..c5d108797df0 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -559,6 +559,7 @@ dev-lua/luacrypto
>=net-im/swift-4.0.2-r100
>=net-p2p/eiskaltdcpp-2.2.10-r100
>=sci-visualization/gnuplot-5.4.0-r100
+>=sci-visualization/fityk-1.3.1-r100
>=www-apache/mod_security-2.9.3-r100
>=www-client/elinks-0.13.5-r100
>=www-servers/lighttpd-1.4.55-r100
diff --git a/sci-visualization/fityk/fityk-1.3.1-r100.ebuild b/sci-visualization/fityk/fityk-1.3.1-r100.ebuild
new file mode 100644
index 000000000000..fd3cd4903399
--- /dev/null
+++ b/sci-visualization/fityk/fityk-1.3.1-r100.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..3} )
+WX_GTK_VER=3.0
+
+inherit lua-single wxwidgets xdg
+
+DESCRIPTION="General-purpose nonlinear curve fitting and data analysis"
+HOMEPAGE="http://fityk.nieto.pl/"
+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 wxwidgets"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+DEPEND="
+ ${LUA_DEPS}
+ dev-libs/boost:=
+ >=sci-libs/xylib-1
+ nlopt? ( sci-libs/nlopt )
+ readline? ( sys-libs/readline:0= )
+ wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )"
+RDEPEND="${DEPEND}
+ gnuplot? ( sci-visualization/gnuplot )"
+BDEPEND="dev-lang/swig"
+
+src_configure() {
+ use wxwidgets && setup-wxwidgets
+
+ econf \
+ --disable-python \
+ --disable-static \
+ $(use_enable nlopt) \
+ $(use_enable wxwidgets GUI) \
+ $(use_with readline) \
+ --with-wx-config="${WX_CONFIG}"
+}
+
+src_install() {
+ default
+
+ # no static archives
+ find "${ED}" -name '*.la' -delete || die
+}