Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2007 16:06:01 +0800 (CST)
From:      Li-Wen Hsu <lwhsu@lwhsu.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        mainland@apeiron.net, lwhsu@lwhsu.org
Subject:   ports/110149: [PATCH] math/py-matplotlib: fix depends on devel/py-pytz
Message-ID:  <200703100806.l2A861MP005731@jail0.lwhsu.csie.net>
Resent-Message-ID: <200703100810.l2A8A4tJ010391@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         110149
>Category:       ports
>Synopsis:       [PATCH] math/py-matplotlib: fix depends on devel/py-pytz
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 10 08:10:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Li-Wen Hsu
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD jail0.lwhsu.csie.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 26 00:04:54 CST 2007
>Description:
- Fix depends on devel/py-pytz, it has been packed as an egg
- USE_PYTHON=yes, there is no python2.2 in ports tree
- Remove 4.x stuff

Port maintainer (mainland@apeiron.net) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- py24-matplotlib-0.87.6.patch begins here ---
diff -ruN -ruN --exclude=CVS /usr/ports/math/py-matplotlib/Makefile /home/lwhsu/ports/math/py-matplotlib/Makefile
--- /usr/ports/math/py-matplotlib/Makefile	Sun Nov 19 16:38:57 2006
+++ /home/lwhsu/ports/math/py-matplotlib/Makefile	Sat Mar 10 13:42:00 2007
@@ -18,7 +18,7 @@
 
 BUILD_DEPENDS=	${PYNUMERIC} \
 		${PYTHON_SITELIBDIR}/dateutil/__init__.py:${PORTSDIR}/devel/py-dateutil \
-		${PYTHON_SITELIBDIR}/pytz/__init__.py:${PORTSDIR}/devel/py-pytz \
+		${PYTHON_SITELIBDIR}/${PYPYTZ_EGG}:${PORTSDIR}/devel/py-pytz \
 		${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
 		${LOCALBASE}/lib/libagg.a:${PORTSDIR}/graphics/agg
 LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2 \
@@ -29,7 +29,7 @@
 BUILD_DEPENDS+=	Xvfb:${X_VFBSERVER_PORT}
 .endif
 
-USE_PYTHON=	2.2+
+USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 USE_GNOME=	gtk20 pygtk2
 CFLAGS+=	-I${X11BASE}/include
@@ -43,12 +43,6 @@
 PLISTDIR+=	${EXAMPLESDIR}
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if ( ${OSVERSION} < 500000)
-USE_GCC=	3.4
-.endif
-
 post-patch:
 	@${GREP} -lR "share/matplotlib" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
 		-e "s,share/matplotlib,share/py-matplotlib,g"
@@ -64,5 +58,9 @@
 	@${FIND} ${dir} -type d | ${SORT} -r | \
 		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 .endfor
+
+.include <bsd.port.pre.mk>
+
+PYPYTZ_EGG!=	${MAKE} -f ${PORTSDIR}/devel/py-pytz/Makefile -V PYPYTZ_EGG
 
 .include <bsd.port.post.mk>
--- py24-matplotlib-0.87.6.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703100806.l2A861MP005731>