summaryrefslogtreecommitdiff
path: root/www/zope3/Makefile
blob: 608b994f01b4e4cfbedb6b5f5764fecc4a6fc7b2 (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
# $NetBSD: Makefile,v 1.21.6.1 2010/07/04 07:28:55 agc Exp $
#

DISTNAME=		Zope-3.3.1
PKGNAME=		zope3-3.3.1
PKGREVISION=		1
CATEGORIES=		www
MASTER_SITES=		http://www.zope.org/Products/Zope3/3.3.1/
EXTRACT_SUFX=		.tgz

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.zope.org/DevHome/Zope3/
COMMENT=		Zope 3 Application Server

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=		${PYPKGPREFIX}-xml>=0.8.4:../../textproc/py-xml

HAS_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-python ${PYTHONBIN} \
			--prefix ${ZOPE3_DIR} \
			--force
REPLACE_PYTHON= \
	Dependencies/twisted-Zope-3.3.1/twisted/mail/test/pop3testserver.py \
	Dependencies/twisted-Zope-3.3.1/twisted/trial/test/scripttest.py \
	Dependencies/twisted-Zope-3.3.1/twisted/web/test/test_cgi.py \
	Dependencies/twisted-Zope-3.3.1/twisted/web/test/test_distrib.py \
	Dependencies/twisted-Zope-3.3.1/twisted/web2/test/test_cgi.py \
	Dependencies/zdaemon-Zope-3.3.1/zdaemon/zdctl.py \
	Dependencies/zdaemon-Zope-3.3.1/zdaemon/zdrun.py
CHECK_INTERPRETER_SKIP=	\
	share/zope3/lib/python/zope/app/server/zopeskel/bin/*.in \
	share/zope3/zopeskel/bin/*.in
CHECK_PERMS_SKIP=	share/zope3/zopeskel/bin/*.in

BUILD_DEFS+=		VARBASE
BUILD_TARGET=		build

RCD_SCRIPTS=		zope3 zss3
PKG_GROUPS=		${ZOPE3_GROUP}
PKG_USERS=		${ZOPE3_USER}:${ZOPE3_GROUP}

FILES_SUBST+=		ZOPE3_USER=${ZOPE3_USER:Q}
MESSAGE_SUBST+=		ZOPE3_USER=${ZOPE3_USER:Q} \
			ZOPE3_GROUP=${ZOPE3_GROUP:Q} \
			VARBASE=${VARBASE:Q}

.include "../../mk/bsd.prefs.mk"

.if !empty(MACHINE_PLATFORM:MNetBSD-1.[0-6]*)
EXTRACT_USING=		bsdtar
.endif

USE_TOOLS+=		pax

INSTALLATION_DIRS+=	bin ${ZOPE3_DOCDIR}

pre-install:
	${FIND} ${WRKSRC} -name "*.orig" -type f -print | ${XARGS} ${RM} -f

post-install:
	${LN} -s ${DESTDIR}${ZOPE3_DIR}/bin/mkzeoinstance ${DESTDIR}${PREFIX}/bin
	${LN} -s ${DESTDIR}${ZOPE3_DIR}/bin/mkzopeinstance ${DESTDIR}${PREFIX}/bin
	${LN} -s ${DESTDIR}${ZOPE3_DIR}/bin/zopetest ${DESTDIR}${PREFIX}/bin
	cd ${WRKSRC}/Zope && pax -r -w LICENSES.txt ZopePublicLicense.txt \
		${DESTDIR}${ZOPE3_DOCDIR}
	cd ${WRKSRC}/Zope/doc && pax -r -w *.txt ${DESTDIR}${ZOPE3_DOCDIR}

.include "Makefile.common"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"