> There are actually a few other odd things with this port dependencies.
> I'll have a look.
> Thanks.
This should do it.
For python2 we depend on gtk+2.
For python3 we depend on gtk+3.
The toolkit dependencies are somewhat optional (like py-qt4); and we don't want
to depend on all possible options for obvious reasons.
So if you want python2 with gtk+3 then you need to manually install the
dependencies (in your case, py-gobject3 and gtk+3).
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/py-matplotlib/Makefile,v
retrieving revision 1.54
diff -u -p -u -p -r1.54 Makefile
--- Makefile 4 May 2015 22:03:20 -0000 1.54
+++ Makefile 1 Jul 2015 07:18:16 -0000
@@ -3,7 +3,7 @@
COMMENT= Python charting and plotting API
MODPY_EGG_VERSION = 1.4.2
-REVISION = 2
+REVISION = 3
DISTNAME = matplotlib-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = graphics devel math
@@ -15,15 +15,12 @@ MAINTAINER = Daniel Dickman <daniel@open
# BSD-like
PERMIT_PACKAGE_CDROM= Yes
-WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
-WANTLIB += Xi Xinerama Xrandr Xrender ffi fontconfig freetype
-WANTLIB += m pixman-1 png pthread pthread-stubs ${MODPY_WANTLIB}
-WANTLIB += stdc++ tcl85 tk85 xcb xcb-render xcb-shm z
+WANTLIB += ${MODPY_WANTLIB} ${MODTK_WANTLIB}
+WANTLIB += freetype m png stdc++ z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=matplotlib/}
MODULES= lang/python \
- devel/gettext \
x11/tk
FLAVORS= python3
@@ -31,7 +28,7 @@ FLAVOR?=
MODPY_SETUPTOOLS = Yes
-RUN_DEPENDS= devel/py-tz${MODPY_FLAVOR} \
+COMMON_DEPENDS= devel/py-tz${MODPY_FLAVOR} \
devel/py-dateutil${MODPY_FLAVOR} \
devel/py-parsing${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR} \
@@ -39,16 +36,19 @@ RUN_DEPENDS= devel/py-tz${MODPY_FLAVOR}
graphics/py-Pillow${MODPY_FLAVOR} \
${MODPY_TKINTER_DEPENDS}
-.if ! ${FLAVOR:Mpython3}
-WANTLIB += atk-1.0 cairo gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0
-WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gtk-x11-2.0 harfbuzz
-WANTLIB += pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre
-LIB_DEPENDS += x11/gtk+2
-RUN_DEPENDS += x11/py-gtk2
+BUILD_DEPENDS= ${COMMON_DEPENDS}
+RUN_DEPENDS= ${COMMON_DEPENDS}
+
+.if ${FLAVOR:Mpython3}
+RUN_DEPENDS += devel/py-gobject3${MODPY_FLAVOR}
+# pygobject GTK3 introspection (not provided by indirect dependencies)
+RUN_DEPENDS += x11/gtk+3
+.else
+RUN_DEPENDS += x11/py-gtk2
.endif
-BUILD_DEPENDS= ${RUN_DEPENDS}
-LIB_DEPENDS+= graphics/png
+LIB_DEPENDS= ${MODTK_LIB_DEPENDS} \
+ graphics/png
TEST_DEPENDS = ${RUN_DEPENDS} \
devel/py-nose${MODPY_FLAVOR}
--
Antoine