# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp eutils MY_PN="ackerTodo" MY_P="${MY_PN}-${PV}" DESCRIPTION="ackerTodo is a light-weight web based todo list manager" HOMEPAGE="http://ackertodo.sourceforge.net/site2/index.html" SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}.tar.bz2" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" DEPEND=">=app-admin/webapp-config-1.50.13" RDEPEND="virtual/httpd-php >=dev-db/mysql-4.1.20" S=${WORKDIR}/${MY_P} pkg_setup() { webapp_pkg_setup if ! built_with_use dev-lang/php mysql ; then eerror "To build ackertodo, dev-lang/php must be built with " eerror "mysql extensions. To continue merging ackertodo, you must first" eerror "recompile php with the mysql use flag enabled" die "ackertodo requires php with USE=mysql" fi } src_install() { webapp_src_preinst local docs="ChangeLog CREDITS README TODO UPGRADE" dodoc ${docs} for doc in ${docs}; do rm -f ${doc} done cp -r src/* ${D}${MY_HTDOCSDIR} webapp_configfile ${MY_HTDOCSDIR}/config/config.inc.php chmod 600 ${D}${MY_HTDOCSDIR}/config/config.inc.php webapp_sqlscript mysql ${D}${MY_HTDOCSDIR}/setup/ackertodo.sql webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install }