2006-03-16 04:53:55 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2006/03/16 09:53:55 mbalmer Exp $
|
2001-08-05 16:44:41 -04:00
|
|
|
|
2004-08-06 03:35:11 -04:00
|
|
|
SHARED_ONLY= Yes
|
2001-08-05 16:44:41 -04:00
|
|
|
|
2004-08-03 06:16:36 -04:00
|
|
|
COMMENT= "object-oriented web application server"
|
2002-03-25 21:50:23 -05:00
|
|
|
|
2006-03-16 04:53:55 -05:00
|
|
|
VERSION= 2.8.6
|
2005-11-06 15:20:58 -05:00
|
|
|
DISTNAME= Zope-${VERSION}-final
|
|
|
|
PKGNAME= ${DISTNAME:S/-final//: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>
|
2004-08-03 06:16:36 -04:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2005-11-06 15:20:58 -05:00
|
|
|
MASTER_SITES= ${HOMEPAGE}Products/Zope/${VERSION}/
|
2001-08-05 16:44:41 -04:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2005-11-06 15:20:58 -05:00
|
|
|
MODPY_VERSION= 2.4
|
|
|
|
MODULES= lang/python
|
2001-08-05 16:44:41 -04:00
|
|
|
|
2005-11-06 15:20:58 -05:00
|
|
|
.if !defined(NO_SHARED_LIBS) || ${NO_SHARED_LIBS:U} != YES
|
|
|
|
RUN_DEPENDS+= expat::textproc/expat
|
|
|
|
.endif
|
2001-08-05 16:44:41 -04:00
|
|
|
|
2005-11-06 15:20:58 -05:00
|
|
|
NO_CONFIGURE=Yes
|
2005-09-10 15:42:53 -04:00
|
|
|
|
2005-11-06 15:20:58 -05:00
|
|
|
BUILD_ARGS= --build-base=${WRKSRC} \
|
|
|
|
--build-lib="${WRKSRC}/build-lib" \
|
|
|
|
--build-scripts="${WRKSRC}/build-scripts" \
|
|
|
|
--build-temp="${WRKSRC}/build-temp"
|
2001-08-05 16:44:41 -04:00
|
|
|
|
|
|
|
ZOPEHOME= ${PREFIX}/lib/zope
|
2004-08-03 06:16:36 -04:00
|
|
|
ZOPELIBDIR= ${ZOPEHOME}/lib/python
|
|
|
|
ZOPEPRODUCTSDIR=${ZOPELIBDIR}/Products
|
|
|
|
ZOPEUSER= _zope
|
|
|
|
ZOPEGROUP= _zope
|
|
|
|
|
2005-11-06 15:20:58 -05:00
|
|
|
MODPY_DISTUTILS_BUILD= build ${BUILD_ARGS}
|
|
|
|
MODPY_DISTUTILS_INSTALL= install --prefix=${ZOPEHOME} ${BUILD_ARGS}
|
|
|
|
|
2004-08-03 06:16:36 -04:00
|
|
|
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>
|