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

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

Revision 1.52, Wed Oct 26 10:31:22 2022 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
Changes since 1.51: +2 -2 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.52 2022/10/26 10:31:22 wiz Exp $
#

VERS=		1.9.15
DISTNAME=	pysvn-${VERS}
PKGNAME=	${PYPKGPREFIX}-pysvn-${VERS}
PKGREVISION=	4
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=pysvn/}

MAINTAINER=		helgoman@users.sourceforge.net
HOMEPAGE=		https://pysvn.sourceforge.io/
COMMENT=		Python interface to Subversion
LICENSE=		apache-1.1

DEPENDS+=		${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat

USE_LANGUAGES=		c c++

WRKSRC=			${WRKDIR}/${DISTNAME}/Source

BUILDLINK_TRANSFORM.DragonFly+=	rm:-lresolv

SUBST_CLASSES+=		path
SUBST_STAGE.path=	pre-configure
SUBST_FILES.path=	setup_configure.py
SUBST_VARS.path+=	PREFIX

PYSETUPCONFIGARGS=	--verbose --pycxx-dir="../Import/pycxx-7.1.5"
PYLIBVER=		${PYVERSSUFFIX:S/./_/g}

INSTALLATION_DIRS+=	${PYSITELIB}/pysvn

PRINT_PLIST_AWK+=	{ gsub(/${PYLIBVER}\.so/, "$${PYLIBVER}.so"); }

PLIST_SUBST+=		PYSITELIB=${PYSITELIB:Q}
PLIST_SUBST+=		PYLIBVER=${PYLIBVER:Q}

do-configure:
	${RUN} \
	cd ${WRKSRC} && \
	${SETENV} ${MAKE_ENV} \
	${PYTHONBIN} setup.py configure ${PYSETUPCONFIGARGS}

do-install:
	${INSTALL_DATA} ${WRKSRC}/pysvn/__init__.py \
		${DESTDIR}${PREFIX}/${PYSITELIB}/pysvn/__init__.py
	${INSTALL_LIB} ${WRKSRC}/pysvn/_pysvn_${PYLIBVER}.so \
		${DESTDIR}${PREFIX}/${PYSITELIB}/pysvn/_pysvn_${PYLIBVER}.so

.include "../../devel/subversion-base/buildlink3.mk"
.include "../../www/neon/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/krb5.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"