openbsd-ports/www/zope/Makefile

63 lines
1.5 KiB
Makefile
Raw Normal View History

2005-03-26 19:18:28 -05:00
# $OpenBSD: Makefile,v 1.22 2005/03/27 00:18:28 naddy Exp $
2001-08-05 16:44:41 -04:00
SHARED_ONLY= Yes
2001-08-05 16:44:41 -04:00
COMMENT= "object-oriented web application server"
2005-01-20 12:13:28 -05:00
VERSION= 2.7.4
DISTNAME= Zope-${VERSION}-0
PKGNAME= ${DISTNAME:S/-0//g:L}
2001-08-05 16:44:41 -04:00
CATEGORIES= www
HOMEPAGE= http://www.zope.org/
2005-01-20 12:13:28 -05:00
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
# Zope Public License
2001-08-05 16:44:41 -04:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}Products/Zope/${VERSION}/
2001-08-05 16:44:41 -04:00
EXTRACT_SUFX= .tgz
PYTHON_VER= 2.3
PYTHON_BIN= ${LOCALBASE}/bin/python${PYTHON_VER}
2001-08-05 16:44:41 -04:00
BUILD_DEPENDS= ${RUN_DEPENDS}
2005-03-26 19:18:28 -05:00
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER} \
:python-expat-${PYTHON_VER}*:lang/python/${PYTHON_VER},-expat
2001-08-05 16:44:41 -04:00
CONFIGURE_STYLE=simple
CONFIGURE_ARGS= --with-python=${LOCALBASE}/bin/python${PYTHON_VER} \
--prefix=${WRKINST}/${ZOPEHOME} \
--build-base=${WRKSRC}
2001-08-05 16:44:41 -04:00
MAKE_FILE= makefile
ALL_TARGET= build
2001-08-05 16:44:41 -04:00
ZOPEHOME= ${PREFIX}/lib/zope
ZOPELIBDIR= ${ZOPEHOME}/lib/python
ZOPEPRODUCTSDIR=${ZOPELIBDIR}/Products
ZOPEUSER= _zope
ZOPEGROUP= _zope
SUBST_VARS+= PYTHON_VER ZOPEHOME ZOPEUSER ZOPEGROUP
pre-configure:
@perl -pi -e 's,%%ZOPEPRODUCTSDIR%%,${ZOPEPRODUCTSDIR},g;' \
-e 's,%%ZOPEUSER%%,${ZOPEUSER},g' \
${WRKSRC}/skel/etc/zope.conf.in
@sed -e 's,%%ZOPEHOME%%,${ZOPEHOME},g' \
< ${FILESDIR}/README.OpenBSD > ${WRKSRC}/README.OpenBSD
post-install:
${INSTALL_DATA} ${WRKSRC}/README.OpenBSD ${ZOPEHOME}/doc
do-regress: fake
${PYTHON_BIN} ${WRKINST}/${ZOPEHOME}/bin/test.py \
--all -vv -p --libdir ${WRKINST}/${ZOPELIBDIR}
2001-08-05 16:44:41 -04:00
.include <bsd.port.mk>