[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / py-line_profiler

File: [cvs.NetBSD.org] / pkgsrc / devel / py-line_profiler / Makefile (download)

Revision 1.6, Thu May 2 09:27:09 2019 UTC (14 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.5: +2 -8 lines

Forget about Python 3.4

# $NetBSD: Makefile,v 1.6 2019/05/02 09:27:09 adam Exp $

DISTNAME=	line_profiler-2.1.2
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=l/line_profiler/}

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	https://github.com/rkern/line_profiler
COMMENT=	Python line-by-line profiler
LICENSE=	modified-bsd

USE_LANGUAGES=	c

post-install:
	cd ${DESTDIR}${PREFIX}/bin && \
		${MV} kernprof kernprof${PYVERSSUFFIX} || ${TRUE}

PYTHON_VERSIONED_DEPENDENCIES=	ipython

.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 37
# Regenerate _line_profiler.c with recent cython
BUILDLINK_DEPMETHOD.py-cython=	build
.include "../../devel/py-cython/buildlink3.mk"

pre-configure:
	${RM} -f ${WRKSRC}/_line_profiler.c
.endif

.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"