# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Zope Content Management Framework. Services for content-oriented portal sites." HOMEPAGE="http://cmf.zope.org" SRC_URI="${HOMEPAGE}/download/CMF-${PV}/CMF-${PV}.tar.gz" S=${WORKDIR}/CMF-${PV} LICENSE="ZPL" SLOT="0" KEYWORDS="x86 sparc" DEPEND="" RDEPEND=">=net-www/zope-2.6.0-r2" IUSE="" MODDIR="/usr/share/zope/${P}/" DOCDIR="/usr/share/doc/zope/${P}/" PROD_NAME="CMF" PROD_LST="CMFCalendar CMFCore CMFDefault CMFTopic" src_install() { dodir ${DOCDIR} cp -a *.txt ${D}/${DOCDIR} rm -f *.txt prepalldocs cp -v ${FILESDIR}/symlinks ./sl sed -e "/MOD_DIR=/ c\\MOD_DIR=\"${MODDIR}\"\\ " \ -e "/PROD_NAME=/ c\\PROD_NAME=\"${PROD_NAME}\"\\ " \ -e "/PROD_LST=/ c\\PROD_LST=\"${PROD_LST}\"\\ " \ sl > symlinks rm -f sl chmod ug+x symlinks dodir ${MODDIR} cp -a . ${D}/${MODDIR} } pkg_postinst() { einfo "You must run the following in order to add this product to a zope instances:" einfo "# cd ${MODDIR}" einfo "# ./symlinks add /path/of/zope/instance" einfo ; einfo "Example:" einfo "\t./symlinks add /usr/share/zope/zope-2.6.0" einfo ; einfo "Don't forget to restart the zope instance." }