Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/fityk/
Date: Sun, 29 Jan 2017 22:52:08
Message-Id: 1485730289.ec1edfa36d2a67e237782996580afce38f7c2a88.soap@gentoo
1 commit: ec1edfa36d2a67e237782996580afce38f7c2a88
2 Author: Gerhard Bräunlich <wippbox <AT> gmx <DOT> net>
3 AuthorDate: Sat Jan 28 23:34:52 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 22:51:29 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec1edfa3
7
8 sci-visualization/fityk: Version bump to 1.3.1, EAPI bump 5 -> 6
9
10 Package-Manager: portage-2.3.3
11 Closes: https://github.com/gentoo/gentoo/pull/3701
12
13 sci-visualization/fityk/Manifest | 1 +
14 sci-visualization/fityk/fityk-1.3.1.ebuild | 106 +++++++++++++++++++++++++++++
15 2 files changed, 107 insertions(+)
16
17 diff --git a/sci-visualization/fityk/Manifest b/sci-visualization/fityk/Manifest
18 index d7d4372..cd20521 100644
19 --- a/sci-visualization/fityk/Manifest
20 +++ b/sci-visualization/fityk/Manifest
21 @@ -1,2 +1,3 @@
22 DIST fityk-1.2.1.tar.bz2 1216009 SHA256 b98c88649b72fe7bf34507caf09008090bb13d0167cb1f9d0af6cba0fbb51ee0 SHA512 c81797c8609500ae21842d5d8a0557ded98453946826e6a9dde452af8789eb6ed393162eb3414946599762953e27c8849b827fbb9a53f80330fe244c3881a40c WHIRLPOOL bb76d394ce0a182a30ac1e6dceca67cf603b7789a480e0c5aa11b70e30837c19087e01843356fb778e1999e22d77544da0936c64056b32ad37e9ea34f45252cc
23 DIST fityk-1.2.9.tar.bz2 1370476 SHA256 615f30296e6e6ed0cad3dfe4fd139b552c25437d6afd371652de4bd12c1a89be SHA512 e6d4846a0690ea5e7b94fc067de48d67d6342ff595844d709af9f3b978bf4bd9d0095ce348716fd0053c5575b4bff5825f8f126a53bf7e11f4e6e8a2cc6ddb1a WHIRLPOOL 5f60429565d8a301bcec11be660df9c8cd69b03a94375de14215e74f56b8a878038bb0b9e81658ad5ac4fecd5ff7d127cb6ba992e19a98a21ad49941d42247a5
24 +DIST fityk-1.3.1.tar.bz2 1518937 SHA256 3d88feb96dbdca70fbfb5f8fa994cea01e77723751e5957094ca46a0c6d511fe SHA512 4a7a65691af8b8d5b47461133b7870ea21ea04ac2ee8ee5714a6b9bab2f072baa6b5d8bf011baba09c62a7ce2dc9d60f3040cc6fdb77dc498b6e03a24fc0fe08 WHIRLPOOL cbda2c70beae7ced2b132158fa815dd662500cf83235ea39e12ab31f99fac27af4be3e632f1dc768018fc19c9bc563d62e6a08fea9c4e56d37fc382b509b47a8
25
26 diff --git a/sci-visualization/fityk/fityk-1.3.1.ebuild b/sci-visualization/fityk/fityk-1.3.1.ebuild
27 new file mode 100644
28 index 00000000..3590f3a
29 --- /dev/null
30 +++ b/sci-visualization/fityk/fityk-1.3.1.ebuild
31 @@ -0,0 +1,106 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +WX_GTK_VER=3.0
39 +
40 +PYTHON_COMPAT=( python2_7 python{3_4,3_5} )
41 +
42 +inherit fdo-mime python-r1 wxwidgets
43 +
44 +DESCRIPTION="General-purpose nonlinear curve fitting and data analysis"
45 +HOMEPAGE="http://fityk.nieto.pl/"
46 +SRC_URI="https://github.com/wojdyr/${PN}/releases/download/v${PV}/${P}.tar.bz2"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
51 +IUSE="gnuplot nlopt python readline static-libs wxwidgets"
52 +
53 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
54 +
55 +CDEPEND="
56 + >=dev-lang/lua-5.1:0
57 + dev-libs/boost:=
58 + >=sci-libs/xylib-1
59 + nlopt? ( sci-libs/nlopt )
60 + python? ( ${PYTHON_DEPS} )
61 + readline? ( sys-libs/readline:0= )
62 + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )"
63 +DEPEND="${CDEPEND}
64 + dev-lang/swig"
65 +RDEPEND="${CDEPEND}
66 + gnuplot? ( sci-visualization/gnuplot )"
67 +
68 +pkg_setup() {
69 + use wxwidgets && setup-wxwidgets
70 +}
71 +
72 +src_prepare() {
73 + default
74 + use python && python_copy_sources
75 +}
76 +
77 +src_configure() {
78 + common_confargs=(
79 + --with-wx-config=wx-config-${WX_GTK_VER}
80 + )
81 +
82 + econf \
83 + "${common_confargs[@]}" \
84 + --disable-python \
85 + $(use_enable nlopt) \
86 + $(use_enable wxwidgets GUI) \
87 + $(use_with readline) \
88 + $(use_enable static-libs static)
89 +
90 + if use python; then
91 + python_configure() {
92 + econf \
93 + "${common_confargs[@]}" \
94 + --enable-python \
95 + --disable-nlopt \
96 + --disable-GUI \
97 + --without-readline
98 + }
99 + python_foreach_impl run_in_build_dir python_configure
100 + fi
101 +}
102 +
103 +src_compile() {
104 + default
105 +
106 + if use python; then
107 + python_compilation() {
108 + emake -C fityk swig/_fityk.la
109 + }
110 + python_foreach_impl run_in_build_dir python_compilation
111 + fi
112 +}
113 +
114 +src_install() {
115 + default
116 +
117 + if use python; then
118 + python_installation() {
119 + emake DESTDIR="${D}" -C fityk install-pyexecLTLIBRARIES
120 + rm "${D%/}"/$(python_get_sitedir)/*.la || die
121 + }
122 + python_foreach_impl run_in_build_dir python_installation
123 + fi
124 +
125 + # No .pc file / libfityk.a has dependencies -> need .la file
126 + if ! use static-libs; then
127 + find "${D}" -name '*.la' -delete || die
128 + fi
129 +}
130 +
131 +pkg_postinst() {
132 + fdo-mime_desktop_database_update
133 +}
134 +
135 +pkg_postrm() {
136 + fdo-mime_desktop_database_update
137 +}