blob: 38cb19a01bcf90f51a677111ff2a7773caa5a9a0 (
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
|
# $NetBSD: product.mk,v 1.13 2008/05/26 02:13:26 joerg Exp $
DIST_SUBDIR= zope
BUILDLINK_API_DEPENDS.zope?= zope>=2.5<2.7:../../www/zope25
DEPENDS+= ${BUILDLINK_API_DEPENDS.zope}
EVAL_PREFIX+= BUILDLINK_PREFIX.zope=zope25
BUILDLINK_PREFIX.zope_DEFAULT= ${LOCALBASE}
WRKSRC?= ${WRKDIR}
NO_BUILD= yes
USE_TOOLS+= pax
PYTHON_VERSIONS_ACCEPTED= 21
ZOPEDIR= ${BUILDLINK_PREFIX.zope}/lib/zope
PRODNAMES?= ${PKGNAME:C/^zope25-(.*)-.*/\1/}
ZOPE_COPYPRODUCT?= zope-std-copyproduct-short
PRODSUBDIR= lib/python/Products/${PRODNAME}
.PHONY: zope-std-copyproduct-long-nogarbage
zope-std-copyproduct-long-nogarbage:
cd ${WRKSRC:Q} && pax -rw \
-s ',.*/CVS/.*,,' \
-s ',.*/CVS$$,,' \
-s ',.*/\.cvsignore$$,,' \
-s ',.*\.orig$$,,' \
lib ${ZOPEDIR}
.PHONY: zope-std-copyproduct-long
zope-std-copyproduct-long:
(cd ${WRKSRC}; pax -r -w lib ${ZOPEDIR})
.PHONY: zope-std-copyproduct-short
zope-std-copyproduct-short:
.for i in ${PRODNAMES}
(cd ${WRKSRC}; pax -r -w ${i} ${ZOPEDIR}/lib/python/Products)
.endfor
do-install: ${ZOPE_COPYPRODUCT}
.for i in ${PRODNAMES}
(cd ${ZOPEDIR}/lib/python/Products/${i}; \
${PYTHONBIN} ${ZOPEDIR}/inst/compilezpy.py || ${TRUE})
.endfor
.include "../../lang/python/application.mk"
|