diff options
author | Richard Freeman <rich0@gentoo.org> | 2016-04-16 08:04:51 -0400 |
---|---|---|
committer | Richard Freeman <rich0@gentoo.org> | 2016-04-16 08:05:17 -0400 |
commit | e9d0a2e6022ce310ba727ee4391a8bcaaa21dea6 (patch) | |
tree | abc988c71bf6715b675374113c5112f5bb29e4dd /www-apps/mythweb/mythweb-0.28.ebuild | |
parent | media-plugins/mythplugins: Major update to 0.28 (diff) | |
download | gentoo-e9d0a2e6022ce310ba727ee4391a8bcaaa21dea6.tar.gz gentoo-e9d0a2e6022ce310ba727ee4391a8bcaaa21dea6.tar.bz2 gentoo-e9d0a2e6022ce310ba727ee4391a8bcaaa21dea6.zip |
www-apps/mythweb: Major update to 0.28
Package-Manager: portage-2.2.26
Diffstat (limited to 'www-apps/mythweb/mythweb-0.28.ebuild')
-rw-r--r-- | www-apps/mythweb/mythweb-0.28.ebuild | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/www-apps/mythweb/mythweb-0.28.ebuild b/www-apps/mythweb/mythweb-0.28.ebuild new file mode 100644 index 000000000000..367ff5b1e06c --- /dev/null +++ b/www-apps/mythweb/mythweb-0.28.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils webapp + +#BACKPORTS="4f6ac2a60b" +# Release version +MY_PV="${PV%_p*}" +MY_P="mythweb-${MY_PV}" + +DESCRIPTION="PHP scripts intended to manage MythTV from a web browser" +HOMEPAGE="http://www.mythtv.org" +LICENSE="GPL-2" +SRC_URI="https://github.com/MythTV/mythweb/archive/v${MY_PV}.tar.gz -> mythweb-${MY_PV}.tar.gz + ${BACKPORTS:+https://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}" +IUSE="" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND="dev-lang/php:*[json,mysql,session,posix] + virtual/httpd-php:* + 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() { + cd "${S}"/../ + + [[ -n ${BACKPORTS} ]] && \ + EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/../patches" \ + epatch + + eapply_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 +} |