# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A Zope product to create dynamic translations of ParsedXML docs to HTMl pages. HOMEPAGE="http://www.zope.org/Members/faassen/XMLWidgets" SRC_URI="${HOMEPAGE}/XMLWidgets-${PV}.tgz" S=${WORKDIR}/XMLWidgets # It's very close to BSD as far as I can tell. # Do we need to create a new license? LICENSE="BSD" SLOT="0" KEYWORDS="x86 sparc" DEPEND="" RDEPEND=">=net-www/zope-2.6.0*" IUSE="" MODDIR="/usr/share/zope/${P}/" DOCDIR="/usr/share/doc/zope/${P}/" PROD_NAME="XMLWidgets" PROD_LST="XMLWidgets" src_install() { dodir ${DOCDIR} cp -a *.txt ${D}/${DOCDIR} rm -f *.txt prepalldocs cd .. cp -f ${FILESDIR}/zprod-update ./tzu sed -e "/MOD_DIR=/ c\\MOD_DIR=\"${MODDIR}\"\\ " \ -e "/PROD_NAME=/ c\\PROD_NAME=\"${PROD_NAME}\"\\ " \ -e "/PROD_LST=/ c\\PROD_LST=\"${PROD_LST}\"\\ " \ tzu > zprod-update rm -f tzu chmod ug+x zprod-update # creates a master copy, to be later installed to other zope instances. 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 "# ./zprod-update add /path/of/zope/instance" einfo ; einfo "Example:" einfo "\t./zprod-update add /usr/share/zope/zope-2.6.0" einfo ; einfo "Don't forget to restart the zope instance." }