pkgsrc/www/zope/Makefile
jlam e44bf515dc Strip the ".buildlink" from the names of the python application and
extension Makefile fragments, because they really don't have anything to
do with the buildlink[12] frameworks.  Change all the Makefiles that use
application.buildlink.mk and extension.buildlink.mk to use application.mk
and extension.mk instead.
2002-09-21 23:46:45 +00:00

50 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2002/09/21 23:47:00 jlam Exp $
#
DISTNAME= Zope-2.2.2-src
PKGNAME= zope-2.2.2
CATEGORIES= www
MASTER_SITES= http://www.zope.org/Products/Zope/2.2.2/
EXTRACT_SUFX= .tgz
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://www.zope.org/
COMMENT= Zope, the Z Object Publishing Environment
DEPENDS+= py-extclass>=2.2.2:../../lang/py-extclass
DEPENDS+= py-dtml>=2.2.2:../../textproc/py-dtml
DIST_SUBDIR= python
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
ZOPEDIR= ${PREFIX}/lib/zope
PYTHON_VERSIONS_ACCEPTED= 20 # XXX for now
do-configure:
${SED} -e "s,@PREFIX@,${PREFIX}," \
<${FILESDIR}/Makefile.in > ${WRKSRC}/Makefile
(cd ${WRKSRC}/lib; ${RM} -rf Components/zlib \
Components/ExtensionClass python/DocumentTemplate \
python/StructuredText)
(cd ${WRKSRC}; make configure)
do-install:
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
${INSTALL_DATA_DIR} ${ZOPEDIR}
(cd ${WRKSRC}; ${PAX} -r -w -s'/.*\.[cho]$$//' . ${ZOPEDIR})
${PYTHONBIN} \
${PREFIX}/lib/python2.0/compileall.py ${ZOPEDIR}
${CHMOD} -R a+rX ${ZOPEDIR}
(cd ${PREFIX}; ${FIND} lib/zope \( -type f -o -type l \) -print >>${PLIST_SRC})
(cd ${PREFIX}; ${FIND} -d lib/zope -type d -print | \
${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
${SED} -e "s,/usr/pkg,${PREFIX}," \
<${FILESDIR}/zope-install.py >${PREFIX}/sbin/zope-install
${SED} -e "s,/usr/pkg,${PREFIX}," \
<${FILESDIR}/zope-shutdown.py >${PREFIX}/sbin/zope-shutdown
${CHMOD} 755 ${PREFIX}/sbin/zope-install ${PREFIX}/sbin/zope-shutdown
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"