aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2005-04-13 15:26:36 +0800
committerijliao <ijliao@FreeBSD.org>2005-04-13 15:26:36 +0800
commit313b22343aa0b21fbc3ccc203133aa1439cd75e6 (patch)
tree35adc90b3da1d3ea61b879cb17c7154bf944dfcd
parent84d4aa26ca712333457e3e71b05d2b019a60a475 (diff)
downloadfreebsd-ports-gnome-313b22343aa0b21fbc3ccc203133aa1439cd75e6.tar.gz
freebsd-ports-gnome-313b22343aa0b21fbc3ccc203133aa1439cd75e6.tar.zst
freebsd-ports-gnome-313b22343aa0b21fbc3ccc203133aa1439cd75e6.zip
minor fix path problem
-rw-r--r--math/py-matplotlib/Makefile7
-rw-r--r--math/py-matplotlib/files/patch-setup.py11
2 files changed, 6 insertions, 12 deletions
diff --git a/math/py-matplotlib/Makefile b/math/py-matplotlib/Makefile
index 992887e0e3dd..9ec069c1e159 100644
--- a/math/py-matplotlib/Makefile
+++ b/math/py-matplotlib/Makefile
@@ -8,7 +8,7 @@
PORTNAME= matplotlib
PORTVERSION= 0.74
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -27,6 +27,7 @@ RUN_DEPENDS= ${PYNUMERIC} \
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT}
.endif
+USE_REINPLACE= yes
USE_PYTHON= 2.2+
USE_PYDISTUTILS= yes
USE_GNOME= gtk20 pygtk2
@@ -42,6 +43,10 @@ PLISTDIR+= ${EXAMPLESDIR}
.include <bsd.port.pre.mk>
+post-patch:
+ @${GREP} -lR "share/matplotlib" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
+ -e "s,share/matplotlib,share/py-matplotlib,g"
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
diff --git a/math/py-matplotlib/files/patch-setup.py b/math/py-matplotlib/files/patch-setup.py
deleted file mode 100644
index 8dd8f58509ba..000000000000
--- a/math/py-matplotlib/files/patch-setup.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- setup.py.orig Sat Jan 22 02:42:00 2005
-+++ setup.py Thu Jan 27 17:49:21 2005
-@@ -77,7 +77,7 @@
- data.extend(glob.glob('images/*.ppm'))
- data.append('.matplotlibrc')
-
--data_files=[('share/matplotlib', data),]
-+data_files=[('share/py-matplotlib', data),]
-
- # Figure out which array packages to provide binary support for
- # and define the NUMERIX value: Numeric, numarray, or both.