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.7.ebuild ChangeLog fityk-0.9.4.ebuild
Date: Tue, 03 May 2011 05:12:34
Message-Id: 20110503051223.E4E7A20054@flycatcher.gentoo.org
1 bicatali 11/05/03 05:12:23
2
3 Modified: ChangeLog
4 Added: fityk-0.9.7.ebuild
5 Removed: fityk-0.9.4.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.1.9.46/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.16 sci-visualization/fityk/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/ChangeLog?rev=1.16&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/ChangeLog?rev=1.16&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/ChangeLog?r1=1.15&r2=1.16
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/fityk/ChangeLog,v
21 retrieving revision 1.15
22 retrieving revision 1.16
23 diff -u -r1.15 -r1.16
24 --- ChangeLog 1 Feb 2011 19:24:33 -0000 1.15
25 +++ ChangeLog 3 May 2011 05:12:23 -0000 1.16
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sci-visualization/fityk
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/fityk/ChangeLog,v 1.15 2011/02/01 19:24:33 bicatali Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/fityk/ChangeLog,v 1.16 2011/05/03 05:12:23 bicatali Exp $
31 +
32 +*fityk-0.9.7 (03 May 2011)
33 +
34 + 03 May 2011; Sébastien Fabbro <bicatali@g.o> -fityk-0.9.4.ebuild,
35 + +fityk-0.9.7.ebuild:
36 + Version bump
37
38 01 Feb 2011; Sébastien Fabbro <bicatali@g.o> fityk-0.9.6.ebuild:
39 Move up python_copy_source such that when lua is enable we do not install it
40
41
42
43 1.1 sci-visualization/fityk/fityk-0.9.7.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/fityk-0.9.7.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/fityk/fityk-0.9.7.ebuild?rev=1.1&content-type=text/plain
47
48 Index: fityk-0.9.7.ebuild
49 ===================================================================
50 # Copyright 1999-2011 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.7.ebuild,v 1.1 2011/05/03 05:12:23 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://fityk.nieto.pl/"
65 SRC_URI="http://cloud.github.com/downloads/wojdyr/${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.8
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 use python && python_copy_sources swig
113 default
114 if use python; then
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 }