pkgsrc/graphics/py-matplotlib-gtk2/Makefile

56 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.57 2017/01/01 14:43:43 wiz Exp $
VERSION= 1.5.2
DISTNAME= matplotlib-${VERSION}
PKGNAME= ${PYPKGPREFIX}-matplotlib-gtk-${VERSION}
CATEGORIES= graphics python
MASTER_SITES= ${MASTER_SITE_GITHUB:=matplotlib/}
GITHUB_PROJECT= matplotlib
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://matplotlib.sourceforge.net/
COMMENT= GTK frontend for matplotlib
USE_TOOLS+= pkg-config
PY_PATCHPLIST= yes
PYDISTUTILSPKG= yes
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # py-gtk2
USE_LANGUAGES= c c++
post-patch:
( ${ECHO} "[directories]"; \
${ECHO} "basedirlist=/usr"; \
${ECHO} "[provide_packages]"; \
${ECHO} "pytz = False"; \
${ECHO} "dateutil = False"; \
${ECHO} "[gui_support]"; \
${ECHO} "gtk = True"; \
${ECHO} "gtkagg = True"; \
${ECHO} "tkagg = False"; \
${ECHO} "wxagg = False"; \
${ECHO} "macosx = False" ) > ${WRKSRC}/setup.cfg
post-install:
${RM} -r ${DESTDIR}/${PREFIX}/${PYSITELIB}/${EGG_INFODIR}
# It needs:
# devel/py-cycler
# devel/py-nose
# devel/py-mock
do-test:
${ECHO} "backend : GTKAgg" > ${WRKSRC}/matplotlibrc
${RUN} cd ${WRKSRC} && MPLCONFIGDIR=$PWD \
MATPLOTLIBDATA=${WRKSRC}/lib/matplotlib/mpl-data \
PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} \
${PYTHONBIN} -c "import matplotlib; matplotlib.test()"
.include "../../lang/python/egg.mk"
.include "../../graphics/py-matplotlib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../math/py-numpy/buildlink3.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"