# $NetBSD: Makefile,v 1.16 2013/01/26 21:37:24 adam Exp $
#
VERS= 1.7.5
DISTNAME= pysvn-${VERS}
PKGNAME= ${PYPKGPREFIX}-pysvn-${VERS}
PKGREVISION= 4
CATEGORIES= devel
MASTER_SITES= http://pysvn.barrys-emacs.org/source_kits/
MAINTAINER= helgoman@users.sourceforge.net
HOMEPAGE= http://pysvn.tigris.org/
COMMENT= Python interface to Subversion
LICENSE= apache-1.1
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
USE_LANGUAGES= c c++
USE_TOOLS= gmake
PSVNSRC= Source
PYSETUP= setup.py
PYSETUPSUBDIR= ${PSVNSRC}/pysvn
PY_PATCHPLIST= yes
TESTDIR= Tests
BUILD_DIRS= ${PSVNSRC}
INSTALLATION_DIRS= ${PYSITELIB}/pysvn
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "DragonFly"
BUILDLINK_TRANSFORM+= rm:-lresolv
.endif
do-configure:
cd ${WRKSRC}/${PSVNSRC} && \
${PYTHONBIN} ${PYSETUP} configure --fixed-module-name \
--svn-root-dir=${BUILDLINK_PREFIX.subversion-base}
do-install:
${INSTALL_DATA} \
${WRKSRC}/${PYSETUPSUBDIR}/*.py \
${WRKSRC}/${PYSETUPSUBDIR}/*.so \
${DESTDIR}${PREFIX}/${PYSITELIB}/pysvn
# XXX expect one difference due to the patched Python path
do-test:
cd ${WRKSRC}/${TESTDIR} && ${MAKE}
.include "../../devel/subversion-base/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/krb5.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>