summaryrefslogtreecommitdiff
path: root/devel/py-subversion/Makefile
blob: 3ea728b13cd757676cb5aac89dd9f9f08992d600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $NetBSD: Makefile,v 1.5 2004/03/08 00:15:53 minskim Exp $

PKGNAME=	${PYPKGPREFIX}-subversion-${SVNVER}
COMMENT=	Python bindings and tools for Subversion

.include "../../devel/subversion/Makefile.common"

CONFIGURE_ENV+=		PYTHON2=${PYTHONBIN}

PY_PATCHPLIST=		YES
PYBINMODULE=		YES
PYTHON_PATCH_SCRIPTS=	tools/cvs2svn/cvs2svn.py \
			tools/hook-scripts/mailer/mailer.py

ALL_TARGET=		swig-py-lib swig-py
INSTALL_TARGET=		install-swig-py-lib install-swig-py

MAKE_ENV+=		EXTRA_CPPFLAGS="${BUILDLINK_CPPFLAGS}"
MAKEFLAGS+=		swig_pydir=${LOCALBASE}/${PYSITELIB}/libsvn \
			swig_pydir_extra=${LOCALBASE}/${PYSITELIB}/svn

TEST_TARGET=		all check

post-install:
	${RM} ${LOCALBASE}/${PYSITELIB}/libsvn/*.a
	${RM} ${LOCALBASE}/${PYSITELIB}/libsvn/*.la
	${INSTALL_DATA_DIR} ${SVNEXAMPLES}/python
	${INSTALL_DATA} ${WRKSRC}/tools/examples/*.py ${SVNEXAMPLES}/python
	${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/mailer/mailer.py \
		${SVNEXAMPLES}/hook-scripts
	${INSTALL_DATA} \
		${WRKSRC}/tools/hook-scripts/mailer/mailer.conf.example \
		${SVNEXAMPLES}/hook-scripts
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/subversion/cvs2svn
	${INSTALL_DATA} ${WRKSRC}/tools/cvs2svn/README ${SVNDOC}/cvs2svn
	${INSTALL_SCRIPT} ${WRKSRC}/tools/cvs2svn/cvs2svn.py \
		${PREFIX}/bin/cvs2svn
	${INSTALL_SCRIPT_DIR} ${LOCALBASE}/${PYSITELIB}/rcsparse
	${INSTALL_SCRIPT} ${WRKSRC}/tools/cvs2svn/rcsparse/*.py \
		${LOCALBASE}/${PYSITELIB}/rcsparse

.include "../../devel/subversion/buildlink3.mk"
.include "../../devel/swig-build/buildlink3.mk"
.include "../../devel/swig-python/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"