Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/fityk: fityk-0.9.4.ebuild ChangeLog fityk-0.9.2.ebuild
Date: Wed, 01 Dec 2010 23:17:53
Message-Id: 20101201231736.5823720054@flycatcher.gentoo.org
1 bicatali 10/12/01 23:17:36
2
3 Modified: ChangeLog
4 Added: fityk-0.9.4.ebuild
5 Removed: fityk-0.9.2.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.1.9.25/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.13 sci-visualization/fityk/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/ChangeLog?rev=1.13&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/ChangeLog?rev=1.13&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/ChangeLog?r1=1.12&r2=1.13
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/fityk/ChangeLog,v
21 retrieving revision 1.12
22 retrieving revision 1.13
23 diff -u -r1.12 -r1.13
24 --- ChangeLog 20 Jul 2010 16:01:18 -0000 1.12
25 +++ ChangeLog 1 Dec 2010 23:17:36 -0000 1.13
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sci-visualization/fityk
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/fityk/ChangeLog,v 1.12 2010/07/20 16:01:18 bicatali Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/fityk/ChangeLog,v 1.13 2010/12/01 23:17:36 bicatali Exp $
31 +
32 +*fityk-0.9.4 (01 Dec 2010)
33 +
34 + 01 Dec 2010; Sébastien Fabbro <bicatali@g.o> -fityk-0.9.2.ebuild,
35 + +fityk-0.9.4.ebuild:
36 + Version bump
37
38 *fityk-0.9.3 (20 Jul 2010)
39
40
41
42
43 1.1 sci-visualization/fityk/fityk-0.9.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/fityk-0.9.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/fityk-0.9.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: fityk-0.9.4.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/fityk/fityk-0.9.4.ebuild,v 1.1 2010/12/01 23:17:36 bicatali Exp $
53
54 EAPI="3"
55
56 WX_GTK_VER="2.8"
57
58 PYTHON_DEPEND="python? 2"
59 SUPPORT_PYTHON_ABIS="1"
60
61 inherit python wxwidgets
62
63 DESCRIPTION="General-purpose nonlinear curve fitting and data analysis"
64 HOMEPAGE="http://www.unipress.waw.pl/fityk/"
65 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="doc examples gnuplot lua readline python static-libs wxwidgets"
71
72 CDEPEND=">=sci-libs/xylib-0.6
73 lua? ( dev-lang/lua )
74 readline? ( sys-libs/readline )
75 wxwidgets? ( x11-libs/wxGTK:2.8 )"
76
77 DEPEND="${CDEPEND}
78 dev-libs/boost
79 >=sys-devel/libtool-2.2"
80
81 RDEPEND="${CDEPEND}
82 gnuplot? ( sci-visualization/gnuplot )"
83
84 RESTRICT_PYTHON_ABIS="3.*"
85
86 src_prepare() {
87 has_version "<dev-libs/boost-1.37" && \
88 sed -i -e 's:impl/directives.hpp:directives.ipp:g' \
89 "${S}/src/optional_suffix.h"
90
91 sed '/^LTLIBRARIES/s:$(pyexec_LTLIBRARIES)::g' \
92 -i swig/Makefile.in
93 if use python; then
94 echo '#!/bin/sh' > config/py-compile
95 fi
96 }
97
98 src_configure() {
99 econf \
100 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
101 --disable-xyconvert \
102 $(use_enable lua) \
103 $(use_enable python) \
104 $(use_enable static-libs static) \
105 $(use_enable wxwidgets GUI) \
106 $(use_with doc) \
107 $(use_with examples samples) \
108 $(use_with readline)
109 }
110
111 src_compile() {
112 default
113 if use python; then
114 python_copy_sources swig
115 compilation() {
116 emake \
117 PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
118 PYTHON_LDFLAGS="$(python_get_library -l)" \
119 PYTHON_SITE_PKG="$(python_get_sitedir)" \
120 PYTHON_VERSION="$(python_get_version)" \
121 pyexecdir="$(python_get_sitedir)" \
122 _fityk.la
123 }
124 python_execute_function -s --source-dir swig compilation
125 fi
126 }
127
128 src_install() {
129 emake DESTDIR="${D}" install || die "emake install failed"
130
131 if use python; then
132 installation() {
133 emake \
134 DESTDIR="${D}" \
135 pyexecdir="$(python_get_sitedir)" \
136 pythondir="$(python_get_sitedir)" \
137 install
138 }
139 python_execute_function -s --source-dir swig installation
140 python_clean_installation_image
141 fi
142 dodoc NEWS README TODO
143 }
144
145 pkg_postinst() {
146 use python && python_mod_optimize ${PN}.py
147 }
148
149 pkg_postrm() {
150 use python && python_mod_cleanup ${PN}.py
151 }