summaryrefslogtreecommitdiff
path: root/www/zope29/Makefile
blob: fce73edd52f1be609aaf1163c3c633c3ec38fd84 (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
# $NetBSD: Makefile,v 1.9 2007/03/21 14:26:26 taca Exp $
# FreeBSD Id: ports/www/zope29/Makefile,v 1.86 2006/08/03 15:53:04 garga Exp

DISTNAME=	Zope-2.9.4-final
PKGNAME=	zope-2.9.4
PKGREVISION=	4
CATEGORIES=	www python
MASTER_SITES=	http://www.zope.org/Products/Zope/${PKGVERSION}/
EXTRACT_SUFX=	.tgz
DIST_SUBDIR=	zope

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.zope.org/
COMMENT=	Zope, the Z Object Publishing Environment

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

PYTHON_VERSIONS_ACCEPTED=   24
RCD_SCRIPTS=	${PKGBASE}29 zeo29

HOTFIXES=	Hotfix_20070320

DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
.for f in ${HOTFIXES}
DISTFILES+=		${f}.tgz
SITES.${f}.tgz= \
	http://www.zope.org/Products/Zope/Hotfix-2007-03-20/Hotfix-20070320/
.endfor

# Change these, if you like, via the environment.
ZOPE_USER?=		www
WEBBASEDIR?=		www
SZOPEBASEDIR?=		${WEBBASEDIR}/Zope29

# Do not change anything below this line.

.if defined(INSTANCENAME)
ZOPEINSTANCENAME=	${INSTANCENAME}
.endif

ZOPEBASEDIR=		${PREFIX}/${SZOPEBASEDIR}
ZOPEINSTANCEBASE?=	${PREFIX}/${SZOPEBASEDIR}
ZOPEINSTANCEDIR?=	${ZOPEINSTANCEBASE}/${ZOPEINSTANCENAME}

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${ZOPEBASEDIR} --with-python=${PYTHONBIN}

BUILD_TARGET=	build
MAKE_FILE=	makefile

PLIST_SUBST=	ZOPEBASEDIR=${SZOPEBASEDIR}
MESSAGE_SUBST+=	ZOPEBASEDIR=${ZOPEBASEDIR}
MESSAGE_SUBST+=	ZOPE_USER=${ZOPE_USER} \
MESSAGE_SUBST+=	ZOPEINSTANCEDIR=${ZOPEINSTANCEDIR}

post-patch:
	${FIND} ${WRKSRC} -name '*.orig' -print0 | ${XARGS} -0 -- ${RM}

post-install:
	${MV} ${ZOPEBASEDIR}/skel/etc/zope.conf.in \
		${ZOPEBASEDIR}/skel/etc/zope.conf.sample.in
	${MKDIR} ${ZOPEBASEDIR}/Products
.for d in ${HOTFIXES}
	cd ${WRKDIR}; ${PAX} -rw ${d} ${ZOPEBASEDIR}/lib/python/Products
.endfor
	${FIND} ${ZOPEBASEDIR} -type f -print0 | ${XARGS} -0 -- ${CHMOD} a-w

pre-package:
	${CP} ${WRKDIR}/package-pkg-message ${PKGMESSAGE}

.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"