From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OWd6L-0000Gt-MJ for garchives@archives.gentoo.org; Wed, 07 Jul 2010 22:28:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 89521E0966; Wed, 7 Jul 2010 22:28:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 48C40E0966 for ; Wed, 7 Jul 2010 22:28:20 +0000 (UTC) Received: from corvid.gentoo.org (corvid.gentoo.org [208.92.234.79]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CAB411B4069 for ; Wed, 7 Jul 2010 22:28:19 +0000 (UTC) Received: by corvid.gentoo.org (Postfix, from userid 2162) id 18DB92CE14; Wed, 7 Jul 2010 22:28:18 +0000 (UTC) From: "Sebastien Fabbro (bicatali)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, bicatali@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-python/matplotlib: matplotlib-1.0.0.ebuild ChangeLog X-VCS-Repository: gentoo-x86 X-VCS-Files: matplotlib-1.0.0.ebuild ChangeLog X-VCS-Directories: dev-python/matplotlib X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro Content-Type: text/plain; charset=utf8 Message-Id: <20100707222819.18DB92CE14@corvid.gentoo.org> Date: Wed, 7 Jul 2010 22:28:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 724f2cbd-21cb-499d-9d9f-56e77d971c7b X-Archives-Hash: 50af16ee438c809588322b8483f074b7 bicatali 10/07/07 22:28:18 Modified: ChangeLog Added: matplotlib-1.0.0.ebuild Log: Version bump. Patches were applied upstream (Portage version: 2.2_rc67/cvs/Linux x86_64) Revision Changes Path 1.91 dev-python/matplotlib/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplot= lib/ChangeLog?rev=3D1.91&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplot= lib/ChangeLog?rev=3D1.91&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplot= lib/ChangeLog?r1=3D1.90&r2=3D1.91 Index: ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v retrieving revision 1.90 retrieving revision 1.91 diff -u -r1.90 -r1.91 --- ChangeLog 7 Jun 2010 16:44:27 -0000 1.90 +++ ChangeLog 7 Jul 2010 22:28:18 -0000 1.91 @@ -1,6 +1,12 @@ # ChangeLog for dev-python/matplotlib # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.9= 0 2010/06/07 16:44:27 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.9= 1 2010/07/07 22:28:18 bicatali Exp $ + +*matplotlib-1.0.0 (07 Jul 2010) + + 07 Jul 2010; S=C3=A9bastien Fabbro + +matplotlib-1.0.0.ebuild: + Version bump. Patches were applied upstream =20 07 Jun 2010; S=C3=A9bastien Fabbro matplotlib-0.99.3.ebuild, +files/matplotlib-0.99.3-nopiwik.patch: 1.1 dev-python/matplotlib/matplotlib-1.0.0.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplot= lib/matplotlib-1.0.0.ebuild?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplot= lib/matplotlib-1.0.0.ebuild?rev=3D1.1&content-type=3Dtext/plain Index: matplotlib-1.0.0.ebuild =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-1.0.0= .ebuild,v 1.1 2010/07/07 22:28:18 bicatali Exp $ EAPI=3D"2" PYTHON_DEPEND=3D"2" SUPPORT_PYTHON_ABIS=3D"1" WX_GTK_VER=3D"2.8" inherit eutils distutils wxwidgets flag-o-matic PDOC=3D"users_guide_${PV}" DESCRIPTION=3D"Pure python plotting library with matlab like syntax" HOMEPAGE=3D"http://matplotlib.sourceforge.net/ http://pypi.python.org/pyp= i/matplotlib" SRC_URI=3D"mirror://sourceforge/${PN}/${P}.tar.gz" IUSE=3D"cairo doc excel examples fltk gtk latex qt4 traits tk wxwidgets" SLOT=3D"0" KEYWORDS=3D"~amd64 ~ppc ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-ma= cos ~x64-macos ~x86-macos" LICENSE=3D"PYTHON BSD" CDEPEND=3D"dev-python/numpy 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=3D"${CDEPEND} dev-python/pycxx dev-util/pkgconfig doc? ( dev-python/sphinx media-gfx/graphviz[cairo] || ( ( dev-texlive/texlive-latexextra dev-texlive/texlive-fontsrecommended dev-texlive/texlive-latexrecommended ) ( app-text/ptex dev-tex/latex-unicode ) ) app-text/dvipng dev-python/imaging dev-python/ipython excel? ( dev-python/xlwt ) )" RDEPEND=3D"${CDEPEND} virtual/ttf-fonts media-fonts/texcm-ttf dev-python/pyparsing cairo? ( dev-python/pycairo ) excel? ( dev-python/xlwt ) fltk? ( dev-python/pyfltk ) qt4? ( dev-python/PyQt4[X] ) traits? ( dev-python/traits dev-python/configobj ) latex? ( virtual/latex-base app-text/ghostscript-gpl app-text/dvipng app-text/poppler[utils] || ( dev-texlive/texlive-fontsrecommended app-text/ptex ) )" RESTRICT_PYTHON_ABIS=3D"3.*" DOCS=3D"INTERACTIVE" use_setup() { local uword=3D"${2}" [ -z "${2}" ] && uword=3D"${1}" if use ${1}; then echo "${uword} =3D True" echo "${uword}agg =3D True" else echo "${uword} =3D False" echo "${uword}agg =3D False" fi } src_prepare() { # create setup.cfg (see setup.cfg.template for any changes) cat > setup.cfg <<-EOF [provide_packages] pytz =3D False dateutil =3D False configobj =3D False enthought.traits =3D False [gui_support] $(use_setup gtk) $(use_setup tk) $(use_setup wxwidgets wx) $(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" # 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} \ lib/matplotlib/pyparsing.py \ || die "removed internal copies failed" sed -i \ -e 's/matplotlib.pyparsing/pyparsing/g' \ lib/matplotlib/{mathtext,fontconfig_pattern}.py \ || die "sed pyparsing failed" } src_compile() { unset DISPLAY # bug #278524 distutils_src_compile_pre_hook() { ln -fs "${EPREFIX}/usr/share/python$(python_get_version)/CXX" . } distutils_src_compile if use doc; then cd "${S}/doc" export VARTEXFONTS=3D"${T}"/fonts MATPLOTLIBDATA=3D"${S}/lib/matplotlib/mpl-data" \ PYTHONPATH=3D$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \ "$(PYTHON -f)" make.py --small all [[ -e build/latex/Matplotlib.pdf ]] || die "doc generation failed" fi } src_test() { # if doc were enabled, all examples were built and tested use doc && return einfo "Tests are quite long, be patient" cd "${S}/examples/tests" testing() { PYTHONPATH=3D$(ls -d "${S}"/build-${PYTHON_ABI}/lib*) "$(PYTHON)" backe= nd_driver.py agg || return 1 PYTHONPATH=3D$(ls -d "${S}"/build-${PYTHON_ABI}/lib*) "$(PYTHON)" backe= nd_driver.py --clean } python_execute_function testing } src_install() { # sed only after doc building, to allow using default configs sed -i \ -e "s:path =3D get_data_path():path =3D '${EPREFIX}/etc/matplotlib':" = \ -e "s:os.path.dirname(__file__):'${EPREFIX}/usr/share/${PN}':g" \ build-*/lib*/matplotlib/__init__.py \ || die "sed init for FHS failed" [[ -z ${ED} ]] && local ED=3D"${D}" distutils_src_install # Respect FHS dodir /usr/share/${PN} mv "${ED}$(python_get_sitedir -f)/${PN}/"{mpl-data,backends/Matplotlib.n= ib} "${ED}usr/share/${PN}" || die "Renaming failed" rm -fr "${ED}"usr/lib*/python*/site-packages/${PN}/{mpl-data,backends/Ma= tplotlib.nib} insinto /etc/matplotlib doins matplotlibrc matplotlib.conf || die "installing config files faile= d" # 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 }