summaryrefslogtreecommitdiff
path: root/sci-visualization/fityk
diff options
context:
space:
mode:
Diffstat (limited to 'sci-visualization/fityk')
-rw-r--r--sci-visualization/fityk/Manifest7
-rw-r--r--sci-visualization/fityk/fityk-1.2.9.ebuild92
-rw-r--r--sci-visualization/fityk/fityk-1.3.1.ebuild105
-rw-r--r--sci-visualization/fityk/metadata.xml33
4 files changed, 237 insertions, 0 deletions
diff --git a/sci-visualization/fityk/Manifest b/sci-visualization/fityk/Manifest
new file mode 100644
index 000000000000..f47d3ed0b02f
--- /dev/null
+++ b/sci-visualization/fityk/Manifest
@@ -0,0 +1,7 @@
+DIST fityk-1.2.9.tar.bz2 1370476 SHA256 615f30296e6e6ed0cad3dfe4fd139b552c25437d6afd371652de4bd12c1a89be SHA512 e6d4846a0690ea5e7b94fc067de48d67d6342ff595844d709af9f3b978bf4bd9d0095ce348716fd0053c5575b4bff5825f8f126a53bf7e11f4e6e8a2cc6ddb1a WHIRLPOOL 5f60429565d8a301bcec11be660df9c8cd69b03a94375de14215e74f56b8a878038bb0b9e81658ad5ac4fecd5ff7d127cb6ba992e19a98a21ad49941d42247a5
+DIST fityk-1.3.1.tar.bz2 1518937 SHA256 3d88feb96dbdca70fbfb5f8fa994cea01e77723751e5957094ca46a0c6d511fe SHA512 4a7a65691af8b8d5b47461133b7870ea21ea04ac2ee8ee5714a6b9bab2f072baa6b5d8bf011baba09c62a7ce2dc9d60f3040cc6fdb77dc498b6e03a24fc0fe08 WHIRLPOOL cbda2c70beae7ced2b132158fa815dd662500cf83235ea39e12ab31f99fac27af4be3e632f1dc768018fc19c9bc563d62e6a08fea9c4e56d37fc382b509b47a8
+EBUILD fityk-1.2.9.ebuild 2012 SHA256 72149845bd45b7ecc4405a8e35a8fe70120d89d7e3215c92573e5afef07c9658 SHA512 cf27943281c5c4e5c6bd09b7c5751383a5e1f3e977d056bfe74dc434f976c485307bbd460a86406cc28a58ff4cde7ed761ef1c0a3513ca03fb713674d2586669 WHIRLPOOL fbfd38e463673fc41f0f594a7931aba9a8369dc6dc70042785e8015effc502c975d6117576cdee724d3b05461747ee3930d84fe743a71135f1458456ae8beab7
+EBUILD fityk-1.3.1.ebuild 2168 SHA256 67f72b9bbed8f12d90ab688335f035c21f3200bd40eb0dcd368f29b72d7c9ac0 SHA512 64ac23c3ca367578585d55c1dcdb04826a54507a786fb1731f8680242cf92e30eacc6e5b334902cca831ee14ecb8afc73de338576cb80d6c58ab49950a70f7a3 WHIRLPOOL 38df517fa1178de5fad30efb81612a0f55a2e269d36e16ce88d02090a29a8df3a88a1914e10fab1459c1e72a6b6f4f240f70a2ddd950c8fcafc138572fba3f33
+MISC ChangeLog 2767 SHA256 d6bd32e85ed0289ef06b068e47d2363afb212b1f0fb99ac8c11159eb1ddfdc26 SHA512 1bf7a953cc5d7cc87413652aef097324d69b2d9473c6e050b96736723dd9145772c05bc520fdaed6f0c88f1359d581537c6ed1ac9e86418b7f26699615f0ea0f WHIRLPOOL 178d86e2859aff6d0bfea90357ca75d725f0f697beb6efbac3c47cf390eac651d2c4e4b124721c51f389b4726e7f2dd48849a9223980b21f5df805acd0d74a51
+MISC ChangeLog-2015 4483 SHA256 8571923fe195bc83c858dbdf1db010c7420d7940950e3cf2c4e608fbda67084c SHA512 62647bc888c79a2ab986cfd560548c1dfc8b4af8bc27b0ea92c8e76676df0201c90e3db0caccccf16cf880109a9a367c7c9e4594c934d6f7f356e1b39b96ff48 WHIRLPOOL 317ba37cc89d32c43bdce719cfd1567f7cb66e7b81cd8a831af7cfdff9fd679d93d4d4f3264bfc9b893b322a6902c38b81a91e0e2526321300923fe6687dfded
+MISC metadata.xml 1378 SHA256 998a719ad617caa45bf35d4394901e4ab2b06a29d91867b23c76bea7926293d1 SHA512 38e516a5e0ec249d3ed4e54d4780830e1b53994e9dc1999c664b2f37aac0247df780522e7b25c124ffb0d9766d1292871ec0f9a238c2b3aa9994cef3581befe6 WHIRLPOOL 1a7272d2d8dc7f4ebd6745a27fd08e235906a54c99c49fe9f0b128640165a67e810b96ca2ef6c39134f5a8cb6f8d2a025dca3fa115e55fce4a8addccf33e80cb
diff --git a/sci-visualization/fityk/fityk-1.2.9.ebuild b/sci-visualization/fityk/fityk-1.2.9.ebuild
new file mode 100644
index 000000000000..b1fc0d146d49
--- /dev/null
+++ b/sci-visualization/fityk/fityk-1.2.9.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+
+PYTHON_COMPAT=( python2_7 python3_4 )
+
+inherit autotools-utils fdo-mime python-r1 wxwidgets
+
+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 python static-libs wxwidgets"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+CDEPEND="
+ >=sci-libs/xylib-1
+ >=dev-lang/lua-5.1:0
+ nlopt? ( sci-libs/nlopt )
+ python? ( ${PYTHON_DEPS} )
+ readline? ( sys-libs/readline:* )
+ wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )"
+DEPEND="${CDEPEND}
+ dev-libs/boost
+ dev-lang/swig"
+RDEPEND="${CDEPEND}
+ gnuplot? ( sci-visualization/gnuplot )"
+
+src_prepare() {
+ use python && python_copy_sources
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --docdir="${EPREFIX}/usr/share/doc/${PF}"
+ --disable-xyconvert
+ --disable-python
+ $(use_enable nlopt)
+ $(use_enable wxwidgets GUI)
+ $(use_with readline)
+ )
+ autotools-utils_src_configure
+ if use python; then
+ myeconfargs=(
+ --disable-xyconvert
+ --enable-python
+ --disable-nlopt
+ --disable-GUI
+ --without-readline )
+ python_foreach_impl autotools-utils_src_configure
+ fi
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ if use python; then
+ python_compilation() {
+ cd "${BUILD_DIR}"/fityk || die
+ einfo "in ${PWD}"
+ emake swig/_fityk.la
+ }
+ python_foreach_impl python_compilation
+ fi
+}
+
+src_install() {
+ autotools-utils_src_install
+ if use python; then
+ python_installation() {
+ cd "${BUILD_DIR}"/fityk || die
+ emake DESTDIR="${D}" install-pyexecLTLIBRARIES
+ rm "${D}"/$(python_get_sitedir)/*.la || die
+ }
+ python_foreach_impl python_installation
+ fi
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/sci-visualization/fityk/fityk-1.3.1.ebuild b/sci-visualization/fityk/fityk-1.3.1.ebuild
new file mode 100644
index 000000000000..309321d1e376
--- /dev/null
+++ b/sci-visualization/fityk/fityk-1.3.1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WX_GTK_VER=3.0
+
+PYTHON_COMPAT=( python2_7 python{3_4,3_5} )
+
+inherit fdo-mime python-r1 wxwidgets
+
+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 python readline static-libs wxwidgets"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+CDEPEND="
+ >=dev-lang/lua-5.1:0
+ dev-libs/boost:=
+ >=sci-libs/xylib-1
+ nlopt? ( sci-libs/nlopt )
+ python? ( ${PYTHON_DEPS} )
+ readline? ( sys-libs/readline:0= )
+ wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )"
+DEPEND="${CDEPEND}
+ dev-lang/swig"
+RDEPEND="${CDEPEND}
+ gnuplot? ( sci-visualization/gnuplot )"
+
+pkg_setup() {
+ use wxwidgets && setup-wxwidgets
+}
+
+src_prepare() {
+ default
+ use python && python_copy_sources
+}
+
+src_configure() {
+ common_confargs=(
+ --with-wx-config=wx-config-${WX_GTK_VER}
+ )
+
+ econf \
+ "${common_confargs[@]}" \
+ --disable-python \
+ $(use_enable nlopt) \
+ $(use_enable wxwidgets GUI) \
+ $(use_with readline) \
+ $(use_enable static-libs static)
+
+ if use python; then
+ python_configure() {
+ econf \
+ "${common_confargs[@]}" \
+ --enable-python \
+ --disable-nlopt \
+ --disable-GUI \
+ --without-readline
+ }
+ python_foreach_impl run_in_build_dir python_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ if use python; then
+ python_compilation() {
+ emake -C fityk swig/_fityk.la
+ }
+ python_foreach_impl run_in_build_dir python_compilation
+ fi
+}
+
+src_install() {
+ default
+
+ if use python; then
+ python_installation() {
+ emake DESTDIR="${D}" -C fityk install-pyexecLTLIBRARIES
+ rm "${D%/}"/$(python_get_sitedir)/*.la || die
+ }
+ python_foreach_impl run_in_build_dir python_installation
+ fi
+
+ # 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
+}
diff --git a/sci-visualization/fityk/metadata.xml b/sci-visualization/fityk/metadata.xml
new file mode 100644
index 000000000000..94ca66ce2fab
--- /dev/null
+++ b/sci-visualization/fityk/metadata.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Fityk is a program for nonlinear fitting of analytical functions
+ (especially peak-shaped) to data. It can also be used to display
+ data or to remove baseline from data.
+
+ It is reported to be used in crystallography, chromatography,
+ photoluminescence, infrared and Raman spectroscopy and other fields.
+
+ Fityk knows about common peak-shaped functions (Gaussian, Lorentzian,
+ Voigt, Pearson VII, bifurcated Gaussian, EMG, Doniach-Sunjic, etc.) and
+ polynomials. It also supports user-defined functions.
+
+ Fityk offers a graphical interface (and also command line
+ interface), various optimization methods (standard Marquardt
+ least-squares algorithm, Genetic Algorithms, Nelder-Mead simplex),
+ equality constraints, modeling error of x coordinate of points
+ (eg. zero-shift of instrument), handling series of datasets,
+ automation of common tasks with scripts, and more.
+</longdescription>
+ <use>
+ <flag name="nlopt">Enable optimization with <pkg>sci-libs/nlopt</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">wojdyr/fityk</remote-id>
+ </upstream>
+</pkgmetadata>