Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/matplotlib: ChangeLog matplotlib-0.91.1.ebuild
Date: Fri, 07 Dec 2007 11:29:43
Message-Id: E1J0bOa-0002tp-Ui@stork.gentoo.org
1 bicatali 07/12/07 11:29:28
2
3 Modified: ChangeLog
4 Added: matplotlib-0.91.1.ebuild
5 Log:
6 Version bump, also adding a bunch of new use flags, restructuring the ebuild. Thanks for Darren Dale from upstream for his help. Closing bug #198360. Dropped ppc, waiting to keyword pyfltk.
7 (Portage version: 2.1.4_rc8)
8
9 Revision Changes Path
10 1.37 dev-python/matplotlib/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.37&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.37&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?r1=1.36&r2=1.37
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v
19 retrieving revision 1.36
20 retrieving revision 1.37
21 diff -u -r1.36 -r1.37
22 --- ChangeLog 23 Nov 2007 09:35:07 -0000 1.36
23 +++ ChangeLog 7 Dec 2007 11:29:28 -0000 1.37
24 @@ -1,6 +1,14 @@
25 # ChangeLog for dev-python/matplotlib
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.36 2007/11/23 09:35:07 hawking Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.37 2007/12/07 11:29:28 bicatali Exp $
29 +
30 +*matplotlib-0.91.1 (07 Dec 2007)
31 +
32 + 07 Dec 2007; Sébastien Fabbro <bicatali@g.o>
33 + +matplotlib-0.91.1.ebuild:
34 + Version bump, also adding a bunch of new use flags, restructuring the ebuild
35 + a bit. Thanks for Darren Dale from upstream for his help. Closing bug
36 + #198360. Dropped ppc, waiting to keyword pyfltk.
37
38 23 Nov 2007; Ali Polatel <hawking@g.o> matplotlib-0.90.1.ebuild:
39 switched dvi to latex, added virtual/latex-base and virtual/ghostscript to
40
41
42
43 1.1 dev-python/matplotlib/matplotlib-0.91.1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.91.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.91.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: matplotlib-0.91.1.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.91.1.ebuild,v 1.1 2007/12/07 11:29:28 bicatali Exp $
53
54 NEED_PYTHON=2.3
55
56 inherit distutils
57
58 DOC_PV=${PV}
59
60 DESCRIPTION="Pure python plotting library with matlab like syntax"
61 HOMEPAGE="http://matplotlib.sourceforge.net/"
62 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
63 doc? ( http://matplotlib.sourceforge.net/users_guide_${DOC_PV}.pdf )"
64
65 IUSE="cairo doc examples fltk gtk latex qt3 qt4 tk wxwindows"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 LICENSE="PYTHON BSD stix bakoma"
69
70 DEPEND="dev-python/numpy
71 >=media-libs/freetype-2
72 media-libs/libpng
73 dev-python/pytz
74 dev-python/python-dateutil
75 gtk? ( dev-python/pygtk )
76 wxwindows? ( dev-python/wxpython )"
77
78 RDEPEND="${DEPEND}
79 media-fonts/ttf-bitstream-vera
80 latex? ( virtual/latex-base
81 virtual/ghostscript
82 app-text/dvipng
83 app-text/poppler )
84 cairo? ( dev-python/pycairo )
85 fltk? ( dev-python/pyfltk )
86 qt3? ( dev-python/PyQt )
87 qt4? ( dev-python/PyQt4 )"
88
89 DOCS="INTERACTIVE API_CHANGES"
90
91 pkg_setup() {
92 use tk && distutils_python_tkinter
93 }
94
95 use_setup() {
96 local uword="${2}"
97 [ -z "${2}" ] && uword="${1}"
98 if use ${1}; then
99 echo "${uword} = True"
100 echo "${uword}agg = True"
101 else
102 echo "${uword} = False"
103 echo "${uword}agg = False"
104 fi
105 }
106
107 src_unpack() {
108 unpack ${A}
109 cd "${S}"
110
111 # create setup.cfg (see setup.cfg.template for any changes)
112 {
113 echo "[provide_packages]"
114 echo "pytz = False"
115 echo "dateutil = False"
116 echo "configobj = False"
117 echo "enthought.traits = False"
118 echo "[gui_support]"
119 use_setup gtk
120 use_setup tk
121 use_setup wxwindows wx
122 use_setup qt3 qt
123 use_setup qt4
124 use_setup fltk
125 use_setup cairo
126 } > setup.cfg
127
128 # sed to avoid checks needing a X display
129 sed -i \
130 -e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \
131 -e "s/check_for_tk()/$(use tk && echo True || echo False)/" \
132 setup.py || die "sed setup.py failed"
133
134 # respect FHS: put mpl-data in /usr/share/matplotlib
135 # and config files in /etc/matplotlib
136 sed -i \
137 -e "/'mpl-data\/matplotlibrc',/d" \
138 -e "/'mpl-data\/matplotlib.conf',/d" \
139 -e "s:'lib/matplotlib/mpl-data/matplotlibrc':'matplotlibrc':" \
140 -e "s:'lib/matplotlib/mpl-data/matplotlib.conf':'matplotlib.conf':" \
141 setup.py \
142 || die "sed setup.py for FHS failed"
143
144 sed -i \
145 -e "s:path = get_data_path():path = '/etc/matplotlib':" \
146 -e "s:os.path.dirname(__file__):'/usr/share/${PN}':g" \
147 lib/matplotlib/{__init__,config/cutils}.py \
148 || die "sed init for FHS failed"
149
150 # cleaning and remove vera fonts (they are now a dependency)
151 find -name .cvsignore -exec rm -rf {} \;
152 cd lib/matplotlib/mpl-data
153 rm -f ttf/Vera*.ttf ttf/*.TXT ttf/local.conf pdfcorefonts/readme.txt
154 }
155
156 src_install() {
157 distutils_src_install
158
159 # respect FHS
160 dodir /usr/share/${PN}
161 mv "${D}"/usr/*/*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib} "${D}"/usr/share/${PN}
162
163 insinto /etc/matplotlib
164 doins matplotlibrc matplotlib.conf \
165 || die "installing config files failed"
166
167 insinto /usr/share/doc/${PF}
168 use doc && doins "${DISTDIR}"/users_guide_${DOC_PV}.pdf
169 use examples && doins -r examples
170 }
171
172
173
174 --
175 gentoo-commits@g.o mailing list