# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-apps/mythweb/mythweb-0.25.2.ebuild,v 1.1 2012/07/17 00:30:14 cardoe Exp $ EAPI=4 EGIT_REPO_URI="git://github.com/MythTV/mythweb.git" EGIT_BRANCH="fixes/0.26" EGIT_COMMIT="f82ca9521775edbbc53caf0f40f7bc183732dcc2" inherit eutils webapp git-2 # Release version MY_P=${P%_p*} DESCRIPTION="PHP scripts intended to manage MythTV from a web browser." HOMEPAGE="http://www.mythtv.org" LICENSE="GPL-2" IUSE="" KEYWORDS="~amd64 ~ppc ~x86" RDEPEND="dev-lang/php:5.3[json,mysql,session,posix] virtual/httpd-php:5.3 dev-perl/DBI dev-perl/DBD-mysql dev-perl/HTTP-Date dev-perl/Net-UPnP" DEPEND="${RDEPEND}" need_httpd_cgi S="${WORKDIR}/${MY_P}" src_prepare() { epatch_user } src_configure() { : } src_compile() { : } src_install() { webapp_src_preinst # Install docs cd "${S}" dodoc README INSTALL # Install htdocs files insinto "${MY_HTDOCSDIR}" doins mythweb.php doins -r classes doins -r configuration doins -r data doins -r includes doins -r js doins -r modules doins -r skins doins -r tests exeinto "${MY_HTDOCSDIR}" doexe mythweb.pl # Install our server config files webapp_server_configfile apache mythweb.conf.apache mythweb.conf webapp_server_configfile lighttpd mythweb.conf.lighttpd mythweb.conf webapp_server_configfile nginx "${FILESDIR}"/mythweb.conf.nginx \ mythweb.include # Data needs to be writable and modifiable by the web server webapp_serverowned -R "${MY_HTDOCSDIR}"/data # Message to display after install webapp_postinst_txt en "${FILESDIR}"/0.25-postinstall-en.txt # Script to set the correct defaults on install webapp_hook_script "${FILESDIR}"/reconfig webapp_src_install }