From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sci-visualization/fityk/Manifest | 2 + sci-visualization/fityk/fityk-1.2.1.ebuild | 90 +++++++++++++++++++++++++++++ sci-visualization/fityk/fityk-1.2.9.ebuild | 93 ++++++++++++++++++++++++++++++ sci-visualization/fityk/metadata.xml | 30 ++++++++++ 4 files changed, 215 insertions(+) create mode 100644 sci-visualization/fityk/Manifest create mode 100644 sci-visualization/fityk/fityk-1.2.1.ebuild create mode 100644 sci-visualization/fityk/fityk-1.2.9.ebuild create mode 100644 sci-visualization/fityk/metadata.xml (limited to 'sci-visualization/fityk') diff --git a/sci-visualization/fityk/Manifest b/sci-visualization/fityk/Manifest new file mode 100644 index 000000000000..d7d43724a981 --- /dev/null +++ b/sci-visualization/fityk/Manifest @@ -0,0 +1,2 @@ +DIST fityk-1.2.1.tar.bz2 1216009 SHA256 b98c88649b72fe7bf34507caf09008090bb13d0167cb1f9d0af6cba0fbb51ee0 SHA512 c81797c8609500ae21842d5d8a0557ded98453946826e6a9dde452af8789eb6ed393162eb3414946599762953e27c8849b827fbb9a53f80330fe244c3881a40c WHIRLPOOL bb76d394ce0a182a30ac1e6dceca67cf603b7789a480e0c5aa11b70e30837c19087e01843356fb778e1999e22d77544da0936c64056b32ad37e9ea34f45252cc +DIST fityk-1.2.9.tar.bz2 1370476 SHA256 615f30296e6e6ed0cad3dfe4fd139b552c25437d6afd371652de4bd12c1a89be SHA512 e6d4846a0690ea5e7b94fc067de48d67d6342ff595844d709af9f3b978bf4bd9d0095ce348716fd0053c5575b4bff5825f8f126a53bf7e11f4e6e8a2cc6ddb1a WHIRLPOOL 5f60429565d8a301bcec11be660df9c8cd69b03a94375de14215e74f56b8a878038bb0b9e81658ad5ac4fecd5ff7d127cb6ba992e19a98a21ad49941d42247a5 diff --git a/sci-visualization/fityk/fityk-1.2.1.ebuild b/sci-visualization/fityk/fityk-1.2.1.ebuild new file mode 100644 index 000000000000..c1a58ff1a24d --- /dev/null +++ b/sci-visualization/fityk/fityk-1.2.1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +WX_GTK_VER="2.9" +GITHUB_USER="wojdyr" +PYTHON_COMPAT=( python{2_7,3_3,3_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="http://github.com/downloads/${GITHUB_USER}/${PN}/${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:0= ) + wxwidgets? ( >=x11-libs/wxGTK-2.9.2:2.9 )" +DEPEND="${CDEPEND} + dev-libs/boost + dev-lang/swig" +RDEPEND="${CDEPEND} + gnuplot? ( sci-visualization/gnuplot )" + +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 + python_copy_sources + if use python; then + python_compilation() { + pushd "${BUILD_DIR}"/fityk + einfo "in ${PWD}" + emake swig/_fityk.la + popd + } + python_foreach_impl python_compilation + fi +} + +src_install() { + autotools-utils_src_install + if use python; then + python_installation() { + pushd "${BUILD_DIR}"/fityk + emake DESTDIR="${D}" install-pyexecLTLIBRARIES + popd + } + 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.2.9.ebuild b/sci-visualization/fityk/fityk-1.2.9.ebuild new file mode 100644 index 000000000000..3d33e7e75b49 --- /dev/null +++ b/sci-visualization/fityk/fityk-1.2.9.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +WX_GTK_VER="3.0" + +PYTHON_COMPAT=( python2_7 python3_{3,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/metadata.xml b/sci-visualization/fityk/metadata.xml new file mode 100644 index 000000000000..46f8f9cf5dfd --- /dev/null +++ b/sci-visualization/fityk/metadata.xml @@ -0,0 +1,30 @@ + + + + sci + + 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. + + + Enable optimization with sci-libs/nlopt + + + wojdyr/fityk + + -- cgit v1.2.3-65-gdbad