summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-02-06 14:13:41 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-02-06 14:13:41 +0000
commitce0d2d6da5937a384843cae977924c06e3f4cc02 (patch)
treea8bc66877b14ed52330134ce9bde1ade6ae01575 /dev-python/matplotlib
parentStable on amd64 wrt bug #302473 (diff)
downloadhistorical-ce0d2d6da5937a384843cae977924c06e3f4cc02.tar.gz
historical-ce0d2d6da5937a384843cae977924c06e3f4cc02.tar.bz2
historical-ce0d2d6da5937a384843cae977924c06e3f4cc02.zip
Set SUPPORT_PYTHON_ABIS.
Package-Manager: portage-15324-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python/matplotlib')
-rw-r--r--dev-python/matplotlib/ChangeLog8
-rw-r--r--dev-python/matplotlib/Manifest3
-rw-r--r--dev-python/matplotlib/matplotlib-0.99.1.1-r1.ebuild192
3 files changed, 201 insertions, 2 deletions
diff --git a/dev-python/matplotlib/ChangeLog b/dev-python/matplotlib/ChangeLog
index c6e2a015c3bc..40c8838d2de6 100644
--- a/dev-python/matplotlib/ChangeLog
+++ b/dev-python/matplotlib/ChangeLog
@@ -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.78 2010/01/02 19:13:27 yngwin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.79 2010/02/06 14:13:41 arfrever Exp $
+
+*matplotlib-0.99.1.1-r1 (06 Feb 2010)
+
+ 06 Feb 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +matplotlib-0.99.1.1-r1.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
02 Jan 2010; Ben de Groot <yngwin@gentoo.org> matplotlib-0.99.1.1.ebuild:
Remove qt3 support
diff --git a/dev-python/matplotlib/Manifest b/dev-python/matplotlib/Manifest
index 07b03944bbeb..490aed5a0a03 100644
--- a/dev-python/matplotlib/Manifest
+++ b/dev-python/matplotlib/Manifest
@@ -2,6 +2,7 @@ AUX matplotlib-0.98.5.2-no-xv.patch 368 RMD160 e0d3cf32f2e74f2f6b9dbcb1de603e558
AUX matplotlib-0.99.0-freebsd7+.patch 311 RMD160 3c39e6c196b2195691dafcb718fdb2c5d1456121 SHA1 7928d232b5228a22f8cd6897f4eadf75c30aefb0 SHA256 a86e74c7048474768eb1aaa23076454d132ccaf630119dbf3546532f4b96fe85
AUX matplotlib-0.99.1.1-prefix.patch 1374 RMD160 f30e66336d6e51414babc63f0cc1e79319f27a3a SHA1 8201f7f5f4ce788aac91acc8cdd1d0ff43ae6a93 SHA256 0cf04d6d5124793af0e89bbf7aa20d821dccb5b7b95eb04aeeaa2723a48345ff
DIST matplotlib-0.99.1.1.tar.gz 11905737 RMD160 2bd025944eab18d41ddf9f521c00a1f065346738 SHA1 57b5f1e3f0c8866af99f72fca06b4e529acba31d SHA256 1b94b4632ee4dcd41862f2a2e90fdca8f2e6fb108700c06a16e764782da49041
+EBUILD matplotlib-0.99.1.1-r1.ebuild 5461 RMD160 35126e7181054894bb5fd1da5808ec7d801a193b SHA1 c19221fa9f74973716d72df5d7626f38ff75884b SHA256 4572f165a5ead20c9aabc5120e833c80b318e5a893a31292bdb6a5b25c7b1c6d
EBUILD matplotlib-0.99.1.1.ebuild 5157 RMD160 5108730808576e604203042fa1d9ac1015bbcda5 SHA1 6a37b52d10f2edf5ea6253545e1aae7e9cdeaa10 SHA256 8a66a535b41e3da8b49ea2362b410079c4e9a3af6254b3e0d75d5469a041a8d5
-MISC ChangeLog 15475 RMD160 a767d85bdb05a14248da242291396fccfc519e16 SHA1 dd71203217aeb0a37578a84e64c8863decc8bd02 SHA256 c44047d4194b20a47d6e642383c66f530b1d925fadbcf8188eaabaaed353fc7f
+MISC ChangeLog 15651 RMD160 ef4b193f20a33b2a3c15422536c31b2098f9943a SHA1 51c7f742086a9c454a6e256b5772fed8ad1dea82 SHA256 78e170b17c620c3cdcbe9023271b0ac91c25e33ba8d440a6d4ae7c9a1bd23fce
MISC metadata.xml 640 RMD160 5a3412572c06b5f54b7570a6d42e503b5711b8b9 SHA1 dbdefc26499cd67470a363f54fcb928f2f510fcf SHA256 6643fb3ec5019f58c1a7af76a25d791f1109c37929b3332ddbe1a2911f5de3b4
diff --git a/dev-python/matplotlib/matplotlib-0.99.1.1-r1.ebuild b/dev-python/matplotlib/matplotlib-0.99.1.1-r1.ebuild
new file mode 100644
index 000000000000..6afea38347eb
--- /dev/null
+++ b/dev-python/matplotlib/matplotlib-0.99.1.1-r1.ebuild
@@ -0,0 +1,192 @@
+# 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-0.99.1.1-r1.ebuild,v 1.1 2010/02/06 14:13:41 arfrever Exp $
+
+EAPI="2"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+WX_GTK_VER="2.8"
+
+inherit distutils wxwidgets
+
+PDOC="users_guide_${PV}"
+
+DESCRIPTION="Pure python plotting library with matlab like syntax"
+HOMEPAGE="http://matplotlib.sourceforge.net/ http://pypi.python.org/pypi/matplotlib"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+IUSE="cairo doc excel examples fltk gtk latex qt4 traits tk wxwidgets"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+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-2.24.0[cairo]
+ <media-gfx/graphviz-2.24.0[cairo,png]
+ )
+ || ( ( dev-texlive/texlive-latexextra
+ dev-texlive/texlive-latexrecommended )
+ ( app-text/ptex dev-tex/latex-unicode ) )
+ app-text/dvipng
+ dev-python/imaging
+ 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 )
+ qt4? ( dev-python/PyQt4[X] )
+ traits? ( dev-python/traits dev-python/configobj )
+ latex? (
+ virtual/latex-base
+ app-text/ghostscript-gpl
+ app-text/dvipng
+ virtual/poppler-utils
+ || ( dev-texlive/texlive-fontsrecommended
+ app-text/ptex ) )"
+RESTRICT_PYTHON_ABIS="3.*"
+
+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() {
+ # avoid to launch xv while building examples docs
+ epatch "${FILESDIR}"/${PN}-0.98.5.2-no-xv.patch
+
+ # removes hardcoded lib paths, should not break non-Prefix, more
+ # likely to fix it in case of multilib
+ epatch "${FILESDIR}"/${P}-prefix.patch
+ epatch "${FILESDIR}"/${PN}-0.99.0-freebsd7+.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 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 = '${EPREFIX}/etc/matplotlib':" \
+ -e "s:os.path.dirname(__file__):'${EPREFIX}/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"
+
+ # remove pyparsing only when upstream pyparsing included matplotlib
+ # fixes. See bug #260025
+ #rm -f lib/matplotlib/pyparsing.py
+}
+
+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="${T}"/fonts
+ # no die function here: broken compilation at the end, do it twice,
+ # result ok.
+ MATPLOTLIBDATA="${S}/lib/matplotlib/mpl-data" \
+ PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \
+ "$(PYTHON -f)" make.py html
+ MATPLOTLIBDATA="${S}/lib/matplotlib/mpl-data" \
+ PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \
+ "$(PYTHON -f)" make.py
+ fi
+}
+
+src_test() {
+ einfo "Tests are quite long, be patient"
+ cd "${S}/examples/tests"
+ testing() {
+ PYTHONPATH=$(ls -d "${S}"/build-${PYTHON_ABI}/lib*) "$(PYTHON)" backend_driver.py agg || return 1
+ PYTHONPATH=$(ls -d "${S}"/build-${PYTHON_ABI}/lib*) "$(PYTHON)" backend_driver.py --clean
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ [[ -z ${ED} ]] && local ED=${D}
+ distutils_src_install
+
+ # Respect FHS
+ dodir /usr/share/${PN}
+ mv "${ED}$(python_get_sitedir -f)/${PN}/"{mpl-data,backends/Matplotlib.nib} "${ED}usr/share/${PN}" || die "Renaming failed"
+ rm -fr "${ED}"usr/lib*/python*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib}
+
+ 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
+}