# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-www/phpwebsite/phpwebsite-0.9.3_p2-r1.ebuild,v 1.4 2004/06/11 09:12:26 kloeri Exp $ DESCRIPTION="phpWebSite provides a complete web site content management system. Web-based administration allows for easy maintenance of interactive, community-driven web sites." HOMEPAGE="http://phpwebsite.appstate.edu" SLOT="0" IUSE="" LICENSE="GPL-2" KEYWORDS="~x86" # Some ugly hacks for inconsistent naming... # MY_PV="${PV/_p/-}" S="${WORKDIR}/${PN}-${MY_PV}-full" SRC_URI="mirror://sourceforge/phpwebsite/${PN}-${MY_PV}-full.tar.gz" DEPEND="" RDEPEND="virtual/php dev-db/mysql" # Pick up the webapp brains # inherit webapp src_unpack() { unpack ${PN}-${MY_PV}-full.tar.gz } src_install() { webapp_src_preinst # Install docs into /usr/share/docs... # Remove them afterward. # dodoc docs/*.txt dodoc docs/*.php docinto developers dodoc docs/developers/*.txt dodoc docs/developers/*.php docinto developers/debugtheme dodoc docs/developers/debugtheme/* rm -rf docs # Everything that's left goes into the htdocs directory # Set appropriate permissions: the permissions on many of # the distro files are dubious. # find . -type d | xargs chmod u=rwx,go=rx find . -type f | xargs chmod u=rw,go=r chmod u=rwx,go=r setup/*.sh cp -a * "${D}/${MY_HTDOCSDIR}" # Create the conf/branch directory that's missing from the distro. # Eliminates error message in post-install scripts. # dodir ${MY_HTDOCSDIR}/conf/branch # Install some post-install instructions # webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt # Finish up # webapp_src_install }