# Copyright 1999-2005 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils distutils webapp DESCRIPTION="PyBlosxom is a lightweight weblog system." SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" HOMEPAGE="http://pyblosxom.sourceforge.net/" LICENSE="MIT" KEYWORDS="~x86" IUSE="" DEPEND="virtual/python" src_unpack() { unpack ${A} && cd "${S}" epatch ${FILESDIR}/gentoo-webapp.patch } src_install() { webapp_src_preinst distutils_src_install dodoc README keepdir ${D}/usr/share/${P}/plugins keepdir ${D}${MY_HTDOCSDIR}/data keepdir ${D}${MY_HTDOCSDIR}/log mkdir -p ${D}${MY_CGIBINDIR}/pyblosxom cp web/{config.py,pyblosxom.cgi} ${D}${MY_CGIBINDIR}/pyblosxom/ webapp_configfile ${MY_CGIBINDIR}/pyblosxom/config.py webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_hook_script ${FILESDIR}/config-hook.sh webapp_src_install }