blob: b3e5421c722c872d6ce4d05b2565dbd1302c7f30 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# $NetBSD: Makefile,v 1.3 2008/08/17 15:13:23 taca Exp $
#
DISTNAME= Zope-${ZOPE211_VERSION}-final
PKGNAME= ${ZOPE_PKG_PREFIX}-${ZOPE211_VERSION}
PKGREVISION= 1
CATEGORIES= www python
MASTER_SITES= http://www.zope.org/Products/Zope/${ZOPE211_VERSION}/
EXTRACT_SUFX= .tgz
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.zope.org/
COMMENT= Zope, the Z Object Publishing Environment
DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat
PYTHON_VERSIONS_ACCEPTED= 24
ZOPE_VERSION= 211
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${ZOPE_DIR} --with-python=${PYTHONBIN} --quiet
BUILD_TARGET= build version_txt
MAKE_FILE= makefile
INSTALLATION_DIRS= ${ZOPE_DOC_DIR}/zeo ${ZOPE_DOC_DIR}/zope
OWN_DIRS+= ${ZOPE_PRODUCTS_DIR}
RCD_SCRIPTS= zope${ZOPE_VERSION} zeo${ZOPE_VERSION}
RCD_SCRIPT_SRC.zope${ZOPE_VERSION}= ../zope/files/zope.sh
RCD_SCRIPT_SRC.zeo${ZOPE_VERSION}= ../zope/files/zeo.sh
OWN_DIRS+= ${ZOPE_BASE}/skel/etc/package-includes ${ZOPE_PRODUCTS_BASE}
SUBST_CLASSES+= param
SUBST_STAGE.param= pre-configure
SUBST_FILES.param+= skel/etc/zope.conf.in utilities/mkzopeinstance.py
SUBST_SED.param+= -e "s|@ZOPE_PRODUCTS_DIR@|${ZOPE_PRODUCTS_DIR}|g"
SUBST_SED.param+= -e "s|@ZOPE_USER@|${ZOPE_USER}|g"
SUBST_SED.param+= -e "s|@ZOPE_GROUP@|${ZOPE_GROUP}|g"
SUBST_MESSAGE.param= Fixing some parameters in files.
REPLACE_PYTHON= test.py lib/python/Zope2/Startup/zopectl.py \
lib/python/zdaemon/zdctl.py lib/python/zdaemon/zdrun.py
REPLACE_PYTHON_DIRS+= ${WRKSRC}/lib/python/ZEO/scripts ${WRKSRC}/utilities
USE_TOOLS+= pax
pre-patch:
${CP} ../zope/files/sitecustomize.py ${WRKSRC}/lib/python
${RM} -f ${WRKSRC}/skel/bin/runzope.bat.in
post-extract:
cd ${WRKSRC}; ${FIND} doc lib skel/import -type f -print | \
${XARGS} ${CHMOD} -x
post-build:
cd ${WRKSRC}; ${PY_COMPILE_ALL} .
pre-install:
${FIND} ${WRKSRC} \( -name '*.orig' -o -name svn-commit.tmp \) \
-print0 | ${XARGS} -0 -- ${RM}
post-install:
cd ${WRKSRC}/doc/ZEO; pax -rw *.txt ${ZOPE_DOC_DIR}/zeo
cd ${WRKSRC}/doc; pax -rw *.txt ${ZOPE_DOC_DIR}/zope
${FIND} ${ZOPE_DIR} ${ZOPE_DOC_DIR} -type f -print0 \
| ${XARGS} -0 -- ${CHMOD} a-w+r
${FIND} ${ZOPE_DIR} -type f -name '*.pyc' -print0 | \
${XARGS} -0 -- ${CHMOD} a-x
.include "../../www/zope/Makefile.common"
.include "../../www/zope/replace.mk"
.include "../../www/zope/zopeversion.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|