* [gentoo-commits] gentoo-x86 commit in dev-python/matplotlib: ChangeLog matplotlib-0.98.5.3.ebuild matplotlib-0.98.5.2-r2.ebuild matplotlib-0.98.5.2-r3.ebuild
@ 2009-06-15 5:32 Sebastien Fabbro (bicatali)
0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro (bicatali) @ 2009-06-15 5:32 UTC (permalink / raw
To: gentoo-commits
bicatali 09/06/15 05:32:10
Modified: ChangeLog
Added: matplotlib-0.98.5.3.ebuild
Removed: matplotlib-0.98.5.2-r2.ebuild
matplotlib-0.98.5.2-r3.ebuild
Log:
Version bumps with fixes for bug #266612 and bug #272147
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Revision Changes Path
1.66 dev-python/matplotlib/ChangeLog
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.66&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.66&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?r1=1.65&r2=1.66
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- ChangeLog 30 May 2009 09:07:05 -0000 1.65
+++ ChangeLog 15 Jun 2009 05:32:10 -0000 1.66
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/matplotlib
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.65 2009/05/30 09:07:05 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.66 2009/06/15 05:32:10 bicatali Exp $
+
+*matplotlib-0.98.5.3 (15 Jun 2009)
+
+ 15 Jun 2009; Sébastien Fabbro <bicatali@gentoo.org>
+ -matplotlib-0.98.5.2.ebuild, -matplotlib-0.98.5.2-r2.ebuild,
+ -matplotlib-0.98.5.2-r3.ebuild, +matplotlib-0.98.5.3.ebuild:
+ Version bumps with fixes for bug #266612 and bug #272147
30 May 2009; Ulrich Mueller <ulm@gentoo.org>
matplotlib-0.98.5.2-r2.ebuild, matplotlib-0.98.5.2-r3.ebuild:
1.1 dev-python/matplotlib/matplotlib-0.98.5.3.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.3.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.3.ebuild?rev=1.1&content-type=text/plain
Index: matplotlib-0.98.5.3.ebuild
===================================================================
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.3.ebuild,v 1.1 2009/06/15 05:32:10 bicatali Exp $
WX_GTK_VER=2.8
EAPI=2
inherit distutils wxwidgets
PDOC="users_guide_${PV}"
DESCRIPTION="Pure python plotting library with matlab like syntax"
HOMEPAGE="http://matplotlib.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
IUSE="cairo doc excel examples fltk gtk latex qt3 qt4 traits tk wxwidgets"
SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="PYTHON BSD"
CDEPEND=">=dev-python/numpy-1.1
dev-python/python-dateutil
dev-python/pytz
media-libs/freetype:2
media-libs/libpng
gtk? ( dev-python/pygtk )
tk? ( dev-lang/python[tk] )
wxwidgets? ( dev-python/wxpython:2.8 )"
DEPEND="${CDEPEND}
dev-python/pycxx
dev-util/pkgconfig
doc? (
>=dev-python/sphinx-0.5.1
media-gfx/graphviz[cairo,png]
|| ( ( dev-texlive/texlive-latexextra
dev-texlive/texlive-latexrecommended )
( app-text/ptex dev-tex/latex-unicode ) )
app-text/dvipng
dev-python/ipython )"
RDEPEND="${CDEPEND}
|| ( media-fonts/dejavu media-fonts/ttf-bitstream-vera )
media-fonts/texcm-ttf
cairo? ( dev-python/pycairo )
excel? ( dev-python/xlwt )
fltk? ( dev-python/pyfltk )
qt3? ( dev-python/PyQt )
qt4? ( dev-python/PyQt4[X] )
traits? ( dev-python/traits dev-python/configobj )
latex? (
virtual/latex-base
virtual/ghostscript
app-text/dvipng
virtual/poppler-utils
|| ( dev-texlive/texlive-fontsrecommended
app-text/ptex ) )"
DOCS="INTERACTIVE"
use_setup() {
local uword="${2}"
[ -z "${2}" ] && uword="${1}"
if use ${1}; then
echo "${uword} = True"
echo "${uword}agg = True"
else
echo "${uword} = False"
echo "${uword}agg = False"
fi
}
src_prepare() {
# patch from mandriva
epatch "${FILESDIR}"/${PN}-0.98.5.2-literal.patch
# avoid to launch xv while building examples docs
epatch "${FILESDIR}"/${PN}-0.98.5.2-no-xv.patch
# create setup.cfg (see setup.cfg.template for any changes)
cat > setup.cfg <<-EOF
[provide_packages]
pytz = False
dateutil = False
configobj = False
enthought.traits = False
[gui_support]
$(use_setup gtk)
$(use_setup tk)
$(use_setup wxwidgets wx)
$(use_setup qt3 qt)
$(use_setup qt4)
$(use_setup fltk)
$(use_setup cairo)
EOF
# avoid checks needing a X display
sed -i \
-e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \
-e "s/check_for_tk()/$(use tk && echo True || echo False)/" \
setup.py || die "sed setup.py failed"
# respect FHS:
# - mpl-data in /usr/share/matplotlib
# - config files in /etc/matplotlib
sed -i \
-e "/'mpl-data\/matplotlibrc',/d" \
-e "/'mpl-data\/matplotlib.conf',/d" \
-e "s:'lib/matplotlib/mpl-data/matplotlibrc':'matplotlibrc':" \
-e "s:'lib/matplotlib/mpl-data/matplotlib.conf':'matplotlib.conf':" \
setup.py \
|| die "sed setup.py for FHS failed"
sed -i \
-e "s:path = get_data_path():path = '/etc/matplotlib':" \
-e "s:os.path.dirname(__file__):'/usr/share/${PN}':g" \
lib/matplotlib/{__init__,config/cutils}.py \
|| die "sed init for FHS failed"
# remove internal copies of fonts, pycxx, pyparsing
rm -rf \
CXX \
lib/matplotlib/mpl-data/fonts/{afm,pdfcorefonts} \
lib/matplotlib/mpl-data/fonts/ttf/{Vera*,cm*,*.TXT} \
|| die "removed internal copies failed"
ln -s /usr/share/python*/CXX . || die
# remove pyparsing only when upstream pyparsing included matplotlib
# fixes. See bug #260025
#rm -f lib/matplotlib/pyparsing.py
}
src_compile() {
distutils_src_compile
if use doc; then
cd "${S}/doc"
export VARTEXFONTS="${T}"/fonts
# no die function here: broken compilation at the end, do it twice,
# result ok.
MATPLOTLIBDATA="${S}/lib/matplotlib/mpl-data" \
PYTHONPATH=$(dir -d "${S}"/build/lib*) \
${python} make.py html
MATPLOTLIBDATA="${S}/lib/matplotlib/mpl-data" \
PYTHONPATH=$(dir -d "${S}"/build/lib*) \
${python} make.py
fi
}
src_test() {
einfo "Tests are quite long, be patient"
cd "${S}/examples/tests"
PYTHONPATH=$(dir -d "${S}"/build/lib*) ${python} backend_driver.py agg \
|| die "tests failed"
PYTHONPATH=$(dir -d "${S}"/build/lib*) ${python} backend_driver.py \
--clean
}
src_install() {
distutils_src_install
# respect FHS
dodir /usr/share/${PN}
mv "${D}"/usr/*/*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib} \
"${D}"/usr/share/${PN} || die "failed renaming"
insinto /etc/matplotlib
doins matplotlibrc matplotlib.conf \
|| die "installing config files failed"
# doc and examples
insinto /usr/share/doc/${PF}
if use doc; then
doins doc/build/latex/Matplotlib.pdf || die
doins -r doc/build/html || die
fi
if use examples; then
doins -r examples || die
fi
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-15 5:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-15 5:32 [gentoo-commits] gentoo-x86 commit in dev-python/matplotlib: ChangeLog matplotlib-0.98.5.3.ebuild matplotlib-0.98.5.2-r2.ebuild matplotlib-0.98.5.2-r3.ebuild Sebastien Fabbro (bicatali)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox