summaryrefslogtreecommitdiff
path: root/community/python-matplotlib
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-03-28 00:05:06 -0700
committerroot <root@rshg054.dnsready.net>2013-03-28 00:05:06 -0700
commit0fbe25a10dce8ec16455854ed6929b688f98cb36 (patch)
tree24eae9f7b5c6ac412f662427713708f11c197628 /community/python-matplotlib
parent87fbcb30b652672a7e110b66a4c15342e27df826 (diff)
Thu Mar 28 00:05:05 PDT 2013
Diffstat (limited to 'community/python-matplotlib')
-rw-r--r--community/python-matplotlib/PKGBUILD18
-rw-r--r--community/python-matplotlib/python-matplotlib-tk.patch35
2 files changed, 5 insertions, 48 deletions
diff --git a/community/python-matplotlib/PKGBUILD b/community/python-matplotlib/PKGBUILD
index f34697d7a..e13097334 100644
--- a/community/python-matplotlib/PKGBUILD
+++ b/community/python-matplotlib/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 81606 2012-12-25 00:34:11Z foutrelis $
+# $Id: PKGBUILD 87092 2013-03-27 01:38:02Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
@@ -6,8 +6,8 @@
pkgbase=python-matplotlib
pkgname=('python2-matplotlib' 'python-matplotlib')
-pkgver=1.2.0
-pkgrel=8
+pkgver=1.2.1
+pkgrel=1
pkgdesc="A python plotting library, making publication quality plots"
arch=('i686' 'x86_64')
url='http://matplotlib.org'
@@ -20,16 +20,12 @@ optdepends=('pygtk: for use with the GTK or GTKAgg backend'
'tk: used by the TkAgg backend'
'ghostscript: usetex dependencies'
'texlive-bin: usetex dependencies')
-source=("https://github.com/downloads/matplotlib/matplotlib/matplotlib-${pkgver}.tar.gz"
- python-matplotlib-tk.patch)
-sha1sums=('1d0c319b2bc545f1a7002f56768e5730fe573518'
- '6f27ff74a7752700758d081d3235a61a89b8ea95')
+source=("http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-${pkgver}/matplotlib-${pkgver}.tar.gz")
+sha1sums=('82fc44d0047a713c1b0b1b4ea2503e6a41c57f98')
build() {
cd "${srcdir}"/matplotlib-${pkgver}
- patch -Np1 -i ../python-matplotlib-tk.patch
-
# use system python-six
rm lib/six.py
@@ -37,10 +33,6 @@ build() {
rm -r lib/matplotlib/pyparsing_py{2,3}.py
sed -i -e 's/matplotlib.pyparsing_py[23]/pyparsing/g' lib/matplotlib/{mathtext,fontconfig_pattern}.py
- # For numpy 1.7
- sed -i '/include/s/numpy\/arrayobject.h/numpy\/oldnumeric.h/g' \
- src/*.{c,cpp,h} lib/matplotlib/delaunay/*.{cpp,h} lib/matplotlib/tri/*.h
-
cd ..
cp -a matplotlib-${pkgver} matplotlib-${pkgver}-py3
diff --git a/community/python-matplotlib/python-matplotlib-tk.patch b/community/python-matplotlib/python-matplotlib-tk.patch
deleted file mode 100644
index 10480195a..000000000
--- a/community/python-matplotlib/python-matplotlib-tk.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff -up matplotlib-1.2.0/setupext.py.orig matplotlib-1.2.0/setupext.py
---- matplotlib-1.2.0/setupext.py.orig 2012-11-23 14:50:48.954715965 -0200
-+++ matplotlib-1.2.0/setupext.py 2012-11-23 14:55:53.731727636 -0200
-@@ -898,12 +898,12 @@ def parse_tcl_config(tcl_lib_dir, tk_lib
-
- tcl_poss = [tcl_lib_dir,
- os.path.normpath(os.path.join(tcl_lib_dir, '..')),
-- "/usr/lib/tcl"+str(Tkinter.TclVersion),
-- "/usr/lib"]
-+ "@@libdir@@/tcl"+str(Tkinter.TclVersion),
-+ "@@lib@@"]
- tk_poss = [tk_lib_dir,
- os.path.normpath(os.path.join(tk_lib_dir, '..')),
-- "/usr/lib/tk"+str(Tkinter.TkVersion),
-- "/usr/lib"]
-+ "@@libdir@@/tk"+str(Tkinter.TkVersion),
-+ "@@libdir@@"]
- for ptcl, ptk in zip(tcl_poss, tk_poss):
- tcl_config = os.path.join(ptcl, "tclConfig.sh")
- tk_config = os.path.join(ptk, "tkConfig.sh")
-@@ -974,10 +974,10 @@ def guess_tcl_config(tcl_lib_dir, tk_lib
- return tcl_lib, tcl_inc, 'tcl' + tk_ver, tk_lib, tk_inc, 'tk' + tk_ver
-
- def hardcoded_tcl_config():
-- tcl_inc = "/usr/local/include"
-- tk_inc = "/usr/local/include"
-- tcl_lib = "/usr/local/lib"
-- tk_lib = "/usr/local/lib"
-+ tcl_inc = "/usr/include"
-+ tk_inc = "/usr/include"
-+ tcl_lib = "@@libdir@@"
-+ tk_lib = "@@libdir@@"
- return tcl_lib, tcl_inc, 'tcl', tk_lib, tk_inc, 'tk'
-
- def add_tk_flags(module):