summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2005-05-20 09:16:17 +0000
committerDoug Goldstein <cardoe@gentoo.org>2005-05-20 09:16:17 +0000
commit4a0ea066ed0e8d2f66400e8ee263b5aaa7dec251 (patch)
treeee0463b8b2c2e4ba044e69ad1be90d0272eea989 /www-apps/mythweb/mythweb-0.18.1.ebuild
parentrev bump; new eclass; clean ups (diff)
downloadgentoo-2-4a0ea066ed0e8d2f66400e8ee263b5aaa7dec251.tar.gz
gentoo-2-4a0ea066ed0e8d2f66400e8ee263b5aaa7dec251.tar.bz2
gentoo-2-4a0ea066ed0e8d2f66400e8ee263b5aaa7dec251.zip
rev bump
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'www-apps/mythweb/mythweb-0.18.1.ebuild')
-rw-r--r--www-apps/mythweb/mythweb-0.18.1.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/www-apps/mythweb/mythweb-0.18.1.ebuild b/www-apps/mythweb/mythweb-0.18.1.ebuild
new file mode 100644
index 000000000000..6af5f1aee6c1
--- /dev/null
+++ b/www-apps/mythweb/mythweb-0.18.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mythweb/mythweb-0.18.1.ebuild,v 1.1 2005/05/20 09:16:17 cardoe Exp $
+
+inherit webapp
+
+DESCRIPTION="PHP scripts intended to manage MythTV from a web browser."
+HOMEPAGE="http://www.mythtv.org/"
+SRC_URI="http://www.mythtv.org/mc/mythplugins-${PV}.tar.bz2"
+IUSE=""
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+
+RDEPEND=">=dev-php/mod_php-4.2
+ ~media-tv/mythtv-${PV}"
+
+S="${WORKDIR}/mythplugins-${PV}/${PN}"
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ if has_version \>=dev-php/mod_php-5 ; then
+ local modphp_use="$(</var/db/pkg/`best_version =dev-php/mod_php`/USE)"
+ if ! has session ${modphp_use} ; then
+ eerror "mod_php is missing session support. Please add"
+ eerror "'session' to your USE flags, and re-emerge mod_php and php."
+ die "mod_php needs session support"
+ fi
+ fi
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc README TODO
+
+ keepdir ${MY_HTDOCSDIR}/video_dir
+ keepdir ${MY_HTDOCSDIR}/image_cache
+ keepdir ${MY_HTDOCSDIR}/php_sessions
+
+ cp -R [[:lower:]]* .htaccess ${D}${MY_HTDOCSDIR}
+
+ webapp_serverowned ${MY_HTDOCSDIR}/video_dir
+ webapp_serverowned ${MY_HTDOCSDIR}/image_cache
+ webapp_serverowned ${MY_HTDOCSDIR}/php_sessions
+
+ webapp_configfile ${MY_HTDOCSDIR}/config/conf.php
+ webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
+
+ webapp_src_install
+}