# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils webapp DESCRIPTION="phpGrabComics is a software program to grab and save comic strips from the web" HOMEPAGE="http://www.baravalle.it/phpGrabComics/" SRC_URI="mirror://sourceforge/phpgrabcomics/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="x86" IUSE="" DEPEND=">=net-www/apache-1.3 >=dev-php/mod_php-4.1.0" S="${WORKDIR}" src_unpack() { unpack ${A} cd ${S} # 1. Hack to set installation directory # 2. Fix Makefile generation sed -i \ -e "s:\$instdir:${D}${MY_HTDOCSDIR}:" \ -e 's:mkdir:mkdir -p:' \ configure || die "sed configure failed" } src_compile() { ./configure || die "configure failed" } src_install() { local docs="www/change_log.txt www/to_do.txt" dodoc ${docs} for doc in ${docs}; do rm -f ${doc} done make install || die "make install failed" # Putting webapp_src_preinst above make install doesn't work for some reason webapp_src_preinst webapp_configfile "${MY_HTDOCSDIR}/inc/config.inc" webapp_src_install }